| /petsc/src/sys/objects/ |
| H A D | ptype.c | 40 else if (ptype == PETSC_ENUM) *mtype = MPI_INT; in PetscDataTypeToMPIDataType() 77 else if (mtype == MPI_INT) *ptype = PETSC_ENUM; in PetscMPIDataTypeToPetscDataType() 158 else if (ptype == PETSC_ENUM) *size = PETSC_ENUM_SIZE; in PetscDataTypeGetSize()
|
| /petsc/src/dm/impls/da/ |
| H A D | daview.c | 65 PetscCall(PetscViewerBinaryWrite(viewer, &bx, 1, PETSC_ENUM)); in DMView_DA_Binary() 66 PetscCall(PetscViewerBinaryWrite(viewer, &by, 1, PETSC_ENUM)); in DMView_DA_Binary() 67 PetscCall(PetscViewerBinaryWrite(viewer, &bz, 1, PETSC_ENUM)); in DMView_DA_Binary() 68 PetscCall(PetscViewerBinaryWrite(viewer, &stencil, 1, PETSC_ENUM)); in DMView_DA_Binary()
|
| H A D | dacreate.c | 137 PetscCall(PetscViewerBinaryRead(viewer, &bx, 1, NULL, PETSC_ENUM)); in DMLoad_DA() 138 PetscCall(PetscViewerBinaryRead(viewer, &by, 1, NULL, PETSC_ENUM)); in DMLoad_DA() 139 PetscCall(PetscViewerBinaryRead(viewer, &bz, 1, NULL, PETSC_ENUM)); in DMLoad_DA() 140 PetscCall(PetscViewerBinaryRead(viewer, &stencil, 1, NULL, PETSC_ENUM)); in DMLoad_DA()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexgmsh.c | 325 PetscCall(GmshRead(gmsh, ibuf, count, PETSC_ENUM)); in GmshReadPetscInt() 355 PetscCall(GmshRead(gmsh, ibuf, count, PETSC_ENUM)); in GmshReadPetscCount() 377 PetscCall(GmshRead(gmsh, buf, count, PETSC_ENUM)); in GmshReadInt() 566 PetscCall(PetscViewerRead(viewer, &nid, 1, NULL, PETSC_ENUM)); in GmshReadNodes_v22() 568 if (byteSwap) PetscCall(PetscByteSwap(&nid, PETSC_ENUM, 1)); in GmshReadNodes_v22() 599 PetscCall(PetscViewerRead(viewer, ibuf, 3, NULL, PETSC_ENUM)); in GmshReadElements_v22() 600 if (byteSwap) PetscCall(PetscByteSwap(ibuf, PETSC_ENUM, 3)); 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() 676 PetscCall(PetscViewerRead(viewer, &eid, 1, NULL, PETSC_ENUM)); in GmshReadEntities_v40() [all …]
|
| H A D | plexfluent.c | 98 PetscCall(PetscBinaryRead(fdes, ibuf, count, NULL, PETSC_ENUM)); in DMPlexCreateFluent_ReadValues() 99 PetscCall(PetscByteSwap(ibuf, PETSC_ENUM, count)); in DMPlexCreateFluent_ReadValues()
|
| /petsc/src/sys/error/ |
| H A D | checkptr.c | 118 case PETSC_ENUM: { in PetscCheckPointer()
|
| /petsc/src/sys/classes/bag/ |
| H A D | bag.c | 68 item->dtype = PETSC_ENUM; in PetscBagRegisterEnum() 609 } else if (nitem->dtype == PETSC_ENUM) { in PetscBagSetFromOptions() 704 } else if (nitem->dtype == PETSC_ENUM) { in PetscBagView() 730 …if (dtype == PETSC_ENUM) PetscCall(PetscViewerBinaryWriteStringArray(view, (const char *const *)ni… in PetscBagView() 850 } else if (dtype == (PetscInt)PETSC_ENUM) { in PetscBagLoad() 851 PetscCall(PetscViewerBinaryRead(view, ((char *)bag) + nitem->offset, 1, NULL, PETSC_ENUM)); in PetscBagLoad()
|
| /petsc/include/ |
| H A D | petscsystypes.h | 719 PETSC_ENUM = 8, enumerator
|
| /petsc/src/sys/fileio/ |
| H A D | sysio.c | 231 else if (pdtype == PETSC_ENUM) PetscCall(PetscByteSwapEnum((PetscEnum *)data, count)); in PetscByteSwap() 461 else if (wtype == PETSC_ENUM) m *= sizeof(PetscEnum); in PetscBinaryWrite()
|
| /petsc/src/binding/petsc4py/src/petsc4py/include/petsc4py/ |
| H A D | petsc4py.i | 329 %typemaps_primitive(%checkcode(PETSC_ENUM), PetscEnum);
|
| /petsc/src/sys/classes/viewer/impls/ascii/ |
| H A D | filev.c | 1230 else if (dtype == PETSC_ENUM) ret = fscanf(fd, "%d", &(((int *)data)[i])); in PetscViewerASCIIRead()
|
| /petsc/src/sys/classes/viewer/impls/hdf5/ |
| H A D | hdf5v.c | 1118 else if (ptype == PETSC_ENUM) *htype = H5T_NATIVE_INT; in PetscDataTypeToHDF5DataType()
|