Searched refs:UserCtx (Results 1 – 10 of 10) sorted by relevance
| /petsc/src/tao/tutorials/ |
| H A D | ex4.c | 36 } *UserCtx; typedef 38 static PetscErrorCode CreateRHS(UserCtx ctx) in CreateRHS() 49 static PetscErrorCode CreateMatrix(UserCtx ctx) in CreateMatrix() 101 static PetscErrorCode SetupWorkspace(UserCtx ctx) in SetupWorkspace() 112 static PetscErrorCode ConfigureContext(UserCtx ctx) in ConfigureContext() 158 static PetscErrorCode DestroyContext(UserCtx *ctx) in DestroyContext() 178 UserCtx ctx = (UserCtx)_ctx; in ObjectiveMisfit() 193 UserCtx ctx = (UserCtx)_ctx; in GradientMisfit() 209 UserCtx ctx = (UserCtx)_ctx; in HessianMisfit() 221 UserCtx ctx = (UserCtx)_ctx; in ObjectiveMisfitADMM() [all …]
|
| /petsc/src/ksp/ksp/tutorials/ |
| H A D | ex13.c | 23 } UserCtx; typedef 25 extern PetscErrorCode UserInitializeLinearSolver(PetscInt, PetscInt, UserCtx *); 26 extern PetscErrorCode UserFinalizeLinearSolver(UserCtx *); 27 extern PetscErrorCode UserDoLinearSolver(PetscScalar *, UserCtx *userctx, PetscScalar *b, PetscScal… 31 UserCtx userctx; in main() 127 PetscErrorCode UserInitializeLinearSolver(PetscInt m, PetscInt n, UserCtx *userctx) in UserInitializeLinearSolver() 171 PetscErrorCode UserDoLinearSolver(PetscScalar *rho, UserCtx *userctx, PetscScalar *userb, PetscScal… in UserDoLinearSolver() 281 PetscErrorCode UserFinalizeLinearSolver(UserCtx *userctx) in UserFinalizeLinearSolver()
|
| /petsc/src/ts/tutorials/ |
| H A D | ex35.cxx | 35 typedef pUserCtx *UserCtx; typedef 37 PetscErrorCode Initialize_AppContext(UserCtx *puser) in Initialize_AppContext() 39 UserCtx user; in Initialize_AppContext() 74 PetscErrorCode Destroy_AppContext(UserCtx *user) in Destroy_AppContext() 98 UserCtx user; /* user-defined work context */ in main() 197 UserCtx user = (UserCtx)ptr; in FormIJacobian() 252 UserCtx user = (UserCtx)ptr; in FormRHSFunction() 290 UserCtx user = (UserCtx)ctx; in FormIFunction() 352 UserCtx user = (UserCtx)ctx; in FormInitialSolution()
|
| /petsc/src/snes/tutorials/ |
| H A D | ex21.c | 44 } UserCtx; typedef 54 UserCtx user; in main() 111 UserCtx *user = (UserCtx *)dummy; in FormFunction() 168 UserCtx *user = (UserCtx *)dummy; in Monitor()
|
| H A D | ex22.c | 44 } UserCtx; typedef 75 UserCtx user; in main() 243 UserCtx *user; in Monitor()
|
| /petsc/src/dm/impls/plex/tests/ |
| H A D | ex39.c | 200 } UserCtx; typedef 203 static PetscErrorCode ProcessOptions(MPI_Comm comm, UserCtx *user) in ProcessOptions() 287 static PetscErrorCode TransformMesh(UserCtx *user, DM *mesh) in TransformMesh() 319 static PetscErrorCode CreateMesh(MPI_Comm comm, UserCtx *user, DM *mesh) in CreateMesh() 336 static PetscErrorCode SetupProblem(DM dm, UserCtx *user) in SetupProblem() 381 static PetscErrorCode SetupDiscretization(DM mesh, PetscErrorCode (*setup)(DM, UserCtx *), UserCtx … in SetupDiscretization() argument 429 UserCtx user; in main()
|
| /petsc/src/ts/tutorials/phasefield/ |
| H A D | biharmonic2.c | 41 } UserCtx; typedef 55 UserCtx ctx; in main() 190 UserCtx *ctx = (UserCtx *)ptr; in FormFunction()
|
| H A D | biharmonic3.c | 41 } UserCtx; typedef 55 UserCtx ctx; in main() 190 UserCtx *ctx = (UserCtx *)ptr; in FormFunction()
|
| H A D | biharmonic.c | 63 } UserCtx; typedef 74 UserCtx ctx; in main() 204 UserCtx *ctx = (UserCtx *)ptr; in FormFunction() 311 UserCtx *ctx = (UserCtx *)ptr; in FormJacobian() 458 UserCtx *ctx = (UserCtx *)ptr; in MyMonitor() 731 UserCtx *ctx = *(UserCtx **)Ctx; in MyDestroy()
|
| /petsc/src/snes/tutorials/network/ |
| H A D | ex1.c | 23 } UserCtx; typedef 30 UserCtx *user = (UserCtx *)appctx; in UserMonitor() 141 UserCtx *user = (UserCtx *)appctx; in FormFunction_Dummy() 172 UserCtx *user = (UserCtx *)appctx; in FormFunction() 265 UserCtx *user = (UserCtx *)appctx; in SetInitialGuess() 467 UserCtx user; in main()
|