Lines Matching refs:numCells
172 PetscInt numCells = s->last - s->first + 1; in DMPlexCreateFluent_ReadSection() local
174 PetscCall(PetscMalloc1(numCells, (PetscInt **)&s->data)); in DMPlexCreateFluent_ReadSection()
175 …PetscCall(DMPlexCreateFluent_ReadValues(viewer, s->data, numCells, PETSC_INT, s->index == 2012 ? P… in DMPlexCreateFluent_ReadSection()
684 PetscInt numCells = 0; in DMPlexCreateFluent() local
730 numCells = s.last; in DMPlexCreateFluent()
731 …cCall(PetscInfo((PetscObject)viewer, "CASE: Found number of cells %" PetscInt_FMT "\n", numCells)); in DMPlexCreateFluent()
733 PetscCall(PetscMalloc2(numCells, &cellSizes, numCells, &cellTypes)); in DMPlexCreateFluent()
734 …for (PetscInt c = 0; c < numCells; ++c) PetscCall(GetNumCellFaces(s.nd ? s.nd : (int)((PetscInt *)… in DMPlexCreateFluent()
736 …cObject)viewer, "CASE: Found number of cell faces %" PetscInt_FMT "\n", numCells && s.nd ? cellSiz… in DMPlexCreateFluent()
813 PetscCall(DMPlexSetChart(*dm, 0, numCells + numFaces + numVertices)); in DMPlexCreateFluent()
815 …PetscCheck(numCells >= 0, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Unknown number of cells in Fluent… in DMPlexCreateFluent()
816 for (PetscInt c = 0; c < numCells; ++c) { in DMPlexCreateFluent()
820 …for (PetscInt v = numCells; v < numCells + numVertices; ++v) PetscCall(DMPlexSetCellType(*dm, v, D… in DMPlexCreateFluent()
837 PetscCall(DMPlexSetConeSize(*dm, f + numCells + numVertices, faceSizes[f])); in DMPlexCreateFluent()
838 PetscCall(DMPlexSetCellType(*dm, f + numCells + numVertices, ct)); in DMPlexCreateFluent()
854 const PetscInt face = f + numCells + numVertices; in DMPlexCreateFluent()
866 for (PetscInt v = 0; v < faceSizes[f]; ++v) fcone[v] = faces[foffset + v] + numCells - 1; in DMPlexCreateFluent()
885 for (PetscInt c = 0; c < numCells; ++c) PetscCall(ReorderCell(viewer, *dm, c, cellTypes[c])); in DMPlexCreateFluent()
910 … for (PetscInt fi = 0; fi < faceSizes[f]; fi++) fverts[fi] = faces[foffset + fi] + numCells - 1; in DMPlexCreateFluent()
946 PetscCall(PetscSectionSetChart(coordSection, numCells, numCells + numVertices)); in DMPlexCreateFluent()
947 for (PetscInt v = numCells; v < numCells + numVertices; ++v) { in DMPlexCreateFluent()