| /petsc/src/ts/tutorials/ |
| H A D | ex31.c | 71 PetscErrorCode RHSFunction_Hull1972A1(TS ts, PetscReal t, Vec Y, Vec F, void *s) in RHSFunction_Hull1972A1() 85 PetscErrorCode RHSJacobian_Hull1972A1(TS ts, PetscReal t, Vec Y, Mat A, Mat B, void *s) in RHSJacobian_Hull1972A1() 100 PetscErrorCode IFunction_Hull1972A1(TS ts, PetscReal t, Vec Y, Vec Ydot, Vec F, void *s) in IFunction_Hull1972A1() 116 PetscErrorCode IJacobian_Hull1972A1(TS ts, PetscReal t, Vec Y, Vec Ydot, PetscReal a, Mat A, Mat B,… in IJacobian_Hull1972A1() 133 PetscErrorCode RHSFunction_Hull1972A2(TS ts, PetscReal t, Vec Y, Vec F, void *s) in RHSFunction_Hull1972A2() 147 PetscErrorCode RHSJacobian_Hull1972A2(TS ts, PetscReal t, Vec Y, Mat A, Mat B, void *s) in RHSJacobian_Hull1972A2() 163 PetscErrorCode IFunction_Hull1972A2(TS ts, PetscReal t, Vec Y, Vec Ydot, Vec F, void *s) in IFunction_Hull1972A2() 179 PetscErrorCode IJacobian_Hull1972A2(TS ts, PetscReal t, Vec Y, Vec Ydot, PetscReal a, Mat A, Mat B,… in IJacobian_Hull1972A2() 197 PetscErrorCode RHSFunction_Hull1972A3(TS ts, PetscReal t, Vec Y, Vec F, void *s) in RHSFunction_Hull1972A3() 211 PetscErrorCode RHSJacobian_Hull1972A3(TS ts, PetscReal t, Vec Y, Mat A, Mat B, void *s) in RHSJacobian_Hull1972A3() [all …]
|
| H A D | ex41.c | 17 PetscErrorCode EventFunction(TS ts, PetscReal t, Vec U, PetscReal *fvalue, PetscCtx ctx) in EventFunction() 29 PetscErrorCode PostEventFunction(TS ts, PetscInt nevents, PetscInt event_list[], PetscReal t, Vec U… in PostEventFunction() 50 static PetscErrorCode RHSFunction(TS ts, PetscReal t, Vec U, Vec F, PetscCtx ctx) in RHSFunction() 71 static PetscErrorCode RHSJacobian(TS ts, PetscReal t, Vec U, Mat A, Mat B, PetscCtx ctx) in RHSJacobian() 103 static PetscErrorCode IFunction(TS ts, PetscReal t, Vec U, Vec Udot, Vec F, PetscCtx ctx) in IFunction() 126 static PetscErrorCode IJacobian(TS ts, PetscReal t, Vec U, Vec Udot, PetscReal a, Mat A, Mat B, Pet… in IJacobian()
|
| H A D | ex51.c | 18 static PetscErrorCode RHSFunction(TS ts, PetscReal t, Vec U, Vec F, void *s) in RHSFunction() 38 static PetscErrorCode ExactSolution(PetscReal t, Vec U) in ExactSolution() 60 PetscReal t, final_time = 1.0, dt = 0.25; in main() local
|
| H A D | ex8.c | 31 static PetscErrorCode RoberFunction(TS ts, PetscReal t, Vec X, Vec Xdot, Vec F, PetscCtx ctx) in RoberFunction() 49 static PetscErrorCode RoberJacobian(TS ts, PetscReal t, Vec X, Vec Xdot, PetscReal a, Mat A, Mat B,… in RoberJacobian() 80 static PetscErrorCode RoberSolution(PetscReal t, Vec X, PetscCtx ctx) in RoberSolution() 121 static PetscErrorCode CEFunction(TS ts, PetscReal t, Vec X, Vec Xdot, Vec F, PetscCtx ctx) in CEFunction() 141 static PetscErrorCode CEJacobian(TS ts, PetscReal t, Vec X, Vec Xdot, PetscReal a, Mat A, Mat B, Pe… in CEJacobian() 165 static PetscErrorCode CESolution(PetscReal t, Vec X, PetscCtx ctx) in CESolution() 205 static PetscErrorCode OregoFunction(TS ts, PetscReal t, Vec X, Vec Xdot, Vec F, PetscCtx ctx) in OregoFunction() 223 static PetscErrorCode OregoJacobian(TS ts, PetscReal t, Vec X, Vec Xdot, PetscReal a, Mat A, Mat B,… in OregoJacobian() 254 static PetscErrorCode OregoSolution(PetscReal t, Vec X, PetscCtx ctx) in OregoSolution() 289 static PetscErrorCode MonitorError(TS ts, PetscInt step, PetscReal t, Vec x, PetscCtx ctx) in MonitorError()
|
| H A D | ex40.c | 21 PetscErrorCode EventFunction(TS ts, PetscReal t, Vec U, PetscReal *fvalue, PetscCtx ctx) in EventFunction() 33 PetscErrorCode PostEventFunction(TS ts, PetscInt nevents, PetscInt event_list[], PetscReal t, Vec U… in PostEventFunction() 56 static PetscErrorCode RHSFunction(TS ts, PetscReal t, Vec U, Vec F, PetscCtx ctx) in RHSFunction() 77 static PetscErrorCode RHSJacobian(TS ts, PetscReal t, Vec U, Mat A, Mat B, PetscCtx ctx) in RHSJacobian() 106 static PetscErrorCode IFunction(TS ts, PetscReal t, Vec U, Vec Udot, Vec F, PetscCtx ctx) in IFunction() 129 static PetscErrorCode IJacobian(TS ts, PetscReal t, Vec U, Vec Udot, PetscReal a, Mat A, Mat B, Pet… in IJacobian()
|
| /petsc/src/ts/event/tests/ |
| H A D | ex1.c | 22 PetscReal t; in main() local 139 PetscErrorCode RHSFunction(TS ts, PetscReal t, Vec x, Vec f, PetscCtx ctx) in RHSFunction() 146 PetscErrorCode RHSJacobian(TS ts, PetscReal t, Vec x, Mat A, Mat B, PetscCtx ctx) in RHSJacobian() 157 PetscReal t; in PreStep() local 176 PetscReal t; in PostStep() local 190 PetscErrorCode Monitor(TS ts, PetscInt n, PetscReal t, Vec x, PetscCtx ctx) in Monitor() 201 PetscErrorCode Event(TS ts, PetscReal t, Vec x, PetscReal *fvalue, PetscCtx ctx) in Event() 210 PetscErrorCode PostEvent(TS ts, PetscInt nevents, PetscInt event_list[], PetscReal t, Vec x, PetscB… in PostEvent() 223 PetscErrorCode TransferSetUp(TS ts, PetscInt n, PetscReal t, Vec x, PetscBool *flg, PetscCtx ctx) in TransferSetUp()
|
| H A D | ex16.c | 78 PetscErrorCode RHSFunction(TS ts, PetscReal t, Vec x, Vec f, PetscCtx ctx) in RHSFunction() 85 PetscErrorCode RHSJacobian(TS ts, PetscReal t, Vec x, Mat A, Mat B, PetscCtx ctx) in RHSJacobian() 93 PetscErrorCode Event(TS ts, PetscReal t, Vec x, PetscReal *fvalue, PetscCtx ctx) in Event() 102 PetscErrorCode PostEvent(TS ts, PetscInt nevents, PetscInt event_list[], PetscReal t, Vec x, PetscB… in PostEvent()
|
| /petsc/src/sys/time/ |
| H A D | cputime.c | 23 PetscErrorCode PetscGetCPUTime(PetscLogDouble *t) in PetscGetCPUTime() 37 PetscErrorCode PetscGetCPUTime(PetscLogDouble *t) in PetscGetCPUTime() 79 PetscErrorCode PetscGetCPUTime(PetscLogDouble *t) in PetscGetCPUTime()
|
| /petsc/src/ts/trajectory/utils/ |
| H A D | reconstruct.c | 5 static inline void LagrangeBasisVals(PetscInt n, PetscReal t, const PetscReal T[], PetscScalar L[]) in LagrangeBasisVals() 15 static inline void LagrangeBasisDers(PetscInt n, PetscReal t, const PetscReal T[], PetscScalar dL[]) in LagrangeBasisDers() 31 static inline PetscInt LagrangeGetId(PetscReal t, PetscInt n, const PetscReal T[], const PetscBool … in LagrangeGetId() 49 PetscErrorCode TSTrajectoryReconstruct_Private(TSTrajectory tj, TS ts, PetscReal t, Vec U, Vec Udot) in TSTrajectoryReconstruct_Private() 83 PetscReal t = tshhist[s]; in TSTrajectoryReconstruct_Private() local 96 PetscReal t = tshhist[s]; in TSTrajectoryReconstruct_Private() local
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | petscts.pxi | 369 PetscReal t, 386 PetscReal t, 405 PetscReal t, 424 PetscReal t, 443 PetscReal t, 465 PetscReal t, 485 PetscReal t, 506 PetscReal t,
|
| /petsc/src/binding/petsc4py/demo/legacy/ode/ |
| H A D | bouncing_ball.py | 21 def evalRHSFunction(self, ts, t, u, f): argument 26 def evalRHSJacobian(self, ts, t, u, A, B): argument 41 def __call__(self, ts, k, t, x): argument 75 def event(ts, t, X, fvalue): argument 79 def postevent(ts, events, t, X, forward): argument
|
| H A D | fastslowsplit.py | 30 def evalRHSFunction(self, ts, t, u, f): argument 43 def evalRHSFunctionSlow(self, ts, t, u, f): argument 51 def evalRHSFunctionFast(self, ts, t, u, f): argument 57 def evalIFunctionFast(self, ts, t, u, udot, f): argument 61 def evalIJacobianFast(self, ts, t, u, udot, a, A, B): argument
|
| H A D | rober.py | 17 def evalSolution(self, t, x): argument 23 def evalFunction(self, ts, t, x, xdot, f): argument 31 def evalJacobian(self, ts, t, x, xdot, a, A, B): argument 61 def monitor(ts, i, t, x): argument
|
| H A D | heat.py | 65 def evalSolution(self, t, x): argument 71 def evalFunction(self, ts, t, x, xdot, f): argument 79 def evalJacobian(self, ts, t, x, xdot, a, A, B): argument 90 def monitor(self, ts, i, t, x): argument
|
| H A D | ce.py | 19 def evalSolution(self, t, x): argument 26 def evalFunction(self, ts, t, x, xdot, f): argument 31 def evalJacobian(self, ts, t, x, xdot, a, A, B): argument 69 def __call__(self, ts, k, t, x): argument
|
| H A D | orego.py | 17 def evalSolution(self, t, x): argument 22 def evalFunction(self, ts, t, x, xdot, f): argument 31 def evalJacobian(self, ts, t, x, xdot, a, A, B): argument 63 def monitor(ts, i, t, x): argument
|
| /petsc/src/ts/tests/ |
| H A D | ex2.c | 152 PetscErrorCode RHSFunction(TS ts, PetscReal t, Vec globalin, Vec globalout, PetscCtx ctx) in RHSFunction() 173 PetscErrorCode RHSJacobian(TS ts, PetscReal t, Vec x, Mat A, Mat BB, PetscCtx ctx) in RHSJacobian() 212 PetscReal solx(PetscReal t) in solx() 217 PetscReal soly(PetscReal t) in soly() 222 PetscReal solz(PetscReal t) in solz()
|
| H A D | ex6.c | 13 PetscErrorCode f(PetscReal t, Vec U, Vec V, Vec F) in f() 23 PetscErrorCode F(PetscReal t, Vec U, Vec V, Vec F) in F() 31 PetscReal t; member 83 PetscErrorCode TSFunction(TS ts, PetscReal t, Vec U, Vec F, void *actx) in TSFunction()
|
| H A D | ex8.c | 16 PetscErrorCode f(PetscReal t, Vec UV, Vec F) in f() 38 PetscErrorCode F(PetscReal t, Vec UV, Vec F) in F() 98 PetscErrorCode TSFunctionRHS(TS ts, PetscReal t, Vec UV, Vec F, void *actx) in TSFunctionRHS() 111 PetscErrorCode TSFunctionI(TS ts, PetscReal t, Vec UV, Vec UVdot, Vec F, void *actx) in TSFunctionI()
|
| H A D | ex17.c | 5 PetscScalar poly(PetscInt p, PetscReal t) in poly() 10 PetscScalar dpoly(PetscInt p, PetscReal t) in dpoly() 46 PetscErrorCode RHSFunction(TS ts, PetscReal t, Vec x, Vec f, PetscCtx ctx) in RHSFunction() 55 PetscErrorCode RHSJacobian(TS ts, PetscReal t, Vec x, Mat A, Mat B, PetscCtx ctx) in RHSJacobian() 96 PetscErrorCode Monitor(TS ts, PetscInt n, PetscReal t, Vec x, PetscCtx ctx) in Monitor()
|
| /petsc/include/ |
| H A D | petsctao_deprecations.h | 5 …TION(3, 17, 0, "TaoSetSolution()", ) static inline PetscErrorCode TaoSetInitialVector(Tao t, Vec v) in TaoSetInitialVector() 9 …ION(3, 17, 0, "TaoGetSolution()", ) static inline PetscErrorCode TaoGetInitialVector(Tao t, Vec *v) in TaoGetInitialVector() 13 …TaoSetObjective()", ) static inline PetscErrorCode TaoSetObjectiveRoutine(Tao t, PetscErrorCode (*… in TaoSetObjectiveRoutine() argument 17 …ON(3, 17, 0, "TaoGetGradient()", ) static inline PetscErrorCode TaoGetGradientVector(Tao t, Vec *v) in TaoGetGradientVector() 21 … "TaoSetGradient()", ) static inline PetscErrorCode TaoSetGradientRoutine(Tao t, PetscErrorCode (*… in TaoSetGradientRoutine() argument 25 …ient()", ) static inline PetscErrorCode TaoSetObjectiveAndGradientRoutine(Tao t, PetscErrorCode (*… in TaoSetObjectiveAndGradientRoutine() argument 29 …0, "TaoSetHessian()", ) static inline PetscErrorCode TaoSetHessianRoutine(Tao t, Mat H, Mat P, Pet… in TaoSetHessianRoutine() argument
|
| /petsc/src/ts/event/ |
| H A D | tsevent.c | 18 PetscErrorCode TSEventInitialize(TSEvent event, TS ts, PetscReal t, Vec U) in TSEventInitialize() 309 …direction[], PetscBool terminate[], PetscErrorCode (*indicator)(TS ts, PetscReal t, Vec U, PetscRe… in TSSetEventHandler() 439 static PetscErrorCode TSPostEvent(TS ts, PetscReal t, Vec U) in TSPostEvent() 518 static inline PetscReal RefineAndersonBjorck(PetscReal tleft, PetscReal t, PetscReal tright, PetscR… in RefineAndersonBjorck() 571 static PetscErrorCode TSEventTestZero(TS ts, PetscReal t) in TSEventTestZero() 607 static inline PetscReal TSEvent_dt_cap(TS ts, PetscReal t, PetscReal dt, PetscBool user_dt) in TSEvent_dt_cap() 646 static inline void TSEvent_update_left(TSEvent event, PetscReal t) in TSEvent_update_left() 658 static inline void TSEvent_update_right(TSEvent event, PetscReal t) in TSEvent_update_right() 777 PetscReal t, dt_next = 0.0; in TSEventHandler() local 941 PetscReal t; in TSAdjointEventHandler() local
|
| /petsc/src/ts/tutorials/power_grid/ |
| H A D | ex3.h | 23 PetscErrorCode EventFunction(TS ts, PetscReal t, Vec X, PetscReal *fvalue, PetscCtx ctx) in EventFunction() 35 PetscErrorCode PostEventFunction(TS ts, PetscInt nevents, PetscInt event_list[], PetscReal t, Vec X… in PostEventFunction() 54 PetscErrorCode RHSFunction(TS ts, PetscReal t, Vec U, Vec F, AppCtx *ctx) in RHSFunction() 75 PetscErrorCode RHSJacobian(TS ts, PetscReal t, Vec U, Mat A, Mat B, AppCtx *ctx) in RHSJacobian() 103 PetscErrorCode IFunction(TS ts, PetscReal t, Vec U, Vec Udot, Vec F, AppCtx *ctx) in IFunction() 126 PetscErrorCode IJacobian(TS ts, PetscReal t, Vec U, Vec Udot, PetscReal a, Mat A, Mat B, AppCtx *ct… in IJacobian() 154 PetscErrorCode RHSJacobianP(TS ts, PetscReal t, Vec X, Mat A, PetscCtx ctx0) in RHSJacobianP() 171 PetscErrorCode CostIntegrand(TS ts, PetscReal t, Vec U, Vec R, AppCtx *ctx) in CostIntegrand() 186 PetscErrorCode DRDUJacobianTranspose(TS ts, PetscReal t, Vec U, Mat DRDU, Mat B, AppCtx *ctx) in DRDUJacobianTranspose() 203 PetscErrorCode DRDPJacobianTranspose(TS ts, PetscReal t, Vec U, Mat DRDP, PetscCtx ctx) in DRDPJacobianTranspose()
|
| /petsc/src/binding/petsc4py/test/ |
| H A D | test_ts.py | 23 def rhsfunction(self, ts, t, u, F): argument 29 def rhsjacobian(self, ts, t, u, J, P): argument 40 def ifunction(self, ts, t, u, du, F): argument 46 def ijacobian(self, ts, t, u, du, a, J, P): argument 57 def monitor(self, ts, s, t, u): argument
|
| /petsc/src/ts/tutorials/multirate/ |
| H A D | ex3fastslowsplit.c | 23 static PetscErrorCode RHSFunctionslow(TS ts, PetscReal t, Vec U, Vec F, AppCtx *ctx) in RHSFunctionslow() 37 static PetscErrorCode RHSFunctionfast(TS ts, PetscReal t, Vec U, Vec F, AppCtx *ctx) in RHSFunctionfast() 51 static PetscErrorCode IFunctionfast(TS ts, PetscReal t, Vec U, Vec Udot, Vec F, AppCtx *ctx) in IFunctionfast() 67 static PetscErrorCode IJacobianfast(TS ts, PetscReal t, Vec U, Vec Udot, PetscReal a, Mat A, Mat B,… in IJacobianfast() 91 static PetscErrorCode sol_true(PetscReal t, Vec U) in sol_true()
|