Home
last modified time | relevance | path

Searched defs:U (Results 1 – 25 of 175) sorted by relevance

1234567

/petsc/include/petsc/private/kernels/
H A Dpetscaxpy.h32 #define PetscKernelAXPY(U, a1, p1, n) \ argument
38 #define PetscKernelAXPY2(U, a1, a2, p1, p2, n) \ argument
42 #define PetscKernelAXPY3(U, a1, a2, a3, p1, p2, p3, n) \ argument
46 #define PetscKernelAXPY4(U, a1, a2, a3, a4, p1, p2, p3, p4, n) \ argument
53 #define PetscKernelAXPY(U, Alpha, P, n) \ argument
76 #define PetscKernelAXPY2(U, a1, a2, p1, p2, n) \ argument
100 #define PetscKernelAXPY3(U, a1, a2, a3, p1, p2, p3, n) \ argument
125 #define PetscKernelAXPY4(U, a1, a2, a3, a4, p1, p2, p3, p4, n) \ argument
154 #define PetscKernelAXPY(U, a1, p1, n) \ argument
158 #define PetscKernelAXPY2(U, a1, a2, p1, p2, n) \ argument
[all …]
/petsc/src/ts/tests/
H A Dex6.c13 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()
33 Vec U, V; member
45 Vec tsrhs, U; in main() local
83 PetscErrorCode TSFunction(TS ts, PetscReal t, Vec U, Vec F, void *actx) in TSFunction()
H A Dex15.c43 static PetscErrorCode IFunction_Conservative(TS ts, PetscReal t, Vec U, Vec Udot, Vec F, PetscCtx c… in IFunction_Conservative()
62 static PetscErrorCode IFunction_Nonconservative(TS ts, PetscReal t, Vec U, Vec Udot, Vec F, PetscCt… in IFunction_Nonconservative()
81 static PetscErrorCode IFunction_TransientVar(TS ts, PetscReal t, Vec U, Vec Cdot, Vec F, PetscCtx c… in IFunction_TransientVar()
100 static PetscErrorCode TransientVar(TS ts, Vec U, Vec C, PetscCtx ctx) in TransientVar()
112 Vec U; in main() local
H A Dex10.c15 Vec U, V; member
30 PetscErrorCode TSDAESimpleSetRHSFunction(TSDAESimple tsdae, Vec U, PetscErrorCode (*f)(PetscReal, V… in TSDAESimpleSetRHSFunction() argument
84 Vec U; member
93 PetscErrorCode TSDAESimple_Reduced_TSFunction(TS ts, PetscReal t, Vec U, Vec F, void *actx) in TSDAESimple_Reduced_TSFunction()
120 PetscErrorCode TSDAESimpleSolve_Reduced(TSDAESimple tsdae, Vec U) in TSDAESimpleSolve_Reduced()
238 PetscErrorCode TSDAESimpleSolve_Full(TSDAESimple tsdae, Vec U) in TSDAESimpleSolve_Full()
323 PetscErrorCode f(PetscReal t, Vec U, Vec V, Vec F, PetscCtx ctx) in f()
334 PetscErrorCode F(PetscReal t, Vec U, Vec V, Vec F, PetscCtx ctx) in F()
344 Vec U, V, Usolution; in main() local
/petsc/src/ts/tutorials/
H A Dex41.c17 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()
161 Vec U; /* solution will be stored here */ in main() local
H A Dex40.c21 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()
160 Vec U; /* solution will be stored here */ in main() local
H A Dex20adj.c65 Vec U, lambda[2], mup[2]; /* adjoint variables */ member
70 static PetscErrorCode RHSFunction(TS ts, PetscReal t, Vec U, Vec F, PetscCtx ctx) in RHSFunction()
90 static PetscErrorCode RHSJacobian(TS ts, PetscReal t, Vec U, Mat A, Mat B, PetscCtx ctx) in RHSJacobian()
122 static PetscErrorCode IFunction(TS ts, PetscReal t, Vec U, Vec Udot, Vec F, PetscCtx ctx) in IFunction()
144 static PetscErrorCode IJacobian(TS ts, PetscReal t, Vec U, Vec Udot, PetscReal a, Mat A, Mat B, Pet… in IJacobian()
176 static PetscErrorCode IJacobianP(TS ts, PetscReal t, Vec U, Vec Udot, PetscReal a, Mat A, PetscCtx … in IJacobianP()
193 static PetscErrorCode RHSJacobianP(TS ts, PetscReal t, Vec U, Mat A, PetscCtx ctx) in RHSJacobianP()
214 static PetscErrorCode Monitor(TS ts, PetscInt step, PetscReal t, Vec U, PetscCtx ctx) in Monitor()
H A Dex20opt_ic.c26 Vec U, Lambda[1], Mup[1]; /* first-order adjoint variables */ member
37 static PetscErrorCode RHSFunction(TS ts, PetscReal t, Vec U, Vec F, PetscCtx ctx) in RHSFunction()
53 static PetscErrorCode RHSJacobian(TS ts, PetscReal t, Vec U, Mat A, Mat B, PetscCtx ctx) in RHSJacobian()
78 static PetscErrorCode RHSHessianProductUU(TS ts, PetscReal t, Vec U, Vec *Vl, Vec Vr, Vec *VHV, Pet… in RHSHessianProductUU()
109 static PetscErrorCode IFunction(TS ts, PetscReal t, Vec U, Vec Udot, Vec F, PetscCtx ctx) in IFunction()
127 static PetscErrorCode IJacobian(TS ts, PetscReal t, Vec U, Vec Udot, PetscReal a, Mat A, Mat B, Pet… in IJacobian()
152 static PetscErrorCode Monitor(TS ts, PetscInt step, PetscReal t, Vec U, PetscCtx ctx) in Monitor()
175 static PetscErrorCode IHessianProductUU(TS ts, PetscReal t, Vec U, Vec *Vl, Vec Vr, Vec *VHV, Petsc… in IHessianProductUU()
235 static PetscErrorCode FormHessian(Tao tao, Vec U, Mat H, Mat Hpre, PetscCtx ctx) in FormHessian()
271 static PetscErrorCode MatrixFreeHessian(Tao tao, Vec U, Mat H, Mat Hpre, PetscCtx ctx) in MatrixFreeHessian()
[all …]
H A Dex51.c18 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()
55 Vec U; /* numerical solution will be stored here */ in main() local
H A Dex32.c37 PetscErrorCode InitialConditions(Vec U, DM da, AppCtx *app) in InitialConditions()
67 PetscErrorCode EventFunction(TS ts, PetscReal t, Vec U, PetscReal *fvalue, PetscCtx ctx) in EventFunction()
81 …nction(TS ts, PetscInt nevents_zero, PetscInt events_zero[], PetscReal t, Vec U, PetscBool forward… in PostEventFunction()
97 static PetscErrorCode IFunction(TS ts, PetscReal t, Vec U, Vec Udot, Vec F, PetscCtx ctx) in IFunction()
143 static PetscErrorCode IJacobian(TS ts, PetscReal t, Vec U, Vec Udot, PetscReal a, Mat A, Mat B, Pet… in IJacobian()
189 Vec U; /* solution will be stored here */ in main() local
H A Dex20opt_p.c26 Vec U, Lambda[1], Mup[1]; /* adjoint variables */ member
43 static PetscErrorCode RHSFunction(TS ts, PetscReal t, Vec U, Vec F, PetscCtx ctx) in RHSFunction()
59 static PetscErrorCode RHSJacobian(TS ts, PetscReal t, Vec U, Mat A, Mat B, PetscCtx ctx) in RHSJacobian()
86 static PetscErrorCode RHSHessianProductUU(TS ts, PetscReal t, Vec U, Vec *Vl, Vec Vr, Vec *VHV, Pet… in RHSHessianProductUU()
116 static PetscErrorCode RHSHessianProductUP(TS ts, PetscReal t, Vec U, Vec *Vl, Vec Vr, Vec *VHV, Pet… in RHSHessianProductUP()
144 static PetscErrorCode RHSHessianProductPU(TS ts, PetscReal t, Vec U, Vec *Vl, Vec Vr, Vec *VHV, Pet… in RHSHessianProductPU()
172 static PetscErrorCode RHSHessianProductPP(TS ts, PetscReal t, Vec U, Vec *Vl, Vec Vr, Vec *VHV, Pet… in RHSHessianProductPP()
180 static PetscErrorCode IFunction(TS ts, PetscReal t, Vec U, Vec Udot, Vec F, PetscCtx ctx) in IFunction()
200 static PetscErrorCode IJacobian(TS ts, PetscReal t, Vec U, Vec Udot, PetscReal a, Mat A, Mat B, Pet… in IJacobian()
227 static PetscErrorCode RHSJacobianP(TS ts, PetscReal t, Vec U, Mat A, PetscCtx ctx) in RHSJacobianP()
[all …]
/petsc/src/ts/tutorials/multirate/
H A Dex3fastslowsplit.c23 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()
106 Vec U; /* solution will be stored here */ in main() local
H A Dex3.c18 static PetscErrorCode RHSFunction(TS ts, PetscReal t, Vec U, Vec F, AppCtx *ctx) in RHSFunction()
33 static PetscErrorCode RHSFunctionslow(TS ts, PetscReal t, Vec U, Vec F, AppCtx *ctx) in RHSFunctionslow()
47 static PetscErrorCode RHSFunctionfast(TS ts, PetscReal t, Vec U, Vec F, AppCtx *ctx) in RHSFunctionfast()
61 static PetscErrorCode sol_true(PetscReal t, Vec U) in sol_true()
76 Vec U; /* solution will be stored here */ in main() local
H A Dex2.c18 static PetscErrorCode RHSFunction(TS ts, PetscReal t, Vec U, Vec F, AppCtx *ctx) in RHSFunction()
33 static PetscErrorCode RHSFunctionslow(TS ts, PetscReal t, Vec U, Vec F, AppCtx *ctx) in RHSFunctionslow()
47 static PetscErrorCode RHSFunctionfast(TS ts, PetscReal t, Vec U, Vec F, AppCtx *ctx) in RHSFunctionfast()
64 static PetscErrorCode sol_true(PetscReal t, Vec U, AppCtx *ctx) in sol_true()
79 Vec U; /* solution will be stored here */ in main() local
H A Dex1.c18 static PetscErrorCode RHSFunction(TS ts, PetscReal t, Vec U, Vec F, AppCtx *ctx) in RHSFunction()
33 static PetscErrorCode RHSFunctionslow(TS ts, PetscReal t, Vec U, Vec F, AppCtx *ctx) in RHSFunctionslow()
47 static PetscErrorCode RHSFunctionfast(TS ts, PetscReal t, Vec U, Vec F, AppCtx *ctx) in RHSFunctionfast()
64 static PetscErrorCode sol_true(PetscReal t, Vec U, AppCtx *ctx) in sol_true()
79 Vec U; /* solution will be stored here */ in main() local
/petsc/src/mat/impls/lrc/
H A Dlrc.c7 Mat U, V; /* dense tall-skinny matrices */ member
17 Mat U, V; in MatMult_LRC_kernel() local
119 static PetscErrorCode MatLRCGetMats_LRC(Mat N, Mat *A, Mat *U, Vec *c, Mat *V) in MatLRCGetMats_LRC()
131 static PetscErrorCode MatLRCSetMats_LRC(Mat N, Mat A, Mat U, Vec c, Mat V) in MatLRCSetMats_LRC()
174 PetscErrorCode MatLRCGetMats(Mat N, Mat *A, Mat *U, Vec *c, Mat *V) in MatLRCGetMats()
200 PetscErrorCode MatLRCSetMats(Mat N, Mat A, Mat U, Vec c, Mat V) in MatLRCSetMats()
254 Mat U = Na->U; in MatSetUp_LRC() local
373 PetscErrorCode MatCreateLRC(Mat A, Mat U, Vec c, Mat V, Mat *N) in MatCreateLRC()
/petsc/src/ts/tutorials/hybrid/
H A Dex1fd.c28 PetscErrorCode EventFunction(TS ts, PetscReal t, Vec U, PetscReal *fvalue, PetscCtx ctx) in EventFunction()
44 PetscErrorCode ShiftGradients(TS ts, Vec U, AppCtx *actx) in ShiftGradients()
101 PetscErrorCode PostEventFunction(TS ts, PetscInt nevents, PetscInt event_list[], PetscReal t, Vec U in PostEventFunction()
120 static PetscErrorCode IFunction(TS ts, PetscReal t, Vec U, Vec Udot, Vec F, PetscCtx ctx) in IFunction()
149 static PetscErrorCode IJacobian(TS ts, PetscReal t, Vec U, Vec Udot, PetscReal a, Mat A, Mat B, Pet… in IJacobian()
188 Vec U; /* solution will be stored here */ in main() local
324 Vec U; /* solution will be stored here */ in FWDRun() local
H A Dex1.c26 PetscErrorCode EventFunction(TS ts, PetscReal t, Vec U, PetscReal *fvalue, PetscCtx ctx) in EventFunction()
42 PetscErrorCode PostEventFunction(TS ts, PetscInt nevents, PetscInt event_list[], PetscReal t, Vec U in PostEventFunction()
60 static PetscErrorCode IFunction(TS ts, PetscReal t, Vec U, Vec Udot, Vec F, PetscCtx ctx) in IFunction()
89 static PetscErrorCode IJacobian(TS ts, PetscReal t, Vec U, Vec Udot, PetscReal a, Mat A, Mat B, Pet… in IJacobian()
128 Vec U; /* solution will be stored here */ in main() local
H A Dex1fwd.c29 PetscErrorCode MyMonitor(TS ts, PetscInt stepnum, PetscReal time, Vec U, PetscCtx ctx) in MyMonitor()
50 PetscErrorCode EventFunction(TS ts, PetscReal t, Vec U, PetscReal *fvalue, PetscCtx ctx) in EventFunction()
66 PetscErrorCode ShiftGradients(TS ts, Vec U, AppCtx *actx) in ShiftGradients()
123 PetscErrorCode PostEventFunction(TS ts, PetscInt nevents, PetscInt event_list[], PetscReal t, Vec U in PostEventFunction()
143 static PetscErrorCode IFunction(TS ts, PetscReal t, Vec U, Vec Udot, Vec F, PetscCtx ctx) in IFunction()
172 static PetscErrorCode IJacobian(TS ts, PetscReal t, Vec U, Vec Udot, PetscReal a, Mat A, Mat B, Pet… in IJacobian()
218 Vec U; /* solution will be stored here */ in main() local
H A Dex1adj.c28 PetscErrorCode EventFunction(TS ts, PetscReal t, Vec U, PetscReal *fvalue, PetscCtx ctx) in EventFunction()
44 PetscErrorCode ShiftGradients(TS ts, Vec U, AppCtx *actx) in ShiftGradients()
100 PetscErrorCode PostEventFunction(TS ts, PetscInt nevents, PetscInt event_list[], PetscReal t, Vec U in PostEventFunction()
120 static PetscErrorCode IFunction(TS ts, PetscReal t, Vec U, Vec Udot, Vec F, PetscCtx ctx) in IFunction()
149 static PetscErrorCode IJacobian(TS ts, PetscReal t, Vec U, Vec Udot, PetscReal a, Mat A, Mat B, Pet… in IJacobian()
195 Vec U; /* solution will be stored here */ in main() local
/petsc/src/ts/tutorials/autodiff/
H A Dadr_ex1.cxx40 PetscErrorCode IFunctionPassive(TS ts, PetscReal t, Vec U, Vec Udot, Vec F, AppCtx *ctx) in IFunctionPassive()
62 PetscErrorCode IFunctionActive1(TS ts, PetscReal t, Vec U, Vec Udot, Vec F, AppCtx *ctx) in IFunctionActive1()
99 PetscErrorCode IFunctionActive2(TS ts, PetscReal t, Vec U, Vec Udot, Vec F, AppCtx *ctx) in IFunctionActive2()
137 PetscErrorCode IJacobian(TS ts, PetscReal t, Vec U, Vec Udot, PetscReal a, Mat A, Mat B, AppCtx *ct… in IJacobian()
152 static PetscErrorCode Solution(TS ts, PetscReal t, Vec U, AppCtx *ctx) in Solution()
174 Vec U, Udot, R; /* solution, derivative, residual */ in main() local
/petsc/src/ts/interface/sensitivity/
H A Dtssen.c90 PetscErrorCode TSComputeRHSJacobianP(TS ts, PetscReal t, Vec U, Mat Amat) in TSComputeRHSJacobianP()
137 PetscErrorCode TSSetIJacobianP(TS ts, Mat Amat, PetscErrorCode (*func)(TS ts, PetscReal t, Vec U, V… in TSSetIJacobianP()
182 PetscErrorCode TSGetIJacobianP(TS ts, Mat *Amat, PetscErrorCode (**func)(TS ts, PetscReal t, Vec U,… in TSGetIJacobianP()
213 PetscErrorCode TSComputeIJacobianP(TS ts, PetscReal t, Vec U, Vec Udot, PetscReal shift, Mat Amat, … in TSComputeIJacobianP()
295 …scInt numcost, Vec costintegral, PetscErrorCode (*rf)(TS ts, PetscReal t, Vec U, Vec F, PetscCtx c… in TSSetCostIntegrand()
374 PetscErrorCode TSComputeCostIntegrand(TS ts, PetscReal t, Vec U, Vec Q) in TSComputeCostIntegrand()
395 PetscErrorCode TSComputeDRDUFunction(TS ts, PetscReal t, Vec U, Vec *DRDU) in TSComputeDRDUFunction()
413 PetscErrorCode TSComputeDRDPFunction(TS ts, PetscReal t, Vec U, Vec *DRDP) in TSComputeDRDPFunction()
469 …ts, Vec *ihp1, PetscErrorCode (*ihessianproductfunc1)(TS ts, PetscReal t, Vec U, Vec *Vl, Vec Vr, … in TSSetIHessianProduct() argument
510 PetscErrorCode TSComputeIHessianProductFunctionUU(TS ts, PetscReal t, Vec U, Vec Vl[], Vec Vr, Vec … in TSComputeIHessianProductFunctionUU()
[all …]
/petsc/src/binding/petsc4py/demo/legacy/wrap-cython/
H A Drun_demo.py30 U = da.createNaturalVec() variable
34 def plot(da, U): argument
/petsc/src/ts/tutorials/advection-diffusion-reaction/
H A Dex1.c95 PetscErrorCode IFunction(TS ts, PetscReal t, Vec U, Vec Udot, Vec F, AppCtx *ctx) in IFunction()
117 PetscErrorCode IJacobian(TS ts, PetscReal t, Vec U, Vec Udot, PetscReal a, Mat A, Mat B, AppCtx *ct… in IJacobian()
151 static PetscErrorCode Solution(TS ts, PetscReal t, Vec U, AppCtx *ctx) in Solution()
173 Vec U; /* solution will be stored here */ in main() local
H A Dex2.c42 static PetscErrorCode IFunction(TS ts, PetscReal t, Vec U, Vec Udot, Vec F, AppCtx *ctx) in IFunction()
61 static PetscErrorCode IJacobian(TS ts, PetscReal t, Vec U, Vec Udot, PetscReal a, Mat A, Mat B, App… in IJacobian()
99 static PetscErrorCode Solution(TS ts, PetscReal t, Vec U, AppCtx *ctx) in Solution()
110 Vec U; /* solution */ in main() local

1234567