Lines Matching refs:app_ctx
48 …if (honee->app_ctx->divFdiffproj_method != DIV_DIFF_FLUX_PROJ_NONE) PetscCall(DivDiffFluxProjectio… in RHS_NS()
136 …if (honee->app_ctx->divFdiffproj_method != DIV_DIFF_FLUX_PROJ_NONE) PetscCall(DivDiffFluxProjectio… in IFunction_NS()
156 if (honee->app_ctx->sgs_model_type == SGS_MODEL_DATA_DRIVEN) { in IFunction_NS()
201 if (honee->app_ctx->checkpoint_vtk) { in WriteOutput()
209 …ntf(file_path, sizeof file_path, "%s/ns-%03" PetscInt_FMT ".vtu", honee->app_ctx->output_dir, step… in WriteOutput()
227 …ined, sizeof file_path_refined, "%s/nsrefined-%03" PetscInt_FMT ".vtu", honee->app_ctx->output_dir, in WriteOutput()
240 if (honee->app_ctx->add_stepnum2bin) { in WriteOutput()
241 …e_path, sizeof file_path, "%s/ns-solution-%" PetscInt_FMT ".bin", honee->app_ctx->output_dir, step… in WriteOutput()
243 …PetscCall(PetscSNPrintf(file_path, sizeof file_path, "%s/ns-solution.bin", honee->app_ctx->output_… in WriteOutput()
257 PetscInt num_wall = honee->app_ctx->wall_forces.num_wall, dim = 3; in TSMonitor_WallForce()
258 const PetscInt *walls = honee->app_ctx->wall_forces.walls; in TSMonitor_WallForce()
259 PetscViewer viewer = honee->app_ctx->wall_forces.viewer; in TSMonitor_WallForce()
260 PetscViewerFormat format = honee->app_ctx->wall_forces.viewer_format; in TSMonitor_WallForce()
274 if (format == PETSC_VIEWER_ASCII_CSV && !honee->app_ctx->wall_forces.header_written) { in TSMonitor_WallForce()
276 honee->app_ctx->wall_forces.header_written = PETSC_TRUE; in TSMonitor_WallForce()
300 …if (honee->app_ctx->checkpoint_interval <= 0 || step_no % honee->app_ctx->checkpoint_interval != 0… in TSMonitor_NS()
301 (honee->app_ctx->cont_steps == step_no && step_no != 0)) { in TSMonitor_NS()
319 if (step % honee->app_ctx->check_step_interval) PetscFunctionReturn(PETSC_SUCCESS); in TSPostStep_CheckStep()
365 if (honee->app_ctx->sgs_train_enable) PetscCall(TSPostStep_SGS_DD_Training(ts)); in TSPostStep_Honee()
366 if (honee->app_ctx->check_step_interval > 0) PetscCall(TSPostStep_CheckStep(ts)); in TSPostStep_Honee()
410 PetscErrorCode TSSolve_NS(DM dm, Honee honee, AppCtx app_ctx, Physics phys, ProblemData problem, Ve… in TSSolve_NS() argument
437 if (app_ctx->test_type == TESTTYPE_NONE) PetscCall(TSSetErrorIfStepFails(*ts, PETSC_FALSE)); in TSSolve_NS()
443 if (app_ctx->amat_type && !strcmp(app_ctx->amat_type, MATSHELL)) { in TSSolve_NS()
457 if (app_ctx->cont_steps) { // continue from previous timestep data in TSSolve_NS()
458 PetscCall(TSSetTime(*ts, app_ctx->cont_time * honee->units->second)); in TSSolve_NS()
459 PetscCall(TSSetStepNumber(*ts, app_ctx->cont_steps)); in TSSolve_NS()
474 if (app_ctx->test_type == TESTTYPE_NONE) PetscCall(TSMonitorSet(*ts, TSMonitor_NS, honee, NULL)); in TSSolve_NS()
475 if (app_ctx->wall_forces.viewer) PetscCall(TSMonitorSet(*ts, TSMonitor_WallForce, honee, NULL)); in TSSolve_NS()
495 …if (app_ctx->sgs_train_enable) PetscCall(TSMonitorSet(*ts, TSMonitor_SGS_DD_Training, honee, NULL)… in TSSolve_NS()
497 …if (app_ctx->test_type == TESTTYPE_NONE) PetscCall(PrintRunInfo(honee, honee->phys, problem, *ts)); in TSSolve_NS()
539 if (app_ctx->test_type == TESTTYPE_NONE) { in TSSolve_NS()
545 if (honee->app_ctx->checkpoint_interval > 0 || honee->app_ctx->checkpoint_interval == -1) { in TSSolve_NS()