Home
last modified time | relevance | path

Searched refs:fdes (Results 1 – 4 of 4) sorted by relevance

/petsc/src/sys/classes/viewer/impls/binary/
H A Dbinv.c7 int fdes; /* file descriptor, ignored if using MPI IO */ member
146 …PetscCheck(obinary->fdes == vbinary->fdes, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Subviewer not ob… in PetscViewerRestoreSubViewer_Binary()
240 PetscErrorCode PetscViewerBinaryGetMPIIODescriptor(PetscViewer viewer, MPI_File *fdes) in PetscViewerBinaryGetMPIIODescriptor() argument
246 PetscAssertPointer(fdes, 2); in PetscViewerBinaryGetMPIIODescriptor()
249 *fdes = vbinary->mfdes; in PetscViewerBinaryGetMPIIODescriptor()
418 PetscErrorCode PetscViewerBinaryGetDescriptor(PetscViewer viewer, int *fdes) in PetscViewerBinaryGetDescriptor() argument
424 PetscAssertPointer(fdes, 2); in PetscViewerBinaryGetDescriptor()
427 *fdes = vbinary->fdes; in PetscViewerBinaryGetDescriptor()
767 if (vbinary->fdes != -1) { in PetscViewerFileClose_BinarySTDIO()
768 PetscCall(PetscBinaryClose(vbinary->fdes)); in PetscViewerFileClose_BinarySTDIO()
[all …]
/petsc/src/vec/vec/tests/
H A Dex46.c111 int fdes; in HeaderlessBinaryRead() local
120 PetscCall(PetscBinaryOpen(name, FILE_MODE_READ, &fdes)); in HeaderlessBinaryRead()
121 PetscCall(PetscBinaryRead(fdes, buffer, VEC_LEN, NULL, PETSC_SCALAR)); in HeaderlessBinaryRead()
122 PetscCall(PetscBinaryClose(fdes)); in HeaderlessBinaryRead()
/petsc/src/dm/tutorials/
H A Dex15.c94 int fdes; in HeaderlessBinaryReadCheck() local
105 PetscCall(PetscBinaryOpen(name, FILE_MODE_READ, &fdes)); in HeaderlessBinaryReadCheck()
106 PetscCall(PetscBinaryRead(fdes, buffer, len, NULL, PETSC_SCALAR)); in HeaderlessBinaryReadCheck()
107 PetscCall(PetscBinaryClose(fdes)); in HeaderlessBinaryReadCheck()
/petsc/src/dm/impls/plex/
H A Dplexfluent.c62 int fdes = 0; in DMPlexCreateFluent_ReadValues() local
72 fdes = fileno(file); in DMPlexCreateFluent_ReadValues()
98 PetscCall(PetscBinaryRead(fdes, ibuf, count, NULL, PETSC_ENUM)); in DMPlexCreateFluent_ReadValues()
107 PetscCall(PetscBinaryRead(fdes, fbuf, count, NULL, PETSC_FLOAT)); in DMPlexCreateFluent_ReadValues()