SLESSetUp

Performs set up required for solving a linear system.

Synopsis

#include "petscsles.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(), SLESSetUpOnBlocks()

Level:advanced
Location:
src/sles/interface/sles.c
Index of all SLES routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/sles/examples/tutorials/ex5.c.html
src/sles/examples/tutorials/ex7.c.html
src/sles/examples/tutorials/ex8.c.html
src/sles/examples/tutorials/ex9.c.html
src/sles/examples/tutorials/ex10.c.html
src/sles/examples/tutorials/ex27.c.html