Lines Matching refs:U
40 PetscErrorCode IFunctionPassive(TS ts, PetscReal t, Vec U, Vec Udot, Vec F, AppCtx *ctx) in IFunctionPassive() argument
47 PetscCall(VecGetArrayRead(U, &u)); in IFunctionPassive()
55 PetscCall(VecRestoreArrayRead(U, &u)); in IFunctionPassive()
62 PetscErrorCode IFunctionActive1(TS ts, PetscReal t, Vec U, Vec Udot, Vec F, AppCtx *ctx) in IFunctionActive1() argument
72 PetscCall(VecGetArrayRead(U, &u)); in IFunctionActive1()
92 PetscCall(VecRestoreArrayRead(U, &u)); in IFunctionActive1()
99 PetscErrorCode IFunctionActive2(TS ts, PetscReal t, Vec U, Vec Udot, Vec F, AppCtx *ctx) in IFunctionActive2() argument
109 PetscCall(VecGetArrayRead(U, &u)); in IFunctionActive2()
129 PetscCall(VecRestoreArrayRead(U, &u)); in IFunctionActive2()
137 PetscErrorCode IJacobian(TS ts, PetscReal t, Vec U, Vec Udot, PetscReal a, Mat A, Mat B, AppCtx *ct… in IJacobian() argument
143 PetscCall(VecGetArrayRead(U, &u)); in IJacobian()
145 PetscCall(VecRestoreArrayRead(U, &u)); in IJacobian()
152 static PetscErrorCode Solution(TS ts, PetscReal t, Vec U, AppCtx *ctx) in Solution() argument
159 PetscCall(VecGetArray(U, &u)); in Solution()
166 PetscCall(VecRestoreArray(U, &u)); in Solution()
174 Vec U, Udot, R; /* solution, derivative, residual */ in main() local
204 PetscCall(MatCreateVecs(A, &U, NULL)); in main()
211 PetscCall(VecDuplicate(U, &ctx.initialsolution)); in main()
230 PetscCall(Solution(ts, 0, U, &ctx)); in main()
231 PetscCall(TSSetSolution(ts, U)); in main()
236 PetscCall(VecDuplicate(U, &Udot)); in main()
237 PetscCall(VecDuplicate(U, &R)); in main()
238 PetscCall(IFunctionActive1(ts, 0., U, Udot, R, &ctx)); in main()
239 PetscCall(IFunctionActive2(ts, 0., U, Udot, R, &ctx)); in main()
272 PetscCall(TSSolve(ts, U)); in main()
281 PetscCall(VecDestroy(&U)); in main()