Lines Matching refs:app_ctx

184   if (user->app_ctx->checkpoint_vtk) {  in WriteOutput()
192 …intf(file_path, sizeof file_path, "%s/ns-%03" PetscInt_FMT ".vtu", user->app_ctx->output_dir, step… in WriteOutput()
210 …fined, sizeof file_path_refined, "%s/nsrefined-%03" PetscInt_FMT ".vtu", user->app_ctx->output_dir, in WriteOutput()
223 if (user->app_ctx->add_stepnum2bin) { in WriteOutput()
224 …le_path, sizeof file_path, "%s/ns-solution-%" PetscInt_FMT ".bin", user->app_ctx->output_dir, step… in WriteOutput()
226 …PetscCall(PetscSNPrintf(file_path, sizeof file_path, "%s/ns-solution.bin", user->app_ctx->output_d… in WriteOutput()
244 PetscInt num_wall = user->app_ctx->wall_forces.num_wall, dim = 3; in TSMonitor_WallForce()
245 const PetscInt *walls = user->app_ctx->wall_forces.walls; in TSMonitor_WallForce()
246 PetscViewer viewer = user->app_ctx->wall_forces.viewer; in TSMonitor_WallForce()
247 PetscViewerFormat format = user->app_ctx->wall_forces.viewer_format; in TSMonitor_WallForce()
261 if (format == PETSC_VIEWER_ASCII_CSV && !user->app_ctx->wall_forces.header_written) { in TSMonitor_WallForce()
263 user->app_ctx->wall_forces.header_written = PETSC_TRUE; in TSMonitor_WallForce()
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()
297 PetscErrorCode TSSolve_NS(DM dm, User user, AppCtx app_ctx, Physics phys, ProblemData problem, Vec … in TSSolve_NS() argument
324 if (app_ctx->test_type == TESTTYPE_NONE) PetscCall(TSSetErrorIfStepFails(*ts, PETSC_FALSE)); in TSSolve_NS()
330 if (app_ctx->amat_type && !strcmp(app_ctx->amat_type, MATSHELL)) { in TSSolve_NS()
344 if (app_ctx->cont_steps) { // continue from previous timestep data in TSSolve_NS()
348 if (app_ctx->cont_time <= 0) { // Legacy files did not include step number and time in TSSolve_NS()
349 PetscCall(PetscViewerBinaryOpen(comm, app_ctx->cont_time_file, FILE_MODE_READ, &viewer)); in TSSolve_NS()
350 PetscCall(PetscViewerBinaryRead(viewer, &app_ctx->cont_time, 1, &count, PETSC_REAL)); in TSSolve_NS()
352 PetscCheck(app_ctx->cont_steps != -1, comm, PETSC_ERR_ARG_INCOMP, in TSSolve_NS()
355 PetscCall(TSSetTime(*ts, app_ctx->cont_time * user->units->second)); in TSSolve_NS()
356 PetscCall(TSSetStepNumber(*ts, app_ctx->cont_steps)); in TSSolve_NS()
358 if (app_ctx->test_type == TESTTYPE_NONE) { in TSSolve_NS()
361 if (app_ctx->wall_forces.viewer) { in TSSolve_NS()
364 if (app_ctx->turb_spanstats_enable) { in TSSolve_NS()
366 CeedScalar previous_time = app_ctx->cont_time * user->units->second; in TSSolve_NS()
370 …if (app_ctx->diff_filter_monitor) PetscCall(TSMonitorSet(*ts, TSMonitor_DifferentialFilter, user, … in TSSolve_NS()
372 if (app_ctx->test_type == TESTTYPE_NONE) PetscCall(PrintRunInfo(user, user->phys, problem, *ts)); in TSSolve_NS()
407 if (app_ctx->test_type == TESTTYPE_NONE) { in TSSolve_NS()
410 if (user->app_ctx->checkpoint_interval > 0 || user->app_ctx->checkpoint_interval == -1) { in TSSolve_NS()