petsc-3.11.3 2019-06-26
Report Typos and Errors

DMStagVecGetArrayDOF

get access to raw local array

Synopsis

PetscErrorCode DMStagVecGetArrayDOF(DM dm,Vec vec,void *array)
Logically Collective

Input Parameters

dm - the DMStag object
vec - the Vec object

Output Parameters

array -the array

Notes

Indexing is array[k][j][i][idx]. Obtain idx with DMStagGetLocationSlot().

See Also

DMSTAG, DMStagVecGetArrayDOFRead(), DMStagGetLocationSlot(), DMGetLocalVector(), DMCreateLocalVector(), DMGetGlobalVector(), DMCreateGlobalVector()

Level

beginner

Location

src/dm/impls/stag/stagutils.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