petsc-3.11.4 2019-09-28
DMStagMatSetValuesStencil
insert or add matrix entries using grid indexing
Synopsis
PetscErrorCode DMStagMatSetValuesStencil(DM dm,Mat mat,PetscInt nRow,const DMStagStencil *posRow,PetscInt nCol,const DMStagStencil *posCol,const PetscScalar *val,InsertMode insertMode)
Not Collective
Input Parameters
| dm | - the DMStag object
|
| mat | - the matrix
|
| nRow | - number of rows
|
| posRow | - grid locations (including components) of rows
|
| nCol | - number of columns
|
| posCol | - grid locations (including components) of columns
|
| val | - logically two-dimensional array of values
|
| insertmode | - INSERT_VALUES or ADD_VALUES
|
Notes
See notes for MatSetValuesStencil()
See Also
DMSTAG, DMStagStencil, DMStagStencilLocation, DMStagVecGetValuesStencil(), DMStagVecSetValuesStencil(), MatSetValuesStencil(), MatAssemblyBegin(), MatAssemblyEnd(), DMCreateMatrix()
Level
intermediate
Location
src/dm/impls/stag/stagstencil.c
Examples
src/dm/impls/stag/examples/tutorials/ex1.c.html
src/dm/impls/stag/examples/tutorials/ex2.c.html
src/dm/impls/stag/examples/tutorials/ex3.c.html
src/dm/impls/stag/examples/tutorials/ex4.c.html
Index of all DMSTAG routines
Table of Contents for all manual pages
Index of all manual pages