Home
last modified time | relevance | path

Searched refs:vctx (Results 1 – 14 of 14) sorted by relevance

/petsc/src/ts/tutorials/
H A Dex9.c265 static PetscErrorCode PhysicsCharacteristic_Conservative(void *vctx, PetscInt m, const PetscScalar … in PhysicsCharacteristic_Conservative() argument
277 static PetscErrorCode PhysicsDestroy_SimpleFree(void *vctx) in PhysicsDestroy_SimpleFree() argument
280 PetscCall(PetscFree(vctx)); in PhysicsDestroy_SimpleFree()
290 static PetscErrorCode PhysicsRiemann_Advect(void *vctx, PetscInt m, const PetscScalar *uL, const Pe… in PhysicsRiemann_Advect() argument
292 AdvectCtx *ctx = (AdvectCtx *)vctx; in PhysicsRiemann_Advect()
302 static PetscErrorCode PhysicsCharacteristic_Advect(void *vctx, PetscInt m, const PetscScalar *u, Pe… in PhysicsCharacteristic_Advect() argument
304 AdvectCtx *ctx = (AdvectCtx *)vctx; in PhysicsCharacteristic_Advect()
313 static PetscErrorCode PhysicsSample_Advect(void *vctx, PetscInt initial, FVBCType bctype, PetscReal… in PhysicsSample_Advect() argument
315 AdvectCtx *ctx = (AdvectCtx *)vctx; in PhysicsSample_Advect()
388 static PetscErrorCode PhysicsSample_Burgers(void *vctx, PetscInt initial, FVBCType bctype, PetscRea… in PhysicsSample_Burgers() argument
[all …]
H A Dex30.c1851 …cErrorCode ResizeSetUp(TS ts, PetscInt nstep, PetscReal time, Vec u, PetscBool *resize, void *vctx) in ResizeSetUp() argument
1853 AdaptCtx *ctx = (AdaptCtx *)vctx; in ResizeSetUp()
1918 static PetscErrorCode ResizeTransfer(TS ts, PetscInt nv, Vec vecsin[], Vec vecsout[], void *vctx) in ResizeTransfer() argument
1920 AdaptCtx *actx = (AdaptCtx *)vctx; in ResizeTransfer()
2042 static PetscErrorCode Monitor(TS ts, PetscInt stepnum, PetscReal time, Vec u, void *vctx) in Monitor() argument
2112 static PetscErrorCode MonitorSave(TS ts, PetscInt steps, PetscReal time, Vec u, void *vctx) in MonitorSave() argument
2115 AppCtx *ctx = (AppCtx *)vctx; in MonitorSave()
2207 PetscErrorCode MonitorNorms(SNES snes, PetscInt its, PetscReal f, void *vctx) in MonitorNorms() argument
2209 AppCtx *ctx = (AppCtx *)vctx; in MonitorNorms()
H A Dex27.c285 …LineSearch linesearch, Vec X, Vec Y, Vec W, PetscBool *changed_y, PetscBool *changed_w, void *vctx) in ReactingFlowPostCheck() argument
/petsc/src/ts/tutorials/multirate/
H A Dex4.c57 static PetscErrorCode PhysicsRiemann_Advect(void *vctx, PetscInt m, const PetscScalar *uL, const Pe… in PhysicsRiemann_Advect() argument
59 AdvectCtx *ctx = (AdvectCtx *)vctx; in PhysicsRiemann_Advect()
69 static PetscErrorCode PhysicsCharacteristic_Advect(void *vctx, PetscInt m, const PetscScalar *u, Pe… in PhysicsCharacteristic_Advect() argument
71 AdvectCtx *ctx = (AdvectCtx *)vctx; in PhysicsCharacteristic_Advect()
80 static PetscErrorCode PhysicsSample_Advect(void *vctx, PetscInt initial, FVBCType bctype, PetscReal… in PhysicsSample_Advect() argument
82 AdvectCtx *ctx = (AdvectCtx *)vctx; in PhysicsSample_Advect()
159 static PetscErrorCode PhysicsRiemann_Shallow_Exact(void *vctx, PetscInt m, const PetscScalar *uL, c… in PhysicsRiemann_Shallow_Exact() argument
161 ShallowCtx *phys = (ShallowCtx *)vctx; in PhysicsRiemann_Shallow_Exact()
233 static PetscErrorCode PhysicsRiemann_Shallow_Rusanov(void *vctx, PetscInt m, const PetscScalar *uL,… in PhysicsRiemann_Shallow_Rusanov() argument
235 ShallowCtx *phys = (ShallowCtx *)vctx; in PhysicsRiemann_Shallow_Rusanov()
[all …]
H A Dex5.c46 static PetscErrorCode PhysicsRiemann_Advect(void *vctx, PetscInt m, const PetscScalar *uL, const Pe… in PhysicsRiemann_Advect() argument
48 AdvectCtx *ctx = (AdvectCtx *)vctx; in PhysicsRiemann_Advect()
61 static PetscErrorCode PhysicsCharacteristic_Advect(void *vctx, PetscInt m, const PetscScalar *u, Pe… in PhysicsCharacteristic_Advect() argument
63 AdvectCtx *ctx = (AdvectCtx *)vctx; in PhysicsCharacteristic_Advect()
73 static PetscErrorCode PhysicsSample_Advect(void *vctx, PetscInt initial, FVBCType bctype, PetscReal… in PhysicsSample_Advect() argument
75 AdvectCtx *ctx = (AdvectCtx *)vctx; in PhysicsSample_Advect()
187 PetscErrorCode FVRHSFunctionslow(TS ts, PetscReal time, Vec X, Vec F, void *vctx) in FVRHSFunctionslow() argument
189 FVCtx *ctx = (FVCtx *)vctx; in FVRHSFunctionslow()
292 PetscErrorCode FVRHSFunctionfast(TS ts, PetscReal time, Vec X, Vec F, void *vctx) in FVRHSFunctionfast() argument
294 FVCtx *ctx = (FVCtx *)vctx; in FVRHSFunctionfast()
[all …]
H A Dex6.c38 static PetscErrorCode PhysicsRiemann_Advect(void *vctx, PetscInt m, const PetscScalar *uL, const Pe… in PhysicsRiemann_Advect() argument
40 AdvectCtx *ctx = (AdvectCtx *)vctx; in PhysicsRiemann_Advect()
50 static PetscErrorCode PhysicsCharacteristic_Advect(void *vctx, PetscInt m, const PetscScalar *u, Pe… in PhysicsCharacteristic_Advect() argument
52 AdvectCtx *ctx = (AdvectCtx *)vctx; in PhysicsCharacteristic_Advect()
61 static PetscErrorCode PhysicsSample_Advect(void *vctx, PetscInt initial, FVBCType bctype, PetscReal… in PhysicsSample_Advect() argument
63 AdvectCtx *ctx = (AdvectCtx *)vctx; in PhysicsSample_Advect()
205 PetscErrorCode FVRHSFunction_2WaySplit(TS ts, PetscReal time, Vec X, Vec F, void *vctx) in FVRHSFunction_2WaySplit() argument
207 FVCtx *ctx = (FVCtx *)vctx; in FVRHSFunction_2WaySplit()
356 PetscErrorCode FVRHSFunctionslow_2WaySplit(TS ts, PetscReal time, Vec X, Vec F, void *vctx) in FVRHSFunctionslow_2WaySplit() argument
358 FVCtx *ctx = (FVCtx *)vctx; in FVRHSFunctionslow_2WaySplit()
[all …]
H A Dex7.c75 static PetscErrorCode PhysicsDestroy_SimpleFree(void *vctx) in PhysicsDestroy_SimpleFree() argument
78 PetscCall(PetscFree(vctx)); in PhysicsDestroy_SimpleFree()
87 static PetscErrorCode PhysicsFlux_Advect(void *vctx, const PetscScalar *u, PetscScalar *flux, Petsc… in PhysicsFlux_Advect() argument
89 AdvectCtx *ctx = (AdvectCtx *)vctx; in PhysicsFlux_Advect()
99 static PetscErrorCode PhysicsSample_Advect(void *vctx, PetscInt initial, FVBCType bctype, PetscReal… in PhysicsSample_Advect() argument
101 AdvectCtx *ctx = (AdvectCtx *)vctx; in PhysicsSample_Advect()
169 static PetscErrorCode FVRHSFunction(TS ts, PetscReal time, Vec X, Vec F, void *vctx) in FVRHSFunction() argument
171 FVCtx *ctx = (FVCtx *)vctx; in FVRHSFunction()
318 static PetscErrorCode FVRHSFunctionslow(TS ts, PetscReal time, Vec X, Vec F, void *vctx) in FVRHSFunctionslow() argument
320 FVCtx *ctx = (FVCtx *)vctx; in FVRHSFunctionslow()
[all …]
H A Dex8.c31 static PetscErrorCode PhysicsRiemann_Advect(void *vctx, PetscInt m, const PetscScalar *uL, const Pe… in PhysicsRiemann_Advect() argument
33 AdvectCtx *ctx = (AdvectCtx *)vctx; in PhysicsRiemann_Advect()
43 static PetscErrorCode PhysicsCharacteristic_Advect(void *vctx, PetscInt m, const PetscScalar *u, Pe… in PhysicsCharacteristic_Advect() argument
45 AdvectCtx *ctx = (AdvectCtx *)vctx; in PhysicsCharacteristic_Advect()
54 static PetscErrorCode PhysicsSample_Advect(void *vctx, PetscInt initial, FVBCType bctype, PetscReal… in PhysicsSample_Advect() argument
56 AdvectCtx *ctx = (AdvectCtx *)vctx; in PhysicsSample_Advect()
220 PetscErrorCode FVRHSFunction_3WaySplit(TS ts, PetscReal time, Vec X, Vec F, void *vctx) in FVRHSFunction_3WaySplit() argument
222 FVCtx *ctx = (FVCtx *)vctx; in FVRHSFunction_3WaySplit()
394 PetscErrorCode FVRHSFunctionslow_3WaySplit(TS ts, PetscReal time, Vec X, Vec F, void *vctx) in FVRHSFunctionslow_3WaySplit() argument
396 FVCtx *ctx = (FVCtx *)vctx; in FVRHSFunctionslow_3WaySplit()
[all …]
H A Dfinitevolume1d.c515 PetscErrorCode PhysicsDestroy_SimpleFree(void *vctx) in PhysicsDestroy_SimpleFree() argument
518 PetscCall(PetscFree(vctx)); in PhysicsDestroy_SimpleFree()
523 PetscErrorCode FVRHSFunction(TS ts, PetscReal time, Vec X, Vec F, void *vctx) in FVRHSFunction() argument
525 FVCtx *ctx = (FVCtx *)vctx; in FVRHSFunction()
/petsc/src/dm/impls/da/
H A Dgrglvis.c10 static PetscErrorCode DMDAGhostedDestroyGLVisViewerCtx_Private(PetscCtxRt vctx) in DMDAGhostedDestroyGLVisViewerCtx_Private() argument
13 PetscCall(PetscFree(*(void **)vctx)); in DMDAGhostedDestroyGLVisViewerCtx_Private()
21 static PetscErrorCode DMDAFieldDestroyGLVisViewerCtx_Private(PetscCtxRt vctx) in DMDAFieldDestroyGLVisViewerCtx_Private() argument
23 DMDAFieldGLVisViewerCtx *ctx = *(DMDAFieldGLVisViewerCtx **)vctx; in DMDAFieldDestroyGLVisViewerCtx_Private()
89 …ErrorCode DMDASampleGLVisFields_Private(PetscObject oX, PetscInt nf, PetscObject oXf[], void *vctx) in DMDASampleGLVisFields_Private() argument
92 DMDAFieldGLVisViewerCtx *ctx = (DMDAFieldGLVisViewerCtx *)vctx; in DMDASampleGLVisFields_Private()
/petsc/src/dm/impls/plex/
H A Dplexglvis.c14 static PetscErrorCode DestroyGLVisViewerCtx_Private(PetscCtxRt vctx) in DestroyGLVisViewerCtx_Private() argument
16 GLVisViewerCtx *ctx = *(GLVisViewerCtx **)vctx; in DestroyGLVisViewerCtx_Private()
26 …ode DMPlexSampleGLVisFields_Private(PetscObject oX, PetscInt nf, PetscObject oXfield[], void *vctx) in DMPlexSampleGLVisFields_Private() argument
28 GLVisViewerCtx *ctx = (GLVisViewerCtx *)vctx; in DMPlexSampleGLVisFields_Private()
/petsc/src/dm/impls/composite/
H A Dpack.c1293 static PetscErrorCode DestroyGLVisViewerCtx_Private(PetscCtxRt vctx) in DestroyGLVisViewerCtx_Private() argument
1295 GLVisViewerCtx *ctx = *(GLVisViewerCtx **)vctx; in DestroyGLVisViewerCtx_Private()
1307 …MCompositeSampleGLVisFields_Private(PetscObject oX, PetscInt nf, PetscObject oXfield[], void *vctx) in DMCompositeSampleGLVisFields_Private() argument
1310 GLVisViewerCtx *ctx = (GLVisViewerCtx *)vctx; in DMCompositeSampleGLVisFields_Private()
/petsc/src/ts/utils/dmplexlandau/tutorials/
H A Dex1.c23 …print_access_callback(DM dm, Vec x, PetscInt local_field, PetscInt grid, PetscInt b_id, void *vctx) in landau_field_print_access_callback() argument
/petsc/src/snes/interface/
H A Dsnes.c4706 …vergedReasonViewSet(SNES snes, PetscErrorCode (*f)(SNES snes, void *vctx), void *vctx, PetscCtxDes… in SNESConvergedReasonViewSet() argument
4713 …PetscCall(PetscMonitorCompare((PetscErrorCode (*)(void))(PetscVoidFn *)f, vctx, reasonviewdestroy,… in SNESConvergedReasonViewSet()
4719 snes->reasonviewcontext[snes->numberreasonviews++] = vctx; in SNESConvergedReasonViewSet()