Lines Matching refs:is
6 PetscErrorCode ISView_Binary(IS is, PetscViewer viewer) in ISView_Binary() argument
17 PetscCall(ISGetLayout(is, &map)); in ISView_Binary()
28 PetscCall(ISGetIndices(is, &iarray)); in ISView_Binary()
30 PetscCall(ISRestoreIndices(is, &iarray)); in ISView_Binary()
39 static PetscErrorCode ISLoad_HDF5(IS is, PetscViewer viewer) in ISLoad_HDF5() argument
45 …PetscCheck(((PetscObject)is)->name, PetscObjectComm((PetscObject)is), PETSC_ERR_SUP, "IS name must… in ISLoad_HDF5()
46 PetscCall(PetscObjectGetName((PetscObject)is, &isname)); in ISLoad_HDF5()
48 PetscCall(PetscViewerHDF5Load(viewer, isname, is->map, H5T_NATIVE_LLONG, (void **)&ind)); in ISLoad_HDF5()
50 PetscCall(PetscViewerHDF5Load(viewer, isname, is->map, H5T_NATIVE_INT, (void **)&ind)); in ISLoad_HDF5()
52 PetscCall(ISGeneralSetIndices(is, is->map->n, ind, PETSC_OWN_POINTER)); in ISLoad_HDF5()
53 …PetscCall(PetscInfo(is, "Read IS object with name %s of size %" PetscInt_FMT ":%" PetscInt_FMT "\n… in ISLoad_HDF5()
58 static PetscErrorCode ISLoad_Binary(IS is, PetscViewer viewer) in ISLoad_Binary() argument
65 PetscCall(PetscObjectTypeCompare((PetscObject)is, ISGENERAL, &isgeneral)); in ISLoad_Binary()
66 …PetscCheck(isgeneral, PetscObjectComm((PetscObject)is), PETSC_ERR_ARG_INCOMP, "IS must be of type … in ISLoad_Binary()
70 PetscCall(ISGetLayout(is, &map)); in ISLoad_Binary()
98 PetscCall(ISGeneralSetIndices(is, n, idx, PETSC_OWN_POINTER)); in ISLoad_Binary()
102 PetscErrorCode ISLoad_Default(IS is, PetscViewer viewer) in ISLoad_Default() argument
110 PetscCall(ISLoad_Binary(is, viewer)); in ISLoad_Default()
113 PetscCall(ISLoad_HDF5(is, viewer)); in ISLoad_Default()