petsc-master 2015-02-28
Report Typos and Errors


Creates a mesh on the tensor product (box) of intervals with user specified bounds.


#include "petscdmmoab.h"   
PetscErrorCode DMMoabCreateBoxMesh(MPI_Comm comm, PetscInt dim, PetscBool useSimplex, const PetscReal* bounds, PetscInt nele, PetscInt user_nghost, DM *dm)
Collective on MPI_Comm

Input Parameters

Output Parameter


DM, create

See Also

DMSetType(), DMCreate(), DMMoabLoadFromFile()

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

comm - The communicator for the DM object
dim - The spatial dimension
bounds - The bounds of the box specified with [x-left, x-right, y-bottom, y-top, z-bottom, z-top] depending on the spatial dimension
nele - The number of discrete elements in each direction
user_nghost - The number of ghosted layers needed in the partitioned mesh
dm - The DM object