DMDAVecRestoreArrayWrite#

Restores a multiple dimension array obtained with DMDAVecGetArrayWrite()

Synopsis#

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

Logically collective on Vec

Input Parameters#

  • 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 DMDAVecRestoreArayF90()

See Also#

DMDAGetGhostCorners(), DMDAGetCorners(), VecGetArray(), VecRestoreArray(), DMDAVecGetArrayWrite(), DMDAVecGetArray(), DMDAVecRestoreArray(), DMDAVecGetArrayRead(), DMDAVecRestoreArrayRead()

Level#

intermediate

Location#

src/dm/impls/da/dagetarray.c

Examples#

src/dm/tutorials/ex2.c.html
src/snes/tutorials/ex19.c.html


Edit on GitLab

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