Lines Matching refs:appctx
36 AppCtx appctx; /* user-defined application context */ in main() local
50 appctx.a = -1.0; in main()
51 PetscCall(PetscOptionsGetReal(NULL, NULL, "-a", &appctx.a, NULL)); in main()
68 PetscCall(TSSetIFunction(ts, NULL, IFunction_LaxWendroff, &appctx)); in main()
71 PetscCall(TSSetIFunction(ts, NULL, IFunction_LaxFriedrichs, &appctx)); in main()
76 dt = 1.0 / (PetscAbsReal(appctx.a) * M); in main()
85 PetscCall(InitialConditions(ts, U, &appctx)); in main()
88 …Call(TSSetSolutionFunction(ts, (PetscErrorCode (*)(TS, PetscReal, Vec, void *))Solution, &appctx)); in main()
112 PetscErrorCode InitialConditions(TS ts, Vec U, AppCtx *appctx) in InitialConditions() argument
160 PetscErrorCode Solution(TS ts, PetscReal t, Vec U, AppCtx *appctx) in Solution() argument
163 PetscReal a = appctx->a, h, PI6, PI2; in Solution()
195 AppCtx *appctx = (AppCtx *)ctx; in IFunction_LaxFriedrichs() local
223 c = appctx->a * dt / h; /* Courant-Friedrichs-Lewy number (CFL number) */ in IFunction_LaxFriedrichs()
243 AppCtx *appctx = (AppCtx *)ctx; in IFunction_LaxWendroff() local
272 a = appctx->a; in IFunction_LaxWendroff()