Lines Matching refs:step_no
178 PetscErrorCode WriteOutput(User user, Vec Q, PetscInt step_no, PetscScalar time) { in WriteOutput() argument
192 …file_path, sizeof file_path, "%s/ns-%03" PetscInt_FMT ".vtu", user->app_ctx->output_dir, step_no)); in WriteOutput()
211 step_no)); in WriteOutput()
224 …th, sizeof file_path, "%s/ns-solution-%" PetscInt_FMT ".bin", user->app_ctx->output_dir, step_no)); in WriteOutput()
232 PetscCall(PetscViewerBinaryWrite(viewer, &step_no, 1, PETSC_INT)); in WriteOutput()
241 PetscErrorCode TSMonitor_WallForce(TS ts, PetscInt step_no, PetscReal time, Vec Q, void *ctx) { in TSMonitor_WallForce() argument
268 …ViewerASCIIPrintf(viewer, "%" PetscInt_FMT ",%g,%" PetscInt_FMT ",%g,%g,%g\n", step_no, time, wall, in TSMonitor_WallForce()
282 PetscErrorCode TSMonitor_NS(TS ts, PetscInt step_no, PetscReal time, Vec Q, void *ctx) { in TSMonitor_NS() argument
287 …if (user->app_ctx->checkpoint_interval <= 0 || step_no % user->app_ctx->checkpoint_interval != 0 || in TSMonitor_NS()
288 (user->app_ctx->cont_steps == step_no && step_no != 0)) { in TSMonitor_NS()
292 PetscCall(WriteOutput(user, Q, step_no, time)); in TSMonitor_NS()
408 PetscInt step_no; in TSSolve_NS() local
409 PetscCall(TSGetStepNumber(*ts, &step_no)); in TSSolve_NS()
411 PetscCall(WriteOutput(user, *Q, step_no, final_time)); in TSSolve_NS()