Home
last modified time | relevance | path

Searched refs:mfdes (Results 1 – 2 of 2) sorted by relevance

/petsc/src/sys/classes/viewer/impls/binary/
H A Dbinv.c12 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()
[all …]
/petsc/src/dm/impls/da/
H A Dgr2.c580 MPI_File mfdes; in DMDAArrayMPIIO() local
624 PetscCall(PetscViewerBinaryGetMPIIODescriptor(viewer, &mfdes)); in DMDAArrayMPIIO()
626 PetscCallMPI(MPI_File_set_view(mfdes, off, MPIU_SCALAR, view, (char *)"native", MPI_INFO_NULL)); in DMDAArrayMPIIO()
629 …if (write) PetscCall(MPIU_File_write_all(mfdes, (PetscScalar *)array, asiz, MPIU_SCALAR, MPI_STATU… in DMDAArrayMPIIO()
630 …else PetscCall(MPIU_File_read_all(mfdes, (PetscScalar *)array, asiz, MPIU_SCALAR, MPI_STATUS_IGNOR… in DMDAArrayMPIIO()