GridEvaluateSystemMatrix
his function constructs the weak form of the linear operators specified with GridSetMatOperator().
Synopsis
#include "grid.h"
#include "gvec.h"
int GridEvaluateSystemMatrix(Grid grid, GVec x, GMat *J, GMat *M, MatStructure *flag, PetscObject ctx)
Collective on Grid
Input Parameters
| grid | - The grid
|
| x | - The current iterate
|
| ctx | - The optional user context
|
Output Parameter
f -The function value
Keywords
grid, matrix
See Also
GridEvaluateRhs()
Level:beginner
Location:src/grid/interface/grid.c
Index of all Grid routines
Table of Contents for all manual pages
Index of all manual pages
Examples
src/gsolver/examples/tutorials/poisson.c.html
src/gsolver/examples/tutorials/poisson2.c.html
src/gsolver/examples/tutorials/control.c.html
src/gsolver/examples/tutorials/stokes.c.html