| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | petscpyappctx.pxi | 3 cdef inline object registerAppCtx(void *appctx): 7 cdef inline object toAppCtx(void *appctx):
|
| /petsc/src/ts/tutorials/ |
| H A D | ex6.c | 77 AppCtx appctx; /* user-defined application context */ in main() local 252 PetscErrorCode InitialConditions(Vec u, AppCtx *appctx) in InitialConditions() 299 PetscErrorCode ExactSolution(PetscReal t, Vec solution, AppCtx *appctx) in ExactSolution() 347 AppCtx *appctx = (AppCtx *)ctx; /* user-defined application context */ in Monitor() local 428 AppCtx *appctx = (AppCtx *)ctx; /* user-defined application context */ in RHSMatrixHeat() local 494 AppCtx *appctx = (AppCtx *)ctx; /* user-defined application context */ in MyBCRoutine() local
|
| H A D | ex3.c | 81 AppCtx appctx; /* user-defined application context */ in main() local 286 PetscErrorCode InitialConditions(Vec u, AppCtx *appctx) in InitialConditions() 336 PetscErrorCode ExactSolution(PetscReal t, Vec solution, AppCtx *appctx) in ExactSolution() 384 AppCtx *appctx = (AppCtx *)ctx; /* user-defined application context */ in Monitor() local 465 AppCtx *appctx = (AppCtx *)ctx; /* user-defined application context */ in RHSMatrixHeat() local 524 AppCtx *appctx = (AppCtx *)ctx; /* user-defined application context */ in IFunctionHeat() local 534 AppCtx *appctx = (AppCtx *)ctx; /* user-defined application context */ in IJacobianHeat() local
|
| H A D | ex21.c | 71 AppCtx appctx; /* user-defined application context */ in main() local 239 PetscErrorCode InitialConditions(Vec u, AppCtx *appctx) in InitialConditions() 298 PetscErrorCode SetBounds(Vec xl, Vec xu, PetscScalar ul, PetscScalar uh, AppCtx *appctx) in SetBounds() 338 PetscErrorCode ExactSolution(PetscReal t, Vec solution, AppCtx *appctx) in ExactSolution() 389 AppCtx *appctx = (AppCtx *)ctx; /* user-defined application context */ in Monitor() local 466 AppCtx *appctx = (AppCtx *)ctx; /* user-defined application context */ in RHSFunction() local 579 AppCtx *appctx = (AppCtx *)ctx; /* user-defined application context */ in RHSJacobian() local
|
| H A D | ex2.c | 69 AppCtx appctx; /* user-defined application context */ in main() local 222 PetscErrorCode InitialConditions(Vec u, AppCtx *appctx) in InitialConditions() 281 PetscErrorCode ExactSolution(PetscReal t, Vec solution, AppCtx *appctx) in ExactSolution() 332 AppCtx *appctx = (AppCtx *)ctx; /* user-defined application context */ in Monitor() local 409 AppCtx *appctx = (AppCtx *)ctx; /* user-defined application context */ in RHSFunction() local 522 AppCtx *appctx = (AppCtx *)ctx; /* user-defined application context */ in RHSJacobian() local
|
| H A D | ex5.c | 75 AppCtx appctx; /* user-defined application context */ in main() local 249 PetscErrorCode InitialConditions(Vec u, AppCtx *appctx) in InitialConditions() 299 PetscErrorCode ExactSolution(PetscReal t, Vec solution, AppCtx *appctx) in ExactSolution() 345 AppCtx *appctx = (AppCtx *)ctx; /* user-defined application context */ in Monitor() local 419 AppCtx *appctx = (AppCtx *)ctx; /* user-defined application context */ in RHSMatrixHeat() local
|
| H A D | ex50.c | 85 AppCtx appctx; /* user-defined application context */ in main() local 256 PetscErrorCode TrueSolution(TS ts, PetscReal t, Vec u, AppCtx *appctx) in TrueSolution() 276 AppCtx *appctx = (AppCtx *)ctx; in RHSFunction() local 296 AppCtx *appctx = (AppCtx *)ctx; in RHSJacobian() local 323 AppCtx *appctx; in MatMult_Laplacian() local 363 AppCtx *appctx; in MatMult_Advection() local 417 AppCtx *appctx = (AppCtx *)ctx; /* user-defined application context */ in RHSMatrixLaplaciangllDM() local 488 AppCtx *appctx = (AppCtx *)ctx; /* user-defined application context */ in RHSMatrixAdvectiongllDM() local
|
| H A D | ex4.c | 84 AppCtx appctx; /* user-defined application context */ in main() local 289 PetscErrorCode InitialConditions(Vec u, AppCtx *appctx) in InitialConditions() 345 PetscErrorCode ExactSolution(PetscReal t, Vec solution, AppCtx *appctx) in ExactSolution() 397 AppCtx *appctx = (AppCtx *)ctx; /* user-defined application context */ in Monitor() local 485 AppCtx *appctx = (AppCtx *)ctx; /* user-defined application context */ in RHSMatrixHeat() local
|
| /petsc/src/tao/unconstrained/tutorials/ |
| H A D | spectraladjointassimilation.c | 108 AppCtx appctx; /* user-defined application context */ in main() local 293 PetscErrorCode ComputeSolutionCoefficients(AppCtx *appctx) in ComputeSolutionCoefficients() 318 PetscErrorCode InitialConditions(Vec u, AppCtx *appctx) in InitialConditions() 360 PetscErrorCode TrueSolution(Vec u, AppCtx *appctx) in TrueSolution() 392 PetscErrorCode ComputeReference(TS ts, PetscReal t, Vec obj, AppCtx *appctx) in ComputeReference() 416 AppCtx *appctx = (AppCtx *)ctx; in RHSFunction() local 425 AppCtx *appctx = (AppCtx *)ctx; in RHSJacobian() local 454 AppCtx *appctx = (AppCtx *)ctx; /* user-defined application context */ in RHSLaplacian() local 505 AppCtx *appctx = (AppCtx *)ctx; /* user-defined application context */ in RHSAdvection() local 582 AppCtx *appctx = (AppCtx *)ctx; /* user-defined application context */ in FormFunctionGradient() local [all …]
|
| H A D | burgers_spectral.c | 97 AppCtx appctx; /* user-defined application context */ in main() local 294 PetscErrorCode InitialConditions(Vec u, AppCtx *appctx) in InitialConditions() 322 PetscErrorCode TrueSolution(Vec u, AppCtx *appctx) in TrueSolution() 347 PetscErrorCode ComputeObjective(PetscReal t, Vec obj, AppCtx *appctx) in ComputeObjective() 367 AppCtx *appctx = (AppCtx *)ctx; in RHSFunction() local 387 AppCtx *appctx = (AppCtx *)ctx; in RHSJacobian() local 429 AppCtx *appctx = (AppCtx *)ctx; /* user-defined application context */ in RHSMatrixLaplaciangllDM() local 490 AppCtx *appctx = (AppCtx *)ctx; /* user-defined application context */ in RHSMatrixAdvectiongllDM() local 558 AppCtx *appctx = (AppCtx *)ctx; /* user-defined application context */ in FormFunctionGradient() local 605 AppCtx *appctx = (AppCtx *)ctx; in MonitorError() local
|
| /petsc/src/ts/tests/ |
| H A D | ex12.c | 63 AppCtx appctx; /* user-defined application context */ in main() local 218 PetscErrorCode InitialConditions(Vec u, AppCtx *appctx) in InitialConditions() 269 PetscErrorCode ExactSolution(PetscReal t, Vec solution, AppCtx *appctx) in ExactSolution() 320 AppCtx *appctx = (AppCtx *)ctx; /* user-defined application context */ in RHSFunction() local 427 AppCtx *appctx = (AppCtx *)ctx; /* user-defined application context */ in RHSJacobian() local
|
| H A D | ex24.c | 18 AppCtx *appctx = (AppCtx *)ctx; /* user-defined application context */ in RHSJacobian() local 189 AppCtx appctx; in main() local
|
| /petsc/src/ts/tutorials/advection-diffusion-reaction/ |
| H A D | ex3.c | 50 AppCtx appctx; /* user-defined application context */ in main() local 155 PetscErrorCode InitialConditions(TS ts, Vec U, AppCtx *appctx) in InitialConditions() 203 PetscErrorCode Solution(TS ts, PetscReal t, Vec U, AppCtx *appctx) in Solution() 259 AppCtx *appctx = (AppCtx *)ctx; /* user-defined application context */ in RHSMatrixHeat() local
|
| H A D | ex6.c | 36 AppCtx appctx; /* user-defined application context */ in main() local 112 PetscErrorCode InitialConditions(TS ts, Vec U, AppCtx *appctx) in InitialConditions() 160 PetscErrorCode Solution(TS ts, PetscReal t, Vec U, AppCtx *appctx) in Solution() 195 AppCtx *appctx = (AppCtx *)ctx; in IFunction_LaxFriedrichs() local 243 AppCtx *appctx = (AppCtx *)ctx; in IFunction_LaxWendroff() local
|
| H A D | ex5opt_ic.c | 29 PetscErrorCode InitializeLambda(DM da, Vec lambda, Vec U, AppCtx *appctx) in InitializeLambda() 64 PetscErrorCode GenerateOBs(TS ts, Vec U, AppCtx *appctx) in GenerateOBs() 212 AppCtx appctx; in main() local 334 AppCtx *appctx = (AppCtx *)ctx; in FormFunctionAndGradient() local
|
| H A D | reaction_diffusion.c | 29 AppCtx *appctx = (AppCtx *)ptr; in RHSFunction() local 94 AppCtx *appctx = (AppCtx *)ctx; /* user-defined application context */ in RHSJacobian() local 237 AppCtx *appctx = (AppCtx *)ptr; in IFunction() local 304 AppCtx *appctx = (AppCtx *)ctx; /* user-defined application context */ in IJacobian() local
|
| H A D | ex5adj_mf.c | 25 AppCtx *appctx; member 61 AppCtx *appctx; in MyRHSMatMultTranspose() local 120 AppCtx *appctx; in MyIMatMultTranspose() local 181 AppCtx *appctx; in MyIMatMult() local 244 AppCtx appctx; in main() local
|
| H A D | ex4.c | 47 AppCtx appctx; in main() local 137 AppCtx *appctx = (AppCtx *)ptr; in IFunction() local
|
| H A D | ex5.c | 91 AppCtx appctx; in main() local
|
| /petsc/src/ts/tutorials/autodiff/ |
| H A D | adr_ex5adj.cxx | 77 AppCtx appctx; in main() local 362 AppCtx *appctx = (AppCtx *)ptr; in IFunctionLocalPassive() local 398 AppCtx *appctx = (AppCtx *)ptr; in IFunctionActive() local 528 AppCtx *appctx = (AppCtx *)ptr; in RHSFunctionPassive() local 608 AppCtx *appctx = (AppCtx *)ptr; in RHSFunctionActive() local 752 AppCtx *appctx = (AppCtx *)ctx; in IJacobianAdolc() local 788 AppCtx *appctx = (AppCtx *)ctx; /* user-defined application context */ in IJacobianByHand() local 918 AppCtx *appctx = (AppCtx *)ctx; /* user-defined application context */ in RHSJacobianByHand() local 1049 AppCtx *appctx = (AppCtx *)ctx; in RHSJacobianAdolc() local
|
| /petsc/src/snes/tutorials/network/power/ |
| H A D | power2.c | 11 …lX, Vec localF, PetscInt nv, PetscInt ne, const PetscInt *vtx, const PetscInt *edges, void *appctx) in FormFunction_Subnet() 123 PetscErrorCode FormFunction(SNES snes, Vec X, Vec F, void *appctx) in FormFunction() 158 …at J, Mat Jpre, PetscInt nv, PetscInt ne, const PetscInt *vtx, const PetscInt *edges, void *appctx) in FormJacobian_Subnet() 339 PetscErrorCode FormJacobian(SNES snes, Vec X, Mat J, Mat Jpre, void *appctx) in FormJacobian() 370 …dm, Vec localX, PetscInt nv, PetscInt ne, const PetscInt *vtx, const PetscInt *edges, void *appctx) in SetInitialValues_Subnet() 406 PetscErrorCode SetInitialValues(DM networkdm, Vec X, void *appctx) in SetInitialValues()
|
| H A D | power.c | 12 PetscErrorCode FormFunction(SNES snes, Vec X, Vec F, void *appctx) in FormFunction() 41 PetscErrorCode SetInitialValues(DM networkdm, Vec X, void *appctx) in SetInitialValues()
|
| H A D | pffunctions.c | 32 … localX, Mat J, PetscInt nv, PetscInt ne, const PetscInt *vtx, const PetscInt *edges, void *appctx) in FormJacobian_Power_private() 214 PetscErrorCode FormJacobian_Power(SNES snes, Vec X, Mat J, Mat Jpre, void *appctx) in FormJacobian_Power() 240 …lX, Vec localF, PetscInt nv, PetscInt ne, const PetscInt *vtx, const PetscInt *edges, void *appctx) in FormFunction_Power() 350 …dm, Vec localX, PetscInt nv, PetscInt ne, const PetscInt *vtx, const PetscInt *edges, void *appctx) in SetInitialGuess_Power()
|
| /petsc/src/snes/tutorials/network/ |
| H A D | ex1.c | 28 PetscErrorCode UserMonitor(SNES snes, PetscInt its, PetscReal fnorm, void *appctx) in UserMonitor() 87 PetscErrorCode FormJacobian_subPower(SNES snes, Vec X, Mat J, Mat Jpre, void *appctx) in FormJacobian_subPower() 135 …lX, Vec localF, PetscInt nv, PetscInt ne, const PetscInt *vtx, const PetscInt *edges, void *appctx) in FormFunction_Dummy() 164 PetscErrorCode FormFunction(SNES snes, Vec X, Vec F, void *appctx) in FormFunction() 261 PetscErrorCode SetInitialGuess(DM networkdm, Vec X, void *appctx) in SetInitialGuess()
|
| /petsc/src/snes/tutorials/network/water/ |
| H A D | water.c | 13 AppCtx_Water appctx; in main() local
|