Lines Matching refs:ibuf

323     int *ibuf = NULL;  in GmshReadPetscInt()  local
324 PetscCall(GmshBufferSizeGet(gmsh, count, &ibuf)); in GmshReadPetscInt()
325 PetscCall(GmshRead(gmsh, ibuf, count, PETSC_ENUM)); in GmshReadPetscInt()
326 for (i = 0; i < count; ++i) buf[i] = (PetscInt)ibuf[i]; in GmshReadPetscInt()
328 long *ibuf = NULL; in GmshReadPetscInt() local
329 PetscCall(GmshBufferSizeGet(gmsh, count, &ibuf)); in GmshReadPetscInt()
330 PetscCall(GmshRead(gmsh, ibuf, count, PETSC_LONG)); in GmshReadPetscInt()
331 for (i = 0; i < count; ++i) buf[i] = (PetscInt)ibuf[i]; in GmshReadPetscInt()
333 PetscInt64 *ibuf = NULL; in GmshReadPetscInt() local
334 PetscCall(GmshBufferSizeGet(gmsh, count, &ibuf)); in GmshReadPetscInt()
335 PetscCall(GmshRead(gmsh, ibuf, count, PETSC_INT64)); in GmshReadPetscInt()
336 for (i = 0; i < count; ++i) buf[i] = (PetscInt)ibuf[i]; in GmshReadPetscInt()
353 int *ibuf = NULL; in GmshReadPetscCount() local
354 PetscCall(GmshBufferSizeGet(gmsh, count, &ibuf)); in GmshReadPetscCount()
355 PetscCall(GmshRead(gmsh, ibuf, count, PETSC_ENUM)); in GmshReadPetscCount()
356 for (i = 0; i < count; ++i) buf[i] = (PetscCount)ibuf[i]; in GmshReadPetscCount()
358 long *ibuf = NULL; in GmshReadPetscCount() local
359 PetscCall(GmshBufferSizeGet(gmsh, count, &ibuf)); in GmshReadPetscCount()
360 PetscCall(GmshRead(gmsh, ibuf, count, PETSC_LONG)); in GmshReadPetscCount()
361 for (i = 0; i < count; ++i) buf[i] = (PetscCount)ibuf[i]; in GmshReadPetscCount()
363 PetscInt64 *ibuf = NULL; in GmshReadPetscCount() local
364 PetscCall(GmshBufferSizeGet(gmsh, count, &ibuf)); in GmshReadPetscCount()
365 PetscCall(GmshRead(gmsh, ibuf, count, PETSC_INT64)); in GmshReadPetscCount()
366 for (i = 0; i < count; ++i) buf[i] = (PetscCount)ibuf[i]; in GmshReadPetscCount()
586 int i, c, p, num, ibuf[1 + 4 + 1000], snum; in GmshReadElements_v22() local
599 PetscCall(PetscViewerRead(viewer, ibuf, 3, NULL, PETSC_ENUM)); in GmshReadElements_v22()
600 if (byteSwap) PetscCall(PetscByteSwap(ibuf, PETSC_ENUM, 3)); in GmshReadElements_v22()
602 cellType = binary ? ibuf[0] : ibuf[1]; in GmshReadElements_v22()
603 numElem = binary ? ibuf[1] : 1; in GmshReadElements_v22()
604 numTags = ibuf[2]; in GmshReadElements_v22()
613 const int *id = ibuf, *nodes = ibuf + 1 + numTags, *tags = ibuf + 1; in GmshReadElements_v22()
614 PetscCall(PetscViewerRead(viewer, ibuf + off, nint, NULL, PETSC_ENUM)); in GmshReadElements_v22()
615 if (byteSwap) PetscCall(PetscByteSwap(ibuf + off, PETSC_ENUM, nint)); in GmshReadElements_v22()
664 int dim, eid, numTags, *ibuf, t; in GmshReadEntities_v40() local
684 PetscCall(GmshBufferGet(gmsh, num, sizeof(int), &ibuf)); in GmshReadEntities_v40()
685 PetscCall(PetscViewerRead(viewer, ibuf, num, NULL, PETSC_ENUM)); in GmshReadEntities_v40()
686 if (byteSwap) PetscCall(PetscByteSwap(ibuf, PETSC_ENUM, num)); in GmshReadEntities_v40()
688 for (t = 0; t < numTags; ++t) entity->tags[t] = ibuf[t]; in GmshReadEntities_v40()
692 PetscCall(GmshBufferGet(gmsh, lnum, sizeof(int), &ibuf)); in GmshReadEntities_v40()
694 PetscCall(PetscViewerRead(viewer, ibuf, num, NULL, PETSC_ENUM)); in GmshReadEntities_v40()
695 if (byteSwap) PetscCall(PetscByteSwap(ibuf, PETSC_ENUM, num)); in GmshReadEntities_v40()
781 int p, info[3], *ibuf = NULL; in GmshReadElements_v40() local
808 PetscCall(GmshBufferGet(gmsh, (1 + numNodes) * numElements, sizeof(int), &ibuf)); in GmshReadElements_v40()
810 PetscCall(PetscViewerRead(viewer, ibuf, icnt, NULL, PETSC_ENUM)); in GmshReadElements_v40()
811 if (byteSwap) PetscCall(PetscByteSwap(ibuf, PETSC_ENUM, (1 + numNodes) * numElements)); in GmshReadElements_v40()
814 const int *id = ibuf + elem * (1 + numNodes), *nodes = id + 1; in GmshReadElements_v40()
849 …int ibuf[3], correspondingDim = -1, correspondingTag = -1, primaryTag = -1, correspondingNode, … in GmshReadPeriodic_v40() local
858 PetscCall(PetscViewerRead(viewer, ibuf, 3, NULL, PETSC_ENUM)); in GmshReadPeriodic_v40()
859 if (byteSwap) PetscCall(PetscByteSwap(ibuf, PETSC_ENUM, 3)); in GmshReadPeriodic_v40()
860 correspondingDim = ibuf[0]; in GmshReadPeriodic_v40()
861 correspondingTag = ibuf[1]; in GmshReadPeriodic_v40()
862 primaryTag = ibuf[2]; in GmshReadPeriodic_v40()
893 PetscCall(PetscViewerRead(viewer, ibuf, 2, NULL, PETSC_ENUM)); in GmshReadPeriodic_v40()
894 if (byteSwap) PetscCall(PetscByteSwap(ibuf, PETSC_ENUM, 2)); in GmshReadPeriodic_v40()
895 correspondingNode = ibuf[0]; in GmshReadPeriodic_v40()
896 primaryNode = ibuf[1]; in GmshReadPeriodic_v40()
1029 PetscInt *nodeMap = gmsh->nodeMap, *ibuf = NULL; in GmshReadElements_v41() local
1050 PetscCall(GmshBufferGet(gmsh, (1 + numNodes) * numBlockElements, sizeof(PetscInt), &ibuf)); in GmshReadElements_v41()
1051 PetscCall(GmshReadPetscInt(gmsh, ibuf, (1 + numNodes) * numBlockElements)); in GmshReadElements_v41()
1054 const PetscInt *id = ibuf + elem * (1 + numNodes), *nodes = id + 1; in GmshReadElements_v41()