DMDAGetNumFaces#

Return the number of local mesh faces of each orientation (including ghost faces) for a DMDA.

Synopsis#

#include "petscdmda.h"   
PetscErrorCode DMDAGetNumFaces(DM dm, PetscInt *numXFacesX, PetscInt *numXFaces, PetscInt *numYFacesY, PetscInt *numYFaces, PetscInt *numZFacesZ, PetscInt *numZFaces)

Not Collective

Input Parameter#

Output Parameters#

  • numXFacesX - number of X-normal faces along the x direction, or NULL if not needed

  • numXFaces - total number of X-normal faces, or NULL if not needed

  • numYFacesY - number of Y-normal faces along the y direction, or NULL if not needed

  • numYFaces - total number of Y-normal faces (0 for 1D), or NULL if not needed

  • numZFacesZ - number of Z-normal faces along the z direction, or NULL if not needed

  • numZFaces - total number of Z-normal faces (0 for 1D/2D), or NULL if not needed

See Also#

DM, DMDA, DMDAGetNumVertices(), DMDAGetNumCells()

Level#

developer

Location#

src/dm/impls/da/dalocal.c


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