Lines Matching refs:viewer
96 static PetscErrorCode BinaryReadIntoInt(PetscViewer viewer, PetscInt *out, PetscDataType file_type)… in BinaryReadIntoInt() argument
101 PetscCall(PetscViewerBinaryRead(viewer, &val, 1, NULL, PETSC_INT32)); in BinaryReadIntoInt()
105 PetscCall(PetscViewerBinaryRead(viewer, &val, 1, NULL, PETSC_INT64)); in BinaryReadIntoInt()
108 PetscCall(PetscViewerBinaryRead(viewer, out, 1, NULL, PETSC_INT)); in BinaryReadIntoInt()
114 PetscErrorCode LoadFluidsBinaryVec(MPI_Comm comm, PetscViewer viewer, Vec Q, PetscReal *time, Petsc… in LoadFluidsBinaryVec() argument
121 PetscCall(PetscViewerBinaryRead(viewer, &token, 1, NULL, PETSC_INT32)); in LoadFluidsBinaryVec()
126 PetscCall(BinaryReadIntoInt(viewer, &file_step_number, file_type)); in LoadFluidsBinaryVec()
127 PetscCall(PetscViewerBinaryRead(viewer, &file_time, 1, NULL, PETSC_REAL)); in LoadFluidsBinaryVec()
132 PetscCall(BinaryReadIntoInt(viewer, &length, file_type)); in LoadFluidsBinaryVec()
135 PetscCall(PetscViewerBinarySetSkipHeader(viewer, PETSC_TRUE)); in LoadFluidsBinaryVec()
138 PetscCall(VecLoad(Q, viewer)); in LoadFluidsBinaryVec()
145 PetscViewer viewer; in RegressionTest() local
153 PetscCall(PetscViewerBinaryOpen(comm, app_ctx->test_file_path, FILE_MODE_READ, &viewer)); in RegressionTest()
154 PetscCall(LoadFluidsBinaryVec(comm, viewer, Q_ref, NULL, NULL)); in RegressionTest()
170 PetscCall(PetscViewerDestroy(&viewer)); in RegressionTest()
235 PetscViewer viewer; in SetupICsFromBinary() local
238 PetscCall(PetscViewerBinaryOpen(comm, app_ctx->cont_file, FILE_MODE_READ, &viewer)); in SetupICsFromBinary()
239 PetscCall(LoadFluidsBinaryVec(comm, viewer, Q, &app_ctx->cont_time, &app_ctx->cont_steps)); in SetupICsFromBinary()
240 PetscCall(PetscViewerDestroy(&viewer)); in SetupICsFromBinary()