petsc-3.3-p7 2013-05-11


Create a PetscSection inside the DMDA that describes data layout. This allows multiple fields with different numbers of dofs on vertices, cells, and faces in each direction.


#include "petscdmda.h"   
PetscErrorCode DMDACreateSection(DM dm, PetscInt numComp[], PetscInt numVertexDof[], PetscInt numFaceDof[], PetscInt numCellDof[])

Input Parameters

dm- The DMDA
numFields - The number of fields
numComp - The number of components in each field, or PETSC_NULL for 1
numVertexDof - The number of dofs per vertex for each field, or PETSC_NULL
numFaceDof - The number of dofs per face for each field and direction, or PETSC_NULL
numCellDof - The number of dofs per cell for each field, or PETSC_NULL


The default DMDA numbering is as follows

- Cells: [0, nC) - Vertices: [nC, nC+nV) - X-Faces: [nC+nV, nC+nV+nXF) normal is +- x-dir - Y-Faces: [nC+nV+nXF, nC+nV+nXF+nYF) normal is +- y-dir - Z-Faces: [nC+nV+nXF+nYF, nC+nV+nXF+nYF+nZF) normal is +- z-dir

We interpret the default DMDA partition as a cell partition, and the data assignment as a cell assignment.

Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages