Lines Matching refs:file_id
109 if (hdf5->file_id) PetscCallHDF5(H5Fclose, (hdf5->file_id)); in PetscViewerFileClose_HDF5()
118 if (hdf5->file_id) PetscCallHDF5(H5Fflush, (hdf5->file_id, H5F_SCOPE_LOCAL)); in PetscViewerFlush_HDF5()
406 if (hdf5->file_id) PetscCallHDF5(H5Fclose, (hdf5->file_id)); in PetscViewerFileSetName_HDF5()
428 PetscCallHDF5Return(hdf5->file_id, H5Fopen, (name, H5F_ACC_RDONLY, plist_id)); in PetscViewerFileSetName_HDF5()
434 if (flg) PetscCallHDF5Return(hdf5->file_id, H5Fopen, (name, H5F_ACC_RDWR, plist_id)); in PetscViewerFileSetName_HDF5()
435 else PetscCallHDF5Return(hdf5->file_id, H5Fcreate, (name, H5F_ACC_EXCL, H5P_DEFAULT, plist_id)); in PetscViewerFileSetName_HDF5()
439 PetscCallHDF5Return(hdf5->file_id, H5Fcreate, (name, H5F_ACC_TRUNC, H5P_DEFAULT, plist_id)); in PetscViewerFileSetName_HDF5()
446 PetscCheck(hdf5->file_id >= 0, PETSC_COMM_SELF, PETSC_ERR_LIB, "H5Fcreate failed for %s", name); in PetscViewerFileSetName_HDF5()
720 PetscErrorCode PetscViewerHDF5GetFileId(PetscViewer viewer, hid_t *file_id) in PetscViewerHDF5GetFileId() argument
726 if (file_id) *file_id = hdf5->file_id; in PetscViewerHDF5GetFileId()
868 hid_t file_id; in PetscViewerHDF5OpenGroup() local
876 PetscCall(PetscViewerHDF5GetFileId(viewer, &file_id)); in PetscViewerHDF5OpenGroup()
885 PetscCallHDF5Return(*groupId, H5Gopen2, (file_id, groupName, H5P_DEFAULT)); in PetscViewerHDF5OpenGroup()
887 *fileId = file_id; in PetscViewerHDF5OpenGroup()