petsc-3.13.6 2020-09-29
Report Typos and Errors

DMDAVecRestoreArrayRead

Restores a multiple dimension array obtained with DMDAVecGetArrayRead()

Synopsis

#include "petscdmda.h"   
PetscErrorCode  DMDAVecRestoreArrayRead(DM da,Vec vec,void *array)
Not collective

Input Parameter

da - the distributed array
vec - the vector, either a vector the same size as one obtained with DMCreateGlobalVector() or DMCreateLocalVector()
array - the array, non-NULL pointer is zeroed

Fortran Notes

From Fortran use DMDAVecRestoreArrayReadF90()

See Also

DMDAGetGhostCorners(), DMDAGetCorners(), VecGetArray(), VecRestoreArray(), DMDAVecGetArrayRead(),
DMDAVecGetArray(), DMDAVecRestoreArray(), DMDAVecGetArrayWrite(), DMDAVecRestoreArrayWrite(), DMStagVecRestoreArrayRead()

Level

intermediate

Location

src/dm/impls/da/dagetarray.c

Examples

src/dm/tutorials/ex3.c.html
src/ksp/ksp/tutorials/ex43.c.html
src/snes/tutorials/ex3.c.html
src/snes/tutorials/ex14.c.html
src/snes/tutorials/ex15.c.html
src/snes/tutorials/ex19.c.html
src/snes/tutorials/ex78.c.html
src/ts/tutorials/ex7.c.html
src/ts/tutorials/ex9.c.html
src/ts/tutorials/ex10.c.html
src/ts/tutorials/ex13.c.html

Index of all DMDA routines
Table of Contents for all manual pages
Index of all manual pages