| /petsc/src/sys/classes/viewer/tests/ |
| H A D | ex6.c | 34 PetscCall(PetscViewerBinaryWrite(viewer, &idata, 1, PETSC_INT)); in TestWrite() 39 PetscCall(PetscViewerBinaryWrite(subviewer, &idata, 1, PETSC_INT)); in TestWrite() 44 PetscCall(PetscViewerBinaryWriteAll(viewer, &idata, 1, s, t, PETSC_INT)); in TestWrite() 49 PetscCall(PetscViewerBinaryWrite(subviewer, &idata, 1, PETSC_INT)); in TestWrite() 54 PetscCall(PetscViewerBinaryWrite(viewer, &idata, 1, PETSC_INT)); in TestWrite() 68 PetscCall(PetscViewerBinaryRead(viewer, &idata, 1, NULL, PETSC_INT)); in TestRead() 76 PetscCall(PetscViewerBinaryRead(subviewer, &idata, 1, NULL, PETSC_INT)); in TestRead() 83 PetscCall(PetscViewerBinaryReadAll(viewer, &idata, 1, s, t, PETSC_INT)); in TestRead() 91 PetscCall(PetscViewerBinaryRead(subviewer, &idata, 1, NULL, PETSC_INT)); in TestRead() 98 PetscCall(PetscViewerBinaryRead(viewer, &idata, 1, NULL, PETSC_INT)); in TestRead()
|
| /petsc/src/sys/error/tests/ |
| H A D | ex2.c | 14 …if (!PetscCheckPointer(ptr, PETSC_INT)) PetscCall(PetscPrintf(PETSC_COMM_SELF, "Mistook valid poin… in main() 16 …if (PetscCheckPointer(ptr, PETSC_INT)) PetscCall(PetscPrintf(PETSC_COMM_SELF, "Mistook NULL pointe… in main() 18 …if (PetscCheckPointer(ptr, PETSC_INT)) PetscCall(PetscPrintf(PETSC_COMM_SELF, "Mistook invalid poi… in main()
|
| /petsc/src/sys/classes/viewer/impls/socket/mex-scripts/ |
| H A D | bread.c | 87 if (type == PETSC_INT) n *= sizeof(int); in PetscBinaryRead() 104 if (type == PETSC_INT) SYByteSwapInt((int *)ptmp, ntmp); in PetscBinaryRead() 132 if (type == PETSC_INT) n *= sizeof(int); in PetscBinaryWrite() 140 if (type == PETSC_INT) SYByteSwapInt((int *)ptmp, ntmp); in PetscBinaryWrite() 160 if (type == PETSC_INT) SYByteSwapInt((int *)ptmp, ntmp); in PetscBinaryWrite()
|
| H A D | swrite.c | 31 } else if (dt == PETSC_INT) { in mexFunction()
|
| H A D | sread.c | 33 } else if (dt == PETSC_INT) { in mexFunction()
|
| /petsc/src/dm/impls/da/ |
| H A D | daview.c | 59 PetscCall(PetscViewerBinaryWrite(viewer, &dim, 1, PETSC_INT)); in DMView_DA_Binary() 60 PetscCall(PetscViewerBinaryWrite(viewer, &m, 1, PETSC_INT)); in DMView_DA_Binary() 61 PetscCall(PetscViewerBinaryWrite(viewer, &n, 1, PETSC_INT)); in DMView_DA_Binary() 62 PetscCall(PetscViewerBinaryWrite(viewer, &p, 1, PETSC_INT)); in DMView_DA_Binary() 63 PetscCall(PetscViewerBinaryWrite(viewer, &dof, 1, PETSC_INT)); in DMView_DA_Binary() 64 PetscCall(PetscViewerBinaryWrite(viewer, &swidth, 1, PETSC_INT)); in DMView_DA_Binary()
|
| H A D | dacreate.c | 131 PetscCall(PetscViewerBinaryRead(viewer, &dim, 1, NULL, PETSC_INT)); in DMLoad_DA() 132 PetscCall(PetscViewerBinaryRead(viewer, &m, 1, NULL, PETSC_INT)); in DMLoad_DA() 133 PetscCall(PetscViewerBinaryRead(viewer, &n, 1, NULL, PETSC_INT)); in DMLoad_DA() 134 PetscCall(PetscViewerBinaryRead(viewer, &p, 1, NULL, PETSC_INT)); in DMLoad_DA() 135 PetscCall(PetscViewerBinaryRead(viewer, &dof, 1, NULL, PETSC_INT)); in DMLoad_DA() 136 PetscCall(PetscViewerBinaryRead(viewer, &swidth, 1, NULL, PETSC_INT)); in DMLoad_DA()
|
| /petsc/src/vec/is/utils/ |
| H A D | isio.c | 25 if (!skipHeader) PetscCall(PetscViewerBinaryWrite(viewer, tr, 2, PETSC_INT)); in ISView_Binary() 29 PetscCall(PetscViewerBinaryWriteAll(viewer, iarray, n, s, N, PETSC_INT)); in ISView_Binary() 75 PetscCall(PetscViewerBinaryRead(viewer, tr, 2, NULL, PETSC_INT)); in ISLoad_Binary() 97 PetscCall(PetscViewerBinaryReadAll(viewer, idx, n, s, N, PETSC_INT)); in ISLoad_Binary()
|
| /petsc/src/sys/classes/bag/ |
| H A D | bag.c | 121 item->dtype = PETSC_INT; in PetscBagRegisterIntArray() 218 item->dtype = PETSC_INT; in PetscBagRegisterInt() 266 item->dtype = PETSC_INT; in PetscBagRegisterInt64() 601 } else if (nitem->dtype == PETSC_INT) { in PetscBagSetFromOptions() 688 } else if (nitem->dtype == PETSC_INT) { in PetscBagView() 716 PetscCall(PetscViewerBinaryWrite(view, &classid, 1, PETSC_INT)); in PetscBagView() 717 PetscCall(PetscViewerBinaryWrite(view, &deprecatedbagsize, 1, PETSC_INT)); in PetscBagView() 718 PetscCall(PetscViewerBinaryWrite(view, &bag->count, 1, PETSC_INT)); in PetscBagView() 722 PetscCall(PetscViewerBinaryWrite(view, &nitem->offset, 1, PETSC_INT)); in PetscBagView() 724 PetscCall(PetscViewerBinaryWrite(view, &dtype, 1, PETSC_INT)); in PetscBagView() [all …]
|
| /petsc/src/vec/vec/tests/ |
| H A D | ex20f.F90 | 32 PetscCallA(PetscBinaryWrite(fd, vecclassid, ione, PETSC_INT, ierr)) 34 PetscCallA(PetscBinaryWrite(fd, n, ione, PETSC_INT, ierr))
|
| H A D | ex48.c | 127 case PETSC_INT: in compare() 227 PetscDataType types[nt] = {PETSC_BOOL, PETSC_INT, PETSC_REAL, PETSC_STRING, PETSC_STRING}; in CapsuleCreate() 771 PetscCall(PetscViewerHDF5ReadAttribute(viewer, "/", "attr_0_int", PETSC_INT, NULL, &ints[0])); in testAttributesDefaultValue() 773 PetscCall(PetscViewerHDF5ReadAttribute(viewer, "/", "attr_0_int", PETSC_INT, &ints[1], &ints[2])); in testAttributesDefaultValue() 774 …PetscCall(PetscViewerHDF5ReadAttribute(viewer, "/", "attr_nonExisting_int", PETSC_INT, &ints[1], &… in testAttributesDefaultValue()
|
| /petsc/src/vec/vec/tutorials/ |
| H A D | ex6.c | 42 PetscCall(PetscBinaryWrite(fd, &m, 1, PETSC_INT)); in main() 64 PetscCall(PetscBinaryRead(fd, &sz, 1, NULL, PETSC_INT)); in main()
|
| H A D | ex6f.F90 | 46 PetscCallA(PetscBinaryWrite(fd, t, one, PETSC_INT, ierr)) 70 PetscCallA(PetscBinaryRead(fd, t, one, PETSC_NULL_INTEGER, PETSC_INT, ierr))
|
| /petsc/src/sys/tests/ |
| H A D | ex22.c | 30 PetscCall(PetscByteSwap(sint, PETSC_INT, 2)); in main() 37 PetscCall(PetscByteSwap(sint, PETSC_INT, 2)); in main()
|
| H A D | ex49.c | 27 …PetscCheck(dtype == PETSC_INT, PETSC_COMM_WORLD, PETSC_ERR_ARG_WRONG, "Found wrong datatype for in… in main()
|
| /petsc/src/sys/objects/ |
| H A D | ptype.c | 27 if (ptype == PETSC_INT) *mtype = MPIU_INT; in PetscDataTypeToMPIDataType() 75 if (mtype == MPIU_INT) *ptype = PETSC_INT; in PetscMPIDataTypeToPetscDataType() 151 else if (ptype == PETSC_INT) *size = PETSC_INT_SIZE; in PetscDataTypeGetSize()
|
| /petsc/src/sys/classes/viewer/impls/binary/ftn-custom/ |
| H A D | zbinvf90.c | 24 *ierr = PetscViewerBinaryWrite(v, a, *len, PETSC_INT); in petscviewerbinarywriteint_() 46 *ierr = PetscViewerBinaryRead(v, a, *len, count, PETSC_INT); in petscviewerbinaryreadint_()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexply.c | 165 PetscCall(PetscViewerRead(viewer, &ibuf, 1, NULL, PETSC_INT)); in DMPlexCreatePLYFromFile() 166 if (byteSwap) PetscCall(PetscByteSwap(&ibuf, PETSC_INT, 1)); in DMPlexCreatePLYFromFile() 189 PetscCall(PetscViewerRead(viewer, &vbuf, ibuf[0], NULL, PETSC_INT)); in DMPlexCreatePLYFromFile() 190 if (byteSwap) PetscCall(PetscByteSwap(&vbuf, PETSC_INT, ibuf[0])); in DMPlexCreatePLYFromFile()
|
| /petsc/src/sys/error/ |
| H A D | checkptr.c | 95 case PETSC_INT: { in PetscCheckPointer()
|
| /petsc/src/vec/is/section/interface/hdf5/ |
| H A D | sectionhdf5.c | 96 …PetscCall(PetscViewerHDF5WriteAttribute(viewer, NULL, "numFields", PETSC_INT, (void *)&numFields)); in PetscSectionView_HDF5_Internal() 108 …PetscCall(PetscViewerHDF5WriteAttribute(viewer, NULL, "fieldComponents", PETSC_INT, (void *)&field… in PetscSectionView_HDF5_Internal() 281 …PetscCall(PetscViewerHDF5ReadAttribute(viewer, NULL, "numFields", PETSC_INT, NULL, (void *)&numFie… in PetscSectionLoad_HDF5_Internal() 303 …PetscCall(PetscViewerHDF5ReadAttribute(viewer, NULL, "fieldComponents", PETSC_INT, NULL, (void *)&… in PetscSectionLoad_HDF5_Internal()
|
| /petsc/src/sys/classes/viewer/impls/hdf5/ftn-custom/ |
| H A D | zhdf5f.c | 32 *ierr = PetscViewerHDF5WriteAttribute(*viewer, c1, c2, PETSC_INT, value); in petscviewerhdf5writeattributeint_()
|
| /petsc/src/sys/tutorials/ |
| H A D | ex5.c | 91 …PetscCall(PetscBagRegisterEnum(bag, ¶ms->dt, PetscDataTypes, (PetscEnum)PETSC_INT, "dt", "mean… in main()
|
| /petsc/src/dm/impls/swarm/ |
| H A D | swarmpic_view.c | 152 PetscCall(PetscViewerBinaryWrite(fviewer, pvertex, 3, PETSC_INT)); in private_DMSwarmView_XDMF() 360 } else if (type == PETSC_INT) { in DMSwarmViewFieldsXDMF() 417 } else if (field->petsc_type == PETSC_INT) { in DMSwarmViewXDMF()
|
| /petsc/src/mat/tests/ |
| H A D | ex249.c | 39 PetscCall(PetscViewerBinaryRead(rowfd, &n, 1, NULL, PETSC_INT)); in main()
|
| /petsc/src/dm/impls/swarm/tests/ |
| H A D | ex8.c | 63 PetscCall(DMSwarmRegisterPetscDatatypeField(*sw, "species", 1, PETSC_INT)); in CreateSwarm()
|