Lines Matching refs:viewer

198   PetscViewer viewer;  in WriteOutput()  local
211 …etscCall(PetscViewerVTKOpen(PetscObjectComm((PetscObject)Q), file_path, FILE_MODE_WRITE, &viewer)); in WriteOutput()
212 PetscCall(VecView(Q_loc, viewer)); in WriteOutput()
213 PetscCall(PetscViewerDestroy(&viewer)); in WriteOutput()
245 PetscCall(PetscViewerBinaryOpen(honee->comm, file_path, FILE_MODE_WRITE, &viewer)); in WriteOutput()
248 PetscCall(HoneeWriteBinaryVec(viewer, Q, time, step_no)); in WriteOutput()
249 PetscCall(PetscViewerDestroy(&viewer)); in WriteOutput()
259 PetscViewer viewer = honee->app_ctx->wall_forces.viewer; in TSMonitor_WallForce() local
265 if (!viewer) PetscFunctionReturn(PETSC_SUCCESS); in TSMonitor_WallForce()
271 PetscCall(PetscObjectTypeCompare((PetscObject)viewer, PETSCVIEWERASCII, &is_ascii)); in TSMonitor_WallForce()
275 PetscCall(PetscViewerASCIIPrintf(viewer, "Step,Time,Wall,ForceX,ForceY,ForceZ\n")); in TSMonitor_WallForce()
281 …PetscCall(PetscViewerASCIIPrintf(viewer, "%" PetscInt_FMT ",%g,%" PetscInt_FMT ",%g,%g,%g\n", step… in TSMonitor_WallForce()
285 …PetscCall(PetscViewerASCIIPrintf(viewer, "Wall %" PetscInt_FMT " Forces: Force_x = %12g, Force_y =… in TSMonitor_WallForce()
385 PetscViewer viewer; in HoneeTSEvaluationSolutions() local
395 PetscCall(PetscOptionsCreateViewer(comm, NULL, NULL, option, &viewer, &format, &is_viewer_set)); in HoneeTSEvaluationSolutions()
402 PetscCall(VecView(sol_vecs[i], viewer)); in HoneeTSEvaluationSolutions()
404 PetscCall(PetscViewerPopFormat(viewer)); in HoneeTSEvaluationSolutions()
405 PetscCall(PetscViewerDestroy(&viewer)); in HoneeTSEvaluationSolutions()
475 if (app_ctx->wall_forces.viewer) PetscCall(TSMonitorSet(*ts, TSMonitor_WallForce, honee, NULL)); in TSSolve_NS()