#include "petscdmiga.h" PetscErrorCode DMIGAVecGetArray(DM dm, Vec vec, void *array)Not Collective
dm | - the IGA | |
vec | - the vector, either a vector the same size as one obtained with DMCreateGlobalVector() or DMCreateLocalVector() |
In C, the indexing is "backwards" from what expects: array[k][j][i] NOT array[i][j][k]!
If vec is a local vector (obtained with DMCreateLocalVector() etc) then they ghost point locations are accessable. If it is a global vector then the ghost points are not accessable. Of course with the local vector you will have had to do the appropriate DMLocalToGlobalBegin() and DMLocalToGlobalEnd() to have correct values in the ghost locations.
Level:intermediate
Location:src/dm/impls/igaiga.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages