Lines Matching refs:nd

11   int          nd; /* Either ND or element-type */  member
138 snum = sscanf(buffer, "%d", &s->nd); in DMPlexCreateFluent_ReadSection()
145 snum = sscanf(buffer, "(%x %x %x %d %d)", &s->zoneID, &s->first, &s->last, &s->type, &s->nd); in DMPlexCreateFluent_ReadSection()
150 PetscCall(PetscMalloc1(s->nd * numCoords, (PetscScalar **)&s->data)); in DMPlexCreateFluent_ReadSection()
151 …PetscCall(DMPlexCreateFluent_ReadValues(viewer, s->data, s->nd * numCoords, PETSC_SCALAR, s->index… in DMPlexCreateFluent_ReadSection()
165 snum = sscanf(buffer, "(%x %x %x %d)", &s->zoneID, &s->first, &s->last, &s->nd); in DMPlexCreateFluent_ReadSection()
168 snum = sscanf(buffer, "(%x %x %x %d %d)", &s->zoneID, &s->first, &s->last, &s->type, &s->nd); in DMPlexCreateFluent_ReadSection()
170 if (s->nd == 0) { in DMPlexCreateFluent_ReadSection()
190 snum = sscanf(buffer, "(%x %x %x %d)", &s->zoneID, &s->first, &s->last, &s->nd); in DMPlexCreateFluent_ReadSection()
195 snum = sscanf(buffer, "(%x %x %x %d %d)", &s->zoneID, &s->first, &s->last, &s->type, &s->nd); in DMPlexCreateFluent_ReadSection()
198 switch (s->nd) { in DMPlexCreateFluent_ReadSection()
220 if (s->nd == 0) { in DMPlexCreateFluent_ReadSection()
245 if (s->nd != 0) PetscCall(PetscMPIIntCast(numEntries - 2, &s->nd)); in DMPlexCreateFluent_ReadSection()
257 snum = sscanf(buffer, "(%u %s %s %d)", &s->zoneID, caseName, labelName, &s->nd); in DMPlexCreateFluent_ReadSection()
626 static PetscErrorCode GetNumCellFaces(int nd, PetscInt *numCellFaces, DMPolytopeType *ct) in GetNumCellFaces() argument
630 switch (nd) { in GetNumCellFaces()
716 dim = s.nd; in DMPlexCreateFluent()
734 …for (PetscInt c = 0; c < numCells; ++c) PetscCall(GetNumCellFaces(s.nd ? s.nd : (int)((PetscInt *)… in DMPlexCreateFluent()
736 …wer, "CASE: Found number of cell faces %" PetscInt_FMT "\n", numCells && s.nd ? cellSizes[0] : 0)); in DMPlexCreateFluent()
741 …ject)viewer, "CASE: Found number of faces %" PetscInt_FMT " face vertices: %d\n", numFaces, s.nd)); in DMPlexCreateFluent()
751 if (s.nd) { in DMPlexCreateFluent()
752 faceSizes[z] = s.nd; in DMPlexCreateFluent()
762 doffset = s.nd ? 0 : 1; in DMPlexCreateFluent()
779 doffset += faceSize + (s.nd ? 2 : 3); in DMPlexCreateFluent()