petsc-3.3-p7 2013-05-11

DMDARestoreAdicArray

Restores an array of derivative types for a DMDA

Synopsis

#include "petscdmda.h"   
PetscErrorCode  DMDARestoreAdicArray(DM da,PetscBool  ghosted,void *ptr,void *array_start,PetscInt *tdof)

Input Parameter

da - information about my local patch
ghosted - do you want arrays for the ghosted or nonghosted patch

Output Parameters

ptr - array data structured to be passed to ad_FormFunctionLocal()
array_start - actual start of 1d array of all values that adiC can access directly
tdof - total number of degrees of freedom represented in array_start

See Also

DMDAGetAdicArray()

Level:advanced
Location:
src/dm/impls/da/dalocal.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages