int DACreate3d(MPI_Comm comm,DAPeriodicType wrap,DAStencilType stencil_type,int M, int N,int P,int m,int n,int p,int w,int s,int *lx,int *ly,int *lz,DA *inra)Collective on MPI_Comm
comm | - MPI communicator |
wrap | - type of periodicity the array should have, if any. Use one of DA_NONPERIODIC, DA_XPERIODIC, DA_YPERIODIC, DA_XYPERIODIC, DA_XYZPERIODIC, DA_XZPERIODIC, or DA_YZPERIODIC. |
stencil_type | - Type of stencil (DA_STENCIL_STAR or DA_STENCIL_BOX) |
M,N,P | - global dimension in each direction of the array |
m,n,p | - corresponding number of processors in each dimension (or PETSC_DECIDE to have calculated) |
w | - number of degrees of freedom per node |
lx, ly, lz | - arrays containing the number of nodes in each cell along the x, y, and z coordinates, or PETSC_NULL. If non-null, these must be of length as m,n,p and the corresponding m,n, or p cannot be PETSC_DECIDE. |
s | - stencil width |
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.
Location: src/da/src/da3.c
IS and DA Index
Table of Contents