Searched refs:rnpart (Results 1 – 1 of 1) sorted by relevance
| /petsc/src/dm/impls/plex/ |
| H A D | plexcreate.c | 7095 int rnum, rlen, rshtype, rnpart, rnp; in DMPlexCreateShapefile() local 7118 PetscCall(PetscViewerBinaryRead(viewer, &rnpart, 1, &cnt, PETSC_INT32)); in DMPlexCreateShapefile() 7119 PetscCall(PetscByteSwap(&rnpart, PETSC_INT32, 1)); in DMPlexCreateShapefile() 7121 PetscCall(PetscInfo(viewer, "Shapefile: record shape number of parts %d\n", rnpart)); in DMPlexCreateShapefile() 7127 PetscCall(PetscMalloc1(rnpart, &partOffsets)); in DMPlexCreateShapefile() 7128 PetscCall(PetscViewerBinaryRead(viewer, partOffsets, rnpart, &cnt, PETSC_INT32)); in DMPlexCreateShapefile() 7129 PetscCall(PetscByteSwap(partOffsets, PETSC_INT32, rnpart)); in DMPlexCreateShapefile() 7130 …PetscCheck(cnt == rnpart, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Unable to parse Shapefile file: c… in DMPlexCreateShapefile() 7131 totlen += 4 * rnpart; in DMPlexCreateShapefile() 7139 vOff = partOffsets[rnpart - 1]; in DMPlexCreateShapefile()
|