Home
last modified time | relevance | path

Searched refs:filemode (Results 1 – 3 of 3) sorted by relevance

/petsc/src/sys/classes/viewer/impls/binary/
H A Dbinv.c17 PetscFileMode filemode; /* read/write/append mode */ member
56 if (vbinary->filemode == FILE_MODE_READ) PetscFunctionReturn(PETSC_SUCCESS); in PetscViewerBinarySyncMPIIO()
95 switch (vbinary->filemode) { in PetscViewerGetSubViewer_Binary()
106 …RRQ(PETSC_COMM_SELF, PETSC_ERR_SUP, "Unsupported file mode %s", PetscFileModes[vbinary->filemode]); in PetscViewerGetSubViewer_Binary()
1263 …PetscCheck(!viewer->setupcalled || vbinary->filemode == mode, PetscObjectComm((PetscObject)viewer)… in PetscViewerFileSetMode_Binary()
1264 vbinary->filemode = mode; in PetscViewerFileSetMode_Binary()
1302 *mode = vbinary->filemode; in PetscViewerFileGetMode_Binary()
1341 switch (vbinary->filemode) { in PetscViewerFileSetUp_BinaryMPIIO()
1354 …PetscObject)viewer), PETSC_ERR_SUP, "Unsupported file mode %s", PetscFileModes[vbinary->filemode]); in PetscViewerFileSetUp_BinaryMPIIO()
1360 if (vbinary->filemode == FILE_MODE_WRITE) PetscCallMPI(MPI_File_set_size(vbinary->mfdes, 0)); in PetscViewerFileSetUp_BinaryMPIIO()
[all …]
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DViewer.pyx229 if mode is not None: cmode = filemode(mode)
265 cdef PetscFileMode cmode = filemode(mode)
298 cdef PetscFileMode cmode = filemode(mode)
335 cdef PetscFileMode cmode = filemode(mode)
371 cdef PetscFileMode cmode = filemode(mode)
831 CHKERR(PetscViewerFileSetMode(self.vwr, filemode(mode)))
1071 cdef PetscFileMode cmode = filemode(mode)
H A Dpetscvwr.pxi150 cdef inline PetscFileMode filemode(object mode) except <PetscFileMode>(-1): function