| /petsc/src/binding/petsc4py/demo/legacy/ode/ |
| H A D | fastslowsplit.py | 25 def initialCondition(self, u): argument 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 76 u = PETSc.Vec().createSeq(ode.n, comm=ode.comm) variable
|
| H A D | vanderpol.py | 38 def initialCondition(self, u): argument 44 def evalFunction(self, ts, t, u, f): argument 53 def evalJacobian(self, ts, t, u, A, B): argument 71 def evalJacobianP(self, ts, t, u, C): argument 81 def evalIFunction(self, ts, t, u, udot, f): argument 90 def evalIJacobian(self, ts, t, u, udot, shift, A, B): argument 108 def evalIJacobianP(self, ts, t, u, udot, shift, C): argument 212 u = PETSc.Vec().createSeq(ode.n, comm=ode.comm) variable
|
| H A D | bouncing_ball.py | 16 def initialCondition(self, u): argument 21 def evalRHSFunction(self, ts, t, u, f): argument 26 def evalRHSJacobian(self, ts, t, u, A, B): argument 53 u = PETSc.Vec().createSeq(ode.n, comm=ode.comm) variable
|
| /petsc/src/ts/tutorials/ |
| H A D | ex41.c | 19 const PetscScalar *u; in EventFunction() local 31 PetscScalar *u; in PostEventFunction() local 53 const PetscScalar *u; in RHSFunction() local 75 const PetscScalar *u; in RHSJacobian() local 106 const PetscScalar *u, *udot; in IFunction() local 130 const PetscScalar *u, *udot; in IJacobian() local 164 PetscScalar *u; in main() local
|
| H A D | ex40.c | 23 const PetscScalar *u; in EventFunction() local 36 PetscScalar *u; in PostEventFunction() local 59 const PetscScalar *u; in RHSFunction() local 81 const PetscScalar *u; in RHSJacobian() local 109 const PetscScalar *u, *udot; in IFunction() local 133 const PetscScalar *u, *udot; in IJacobian() local 163 PetscScalar *u; in main() local
|
| H A D | ex51.c | 21 const PetscScalar *u; in RHSFunction() local 40 PetscScalar *u; in ExactSolution() local 59 PetscScalar *u; in main() local
|
| H A D | ex45.c | 46 …d_lin(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in mms_quad_lin() 55 …lin_t(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in mms_quad_lin_t() 61 …, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[], const PetscScalar u[], const Pet… in f0_quad_lin_exp() 65 …, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[], const PetscScalar u[], const Pet… in f0_quad_lin() 81 …_trig(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in mms_quad_trig() 90 …rig_t(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in mms_quad_trig_t() 96 …, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[], const PetscScalar u[], const Pet… in f0_quad_trig_exp() 100 …, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[], const PetscScalar u[], const Pet… in f0_quad_trig() 116 …g_lin(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in mms_trig_lin() 125 …lin_t(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in mms_trig_lin_t() [all …]
|
| H A D | ex20adj.c | 74 const PetscScalar *u; in RHSFunction() local 96 const PetscScalar *u; in RHSJacobian() local 125 const PetscScalar *u, *udot; in IFunction() local 149 const PetscScalar *u; in IJacobian() local 180 const PetscScalar *u; in IJacobianP() local 201 const PetscScalar *u; in RHSJacobianP() local 216 const PetscScalar *u; in Monitor() local
|
| H A D | ex44.c | 26 const PetscScalar *u; in Event() local 41 PetscScalar *u, *v; in PostEvent() local 71 const PetscScalar *u, *v, *a; in I2Function() local 92 const PetscScalar *u, *v, *a; in I2Jacobian() local 123 PetscScalar *u, *v; in main() local
|
| /petsc/src/ts/tutorials/multirate/ |
| H A D | ex3fastslowsplit.c | 25 const PetscScalar *u; in RHSFunctionslow() local 39 const PetscScalar *u; in RHSFunctionfast() local 53 const PetscScalar *u, *udot; in IFunctionfast() local 70 const PetscScalar *u; in IJacobianfast() local 93 PetscScalar *u; in sol_true() local 111 PetscScalar *u; in main() local
|
| H A D | ex3.c | 20 const PetscScalar *u; in RHSFunction() local 35 const PetscScalar *u; in RHSFunctionslow() local 49 const PetscScalar *u; in RHSFunctionfast() local 63 PetscScalar *u; in sol_true() local 80 PetscScalar *u; in main() local
|
| H A D | ex1.c | 20 const PetscScalar *u; in RHSFunction() local 35 const PetscScalar *u; in RHSFunctionslow() local 49 const PetscScalar *u; in RHSFunctionfast() local 66 PetscScalar *u; in sol_true() local 83 PetscScalar *u; in main() local
|
| H A D | ex2.c | 20 const PetscScalar *u; in RHSFunction() local 35 const PetscScalar *u; in RHSFunctionslow() local 49 const PetscScalar *u; in RHSFunctionfast() local 66 PetscScalar *u; in sol_true() local 83 PetscScalar *u; in main() local
|
| /petsc/src/dm/impls/plex/tests/ |
| H A D | ex46.c | 11 …stant(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in constant() 17 …inear(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in linear() 23 …ratic(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in quadratic() 29 …cubic(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in cubic() 97 static PetscErrorCode CheckError(DM dm, Vec u, PetscSimplePointFn *funcs[]) in CheckError() 113 Vec u; in main() local
|
| H A D | ex73.c | 18 … zero(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in zero() 25 static void solenoidal_2d(PetscInt n, const PetscReal x[], PetscScalar u[]) in solenoidal_2d() 31 static void solenoidal_3d(PetscInt n, const PetscReal x[], PetscScalar u[]) in solenoidal_3d() 38 …eg_2d(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in solenoidal_totaldeg_2d() 47 …eg_3d(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in solenoidal_totaldeg_3d() 57 …aldeg(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in source_totaldeg() 65 …, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[], const PetscScalar u[], const Pet… in identity() 75 …, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[], const PetscScalar u[], const Pet… in zero_bd() 80 …, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[], const PetscScalar u[], const Pet… in flux() 85 …, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[], const PetscScalar u[], const Pet… in divergence() [all …]
|
| /petsc/src/snes/tests/ |
| H A D | ex15.c | 48 …t_phi(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in const_phi() 54 …nst_q(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in const_q() 61 …r_phi(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in linear_phi() 67 …ear_q(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in linear_q() 75 …c_phi(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in quadratic_phi() 81 …tic_q(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in quadratic_q() 88 …_q_bc(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in quadratic_q_bc() 94 …, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[], const PetscScalar u[], const Pet… in f0_quadratic_phi() 100 …g_phi(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in trig_phi() 106 …rig_q(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in trig_q() [all …]
|
| H A D | ex8.c | 149 …(PetscInt dim, PetscReal time, const PetscReal coords[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in constant() 161 …eal time, const PetscReal coords[], const PetscReal n[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in constantDer() 175 …(PetscInt dim, PetscReal time, const PetscReal coords[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in linear() 187 …eal time, const PetscReal coords[], const PetscReal n[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in linearDer() 205 …(PetscInt dim, PetscReal time, const PetscReal coords[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in quadratic() 224 …eal time, const PetscReal coords[], const PetscReal n[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in quadraticDer() 245 …(PetscInt dim, PetscReal time, const PetscReal coords[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in cubic() 264 …eal time, const PetscReal coords[], const PetscReal n[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in cubicDer() 285 …(PetscInt dim, PetscReal time, const PetscReal coords[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in quartic() 304 …eal time, const PetscReal coords[], const PetscReal n[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in quarticDer() [all …]
|
| /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/autodiff/ |
| H A D | adr_ex1.cxx | 43 const PetscScalar *u, *udot; in IFunctionPassive() local 65 const PetscScalar *u, *udot; in IFunctionActive1() local 102 const PetscScalar *u, *udot; in IFunctionActive2() local 140 const PetscScalar *u; in IJacobian() local 155 PetscScalar *u, d0, q; in Solution() local 180 PetscScalar *u; in main() local
|
| /petsc/src/snes/tutorials/ |
| H A D | ex24.c | 46 …, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[], const PetscScalar u[], const Pet… in f0_u() 60 …ear_u(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in linear_u() 65 …ear_q(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in linear_q() 72 …, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[], const PetscScalar u[], const Pet… in f0_linear_u() 77 …, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[], const PetscScalar u[], const Pet… in f0_bd_linear_q() 94 …tic_u(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in quadratic_u() 102 …tic_q(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in quadratic_q() 109 …, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[], const PetscScalar u[], const Pet… in f0_quadratic_u() 114 …, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[], const PetscScalar u[], const Pet… in f0_bd_quadratic_q() 131 …tic_u(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in quartic_u() [all …]
|
| H A D | ex12.c | 66 … zero(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in zero() 72 … ecks(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in ecks() 103 …_u_2d(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in quadratic_u_2d() 109 …, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[], const PetscScalar u[], const Pet… in quadratic_u_field_2d() 114 …_u_2d(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in ball_u_2d() 125 …_u_2d(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in cross_u_2d() 134 …, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[], const PetscScalar u[], const Pet… in f0_u() 139 …, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[], const PetscScalar u[], const Pet… in f0_ball_u() 150 …, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[], const PetscScalar u[], const Pet… in f0_cross_u_2d() 158 …, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[], const PetscScalar u[], const Pet… in f0_checkerboard_0_u() [all …]
|
| H A D | ex62.c | 53 …, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[], const PetscScalar u[], const Pet… in f1_u() 65 …, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[], const PetscScalar u[], const Pet… in f0_p() 71 …, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[], const PetscScalar u[], const Pet… in g1_pu() 77 …, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[], const PetscScalar u[], const Pet… in g2_up() 83 …, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[], const PetscScalar u[], const Pet… in g3_uu() 97 …, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[], const PetscScalar u[], const Pet… in g0_pp() 135 …tic_u(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in quadratic_u() 147 …tic_p(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in quadratic_p() 156 …, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[], const PetscScalar u[], const Pet… in f0_quadratic_u() 196 …rig_u(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in trig_u() [all …]
|
| /petsc/src/dm/dt/tests/ |
| H A D | ex10.c | 17 …ear_u(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in linear_u() 25 …ear_p(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in linear_p() 34 …_divu(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscScalar *u, PetscCtx ctx) in linear_divu() 41 …, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[], const PetscScalar u[], const Pet… in f0_v() 49 …, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[], const PetscScalar u[], const Pet… in f1_v() 61 …, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[], const PetscScalar u[], const Pet… in f0_q_linear() 72 …, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[], const PetscScalar u[], const Pet… in f0_bd_u_linear() 82 …, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[], const PetscScalar u[], const Pet… in g0_vu() 89 …, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[], const PetscScalar u[], const Pet… in g1_qu() 96 …, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[], const PetscScalar u[], const Pet… in g2_vp() [all …]
|
| /petsc/src/ts/tutorials/hybrid/ |
| H A D | ex1fwd.c | 33 PetscScalar *u; in MyMonitor() local 53 const PetscScalar *u; in EventFunction() local 70 PetscScalar *u; in ShiftGradients() local 147 const PetscScalar *u, *udot; in IFunction() local 177 const PetscScalar *u, *udot; in IJacobian() local 223 PetscScalar *u; in main() local
|
| /petsc/src/ts/tutorials/advection-diffusion-reaction/ |
| H A D | ex1.c | 98 const PetscScalar *u, *udot; in IFunction() local 121 const PetscScalar *u, *udot; in IJacobian() local 154 PetscScalar *u, d0, q; in Solution() local 178 PetscScalar *u; in main() local
|