SLESSetUp

Performs set up required for solving a linear system.

Synopsis

#include "sles.h"    
int SLESSetUp(SLES sles,Vec b,Vec x)
Collective on SLES

Input Parameters

sles - the SLES context
b - the right hand side
x - location to hold solution

Note

For basic use of the SLES solvers the user need not explicitly call SLESSetUp(), since these actions will automatically occur during the call to SLESSolve(). However, if one wishes to generate performance data for this computational phase (for example, for incomplete factorization using the ILU preconditioner) using the PETSc log facilities, calling SLESSetUp() is required.

Keywords

SLES, solve, linear system

See Also

SLESCreate(), SLESDestroy(), SLESDestroy()

Examples

src/sles/examples/tutorials/ex5.c
src/sles/examples/tutorials/ex10.c
src/sles/examples/tutorials/ex9.c

Level:advanced
Location:src/sles/interface/sles.c
SLES Index
Table of Contents