Home
last modified time | relevance | path

Searched refs:PETSC_INT (Results 1 – 25 of 69) sorted by relevance

123

/petsc/src/sys/classes/viewer/tests/
H A Dex6.c34 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 Dex2.c14 …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 Dbread.c87 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 Dswrite.c31 } else if (dt == PETSC_INT) { in mexFunction()
H A Dsread.c33 } else if (dt == PETSC_INT) { in mexFunction()
/petsc/src/dm/impls/da/
H A Ddaview.c59 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 Ddacreate.c131 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 Disio.c25 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 Dbag.c121 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 Dex20f.F9032 PetscCallA(PetscBinaryWrite(fd, vecclassid, ione, PETSC_INT, ierr))
34 PetscCallA(PetscBinaryWrite(fd, n, ione, PETSC_INT, ierr))
H A Dex48.c127 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 Dex6.c42 PetscCall(PetscBinaryWrite(fd, &m, 1, PETSC_INT)); in main()
64 PetscCall(PetscBinaryRead(fd, &sz, 1, NULL, PETSC_INT)); in main()
H A Dex6f.F9046 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 Dex22.c30 PetscCall(PetscByteSwap(sint, PETSC_INT, 2)); in main()
37 PetscCall(PetscByteSwap(sint, PETSC_INT, 2)); in main()
H A Dex49.c27 …PetscCheck(dtype == PETSC_INT, PETSC_COMM_WORLD, PETSC_ERR_ARG_WRONG, "Found wrong datatype for in… in main()
/petsc/src/sys/objects/
H A Dptype.c27 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 Dzbinvf90.c24 *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 Dplexply.c165 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 Dcheckptr.c95 case PETSC_INT: { in PetscCheckPointer()
/petsc/src/vec/is/section/interface/hdf5/
H A Dsectionhdf5.c96 …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 Dzhdf5f.c32 *ierr = PetscViewerHDF5WriteAttribute(*viewer, c1, c2, PETSC_INT, value); in petscviewerhdf5writeattributeint_()
/petsc/src/sys/tutorials/
H A Dex5.c91 …PetscCall(PetscBagRegisterEnum(bag, &params->dt, PetscDataTypes, (PetscEnum)PETSC_INT, "dt", "mean… in main()
/petsc/src/dm/impls/swarm/
H A Dswarmpic_view.c152 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 Dex249.c39 PetscCall(PetscViewerBinaryRead(rowfd, &n, 1, NULL, PETSC_INT)); in main()
/petsc/src/dm/impls/swarm/tests/
H A Dex8.c63 PetscCall(DMSwarmRegisterPetscDatatypeField(*sw, "species", 1, PETSC_INT)); in CreateSwarm()

123