Lines Matching refs:U

21 PetscErrorCode EventFunction(TS ts, PetscReal t, Vec U, PetscReal *fvalue, PetscCtx ctx)  in EventFunction()  argument
27 PetscCall(VecGetArrayRead(U, &u)); in EventFunction()
29 PetscCall(VecRestoreArrayRead(U, &u)); in EventFunction()
33 PetscErrorCode PostEventFunction(TS ts, PetscInt nevents, PetscInt event_list[], PetscReal t, Vec U in PostEventFunction() argument
41 PetscCall(VecGetArray(U, &u)); in PostEventFunction()
44 PetscCall(VecRestoreArray(U, &u)); in PostEventFunction()
56 static PetscErrorCode RHSFunction(TS ts, PetscReal t, Vec U, Vec F, PetscCtx ctx) in RHSFunction() argument
63 PetscCall(VecGetArrayRead(U, &u)); in RHSFunction()
69 PetscCall(VecRestoreArrayRead(U, &u)); in RHSFunction()
77 static PetscErrorCode RHSJacobian(TS ts, PetscReal t, Vec U, Mat A, Mat B, PetscCtx ctx) in RHSJacobian() argument
84 PetscCall(VecGetArrayRead(U, &u)); in RHSJacobian()
92 PetscCall(VecRestoreArrayRead(U, &u)); in RHSJacobian()
106 static PetscErrorCode IFunction(TS ts, PetscReal t, Vec U, Vec Udot, Vec F, PetscCtx ctx) in IFunction() argument
113 PetscCall(VecGetArrayRead(U, &u)); in IFunction()
120 PetscCall(VecRestoreArrayRead(U, &u)); in IFunction()
129 static PetscErrorCode IJacobian(TS ts, PetscReal t, Vec U, Vec Udot, PetscReal a, Mat A, Mat B, Pet… in IJacobian() argument
136 PetscCall(VecGetArrayRead(U, &u)); in IJacobian()
145 PetscCall(VecRestoreArrayRead(U, &u)); in IJacobian()
160 Vec U; /* solution will be stored here */ in main() local
218 PetscCall(VecCreate(PETSC_COMM_WORLD, &U)); in main()
219 PetscCall(VecSetSizes(U, n, PETSC_DETERMINE)); in main()
220 PetscCall(VecSetUp(U)); in main()
221 PetscCall(VecGetArray(U, &u)); in main()
224 PetscCall(VecRestoreArray(U, &u)); in main()
225 PetscCall(TSSetSolution(ts, U)); in main()
250 PetscCall(TSSolve(ts, U)); in main()
284 PetscCall(VecGetArray(U, &u)); in main()
287 PetscCall(VecRestoreArray(U, &u)); in main()
288 PetscCall(TSSolve(ts, U)); in main()
294 PetscCall(VecDestroy(&U)); in main()