Lines Matching refs:mfdes

12   MPI_File   mfdes; /* ignored unless using MPI IO */  member
58 if (vbinary->mfdes != MPI_FILE_NULL) { in PetscViewerBinarySyncMPIIO()
60 PetscCallMPI(MPI_File_sync(vbinary->mfdes)); in PetscViewerBinarySyncMPIIO()
111 obinary->mfdes = vbinary->mfsub; in PetscViewerGetSubViewer_Binary()
138 …PetscCheck(obinary->mfdes == vbinary->mfsub, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Subviewer not … in PetscViewerRestoreSubViewer_Binary()
249 *fdes = vbinary->mfdes; in PetscViewerBinaryGetMPIIODescriptor()
755 if (vbinary->mfdes != MPI_FILE_NULL) PetscCallMPI(MPI_File_close(&vbinary->mfdes)); in PetscViewerFileClose_BinaryMPIIO()
891 MPI_File mfdes = vbinary->mfdes; in PetscViewerBinaryWriteReadMPIIO() local
902 if (rank == 0) PetscCall(MPIU_File_write_at(mfdes, vbinary->moff, data, cnt, mdtype, &status)); in PetscViewerBinaryWriteReadMPIIO()
905 PetscCall(MPIU_File_read_at(mfdes, vbinary->moff, data, cnt, mdtype, &status)); in PetscViewerBinaryWriteReadMPIIO()
1021 MPI_File mfdes; in PetscViewerBinaryWriteReadAll() local
1034 PetscCall(PetscViewerBinaryGetMPIIODescriptor(viewer, &mfdes)); in PetscViewerBinaryWriteReadAll()
1038 PetscCall(MPIU_File_write_at_all(mfdes, off, data, cnt, mdtype, MPI_STATUS_IGNORE)); in PetscViewerBinaryWriteReadAll()
1040 PetscCall(MPIU_File_read_at_all(mfdes, off, data, cnt, mdtype, MPI_STATUS_IGNORE)); in PetscViewerBinaryWriteReadAll()
1356 …n(PetscObjectComm((PetscObject)viewer), vbinary->filename, amode, MPI_INFO_NULL, &vbinary->mfdes)); in PetscViewerFileSetUp_BinaryMPIIO()
1360 if (vbinary->filemode == FILE_MODE_WRITE) PetscCallMPI(MPI_File_set_size(vbinary->mfdes, 0)); in PetscViewerFileSetUp_BinaryMPIIO()
1367 …if (vbinary->filemode == FILE_MODE_APPEND) PetscCallMPI(MPI_File_get_position(vbinary->mfdes, &vbi… in PetscViewerFileSetUp_BinaryMPIIO()
1543 vbinary->mfdes = MPI_FILE_NULL; in PetscViewerCreate_Binary()