Lines Matching refs:app_ctx
71 AppCtx app_ctx; in main() local
72 PetscCall(PetscCalloc1(1, &app_ctx)); in main()
92 user->app_ctx = app_ctx; in main()
103 PetscCall(RegisterProblems_NS(app_ctx)); in main()
108 PetscCall(ProcessCommandLineOptions(comm, app_ctx, bc)); in main()
109 PetscCall(BoundaryConditionSetUp(user, problem, app_ctx, bc)); in main()
116 …PetscCheck(CeedInit(app_ctx->ceed_resource, &ceed) == CEED_ERROR_SUCCESS, comm, PETSC_ERR_LIB, "Ce… in main()
169 PetscCall(PetscFunctionListFind(app_ctx->problems, app_ctx->problem_name, &p)); in main()
170 PetscCheck(p, PETSC_COMM_SELF, 1, "Problem '%s' not found", app_ctx->problem_name); in main()
175 PetscCall(SetUpDM(dm, problem, app_ctx->degree, app_ctx->q_extra, bc, phys_ctx)); in main()
178 if (app_ctx->viz_refine) PetscCall(VizRefineDM(dm, user, problem, bc, phys_ctx)); in main()
197 PetscCall(SetupLibceed(ceed, ceed_data, dm, user, app_ctx, problem, bc)); in main()
222 PetscCall(PetscMkdir(app_ctx->output_dir)); in main()
229 if (app_ctx->cont_steps) { in main()
230 PetscCall(SetupICsFromBinary(comm, app_ctx, Q)); in main()
241 PetscCall(TSSolve_NS(dm, user, app_ctx, phys_ctx, problem, &Q, &final_time, &ts)); in main()
298 if (app_ctx->test_type != TESTTYPE_NONE) { in main()
327 PetscCall(PetscFunctionListDestroy(&app_ctx->problems)); in main()
329 PetscCall(PetscFree(app_ctx->amat_type)); in main()
330 PetscCall(PetscFree(app_ctx->wall_forces.walls)); in main()
331 PetscCall(PetscViewerDestroy(&app_ctx->wall_forces.viewer)); in main()
332 PetscCall(PetscViewerDestroy(&app_ctx->turb_spanstats_viewer)); in main()
344 PetscCall(PetscFree(app_ctx)); in main()