#include "petscda.h" int DACreate1d(MPI_Comm comm,DAPeriodicType wrap,int M,int dof,int s,int *lc,DA *inra)Collective on MPI_Comm
comm | - MPI communicator | |
wrap | - type of periodicity should the array have, if any. Use either DA_NONPERIODIC or DA_XPERIODIC | |
M | - global dimension of the array | |
dof | - number of degrees of freedom per node | |
lc | - array containing number of nodes in the X direction on each processor, or PETSC_NULL. If non-null, must be of length as m. | |
s | - stencil width |
-da_view | - Calls DAView() at the conclusion of DACreate1d() | |
-da_grid_x <nx> | - number of grid points in x direction; can set if M < 0 | |
-da_noao | - do not compute natural to PETSc ordering object |
The array data itself is NOT stored in the DA, it is stored in Vec objects; The appropriate vector objects can be obtained with calls to DACreateGlobalVector() and DACreateLocalVector() and calls to VecDuplicate() if more are needed.
Level:beginner
Location:src/dm/da/src/da1.c
Index of all DA routines
Table of Contents for all manual pages
Index of all manual pages