DACreate

Creates an empty DA object. The type can then be set with DASetType(), or DASetFromOptions().

Synopsis

#include "petscda.h"   
PetscErrorCode PETSCDM_DLLEXPORT DACreate(MPI_Comm comm, DA *da)
If you never call DASetType() or DASetFromOptions() it will generate an error when you try to use the DA.

Collective on MPI_Comm

Input Parameter

comm -The communicator for the DA object

Output Parameter

da -The DA object

Keywords

DA, create

See Also

DASetType(), DASetSizes(), DADuplicate()

Level:beginner
Location:
src/dm/da/src/dacreate.c
Index of all DA routines
Table of Contents for all manual pages
Index of all manual pages