petsc-3.12.5 2020-03-29
Report Typos and Errors

DMDAVecRestoreArray

Restores a multiple dimension array obtained with DMDAVecGetArray()

Synopsis

#include "petscdmda.h"   
PetscErrorCode  DMDAVecRestoreArray(DM da,Vec vec,void *array)
Logically collective on da

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

See Also

DMDAGetGhostCorners(), DMDAGetCorners(), VecGetArray(), VecRestoreArray(), DMDAVecGetArray(),
DMDAVecGetArrayWrite(), DMDAVecRestoreArrayWrite(), DMDAVecGetArrayRead(), DMDAVecRestoreArrayRead(), DMDStagVecRestoreArray()

Level

intermediate

Location

src/dm/impls/da/dagetarray.c

Examples

src/dm/examples/tutorials/ex3.c.html
src/dm/examples/tutorials/ex10.c.html
src/dm/examples/tutorials/swarm_ex1.c.html
src/ksp/ksp/examples/tutorials/ex29.c.html
src/ksp/ksp/examples/tutorials/ex32.c.html
src/ksp/ksp/examples/tutorials/ex42.c.html
src/ksp/ksp/examples/tutorials/ex43.c.html
src/ksp/ksp/examples/tutorials/ex45.c.html
src/ksp/ksp/examples/tutorials/ex49.c.html
src/ksp/ksp/examples/tutorials/ex50.c.html
src/ksp/ksp/examples/tutorials/ex66.c.html

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