#include "petscdmda.h" PetscErrorCode DMDAGetArray(DM da,PetscBool ghosted,void *vptr)
da | - information about my local patch | |
ghosted | - do you want arrays for the ghosted or nonghosted patch |
vptr | - array data structured |
Note: The vector values are NOT initialized and may have garbage in them, so you may need to zero them.