[petsc-dev] Creating a dmplex mesh from a cell list
Garnet Vaz
garnet.vaz at gmail.com
Thu Feb 28 07:24:10 CST 2013
Hi,
I would like to know what some of the arguments for
DMPlexCreateFromCellList are supposed to be for a triangular mesh.
The function is:
DMPlexCreateFromCellList(MPI_Comm comm, PetscInt dim, PetscInt
numCells, PetscInt numVertices, PetscInt numCorners, PetscBool
interpolate, const int cells[], PetscInt spaceDim, const double
vertexCoords[], DM *dm)
dim = 2
numCells = nCells (not the entire length of the cells array; instead length/3)
numVertices = nVert (length of vertexCoords/2)
numCorners = 3
spaceDim = 2
What is wrong with my understanding about the following variables?
The error I get is the following:
[0]PETSC ERROR: Argument out of range!
[0]PETSC ERROR: Cone point 43 is not in the valid range [0, 43)!
Thank You.
--
Regards,
Garnet
More information about the petsc-dev
mailing list