DMDASetElementType

Sets the element type to be returned by DMDAGetElements()

Synopsis

#include "petscdmda.h"   
PetscErrorCode  DMDASetElementType(DM da, DMDAElementType etype)
Not Collective

Input Parameter

da - the DMDA object

Output Parameters

etype - the element type, currently either DMDA_ELEMENT_P1 or DMDA_ELEMENT_Q1

Level: intermediate

See Also

DMDAElementType, DMDAGetElementType(), DMDAGetElements(), DMDARestoreElements()

Location:dagetelem.c