Lines Matching refs:U

17 PetscErrorCode EventFunction(TS ts, PetscReal t, Vec U, PetscReal *fvalue, PetscCtx ctx)  in EventFunction()  argument
23 PetscCall(VecGetArrayRead(U, &u)); in EventFunction()
25 PetscCall(VecRestoreArrayRead(U, &u)); in EventFunction()
29 PetscErrorCode PostEventFunction(TS ts, PetscInt nevents, PetscInt event_list[], PetscReal t, Vec U in PostEventFunction() argument
39 PetscCall(VecGetArray(U, &u)); in PostEventFunction()
42 PetscCall(VecRestoreArray(U, &u)); in PostEventFunction()
50 static PetscErrorCode RHSFunction(TS ts, PetscReal t, Vec U, Vec F, PetscCtx ctx) in RHSFunction() argument
57 PetscCall(VecGetArrayRead(U, &u)); in RHSFunction()
63 PetscCall(VecRestoreArrayRead(U, &u)); in RHSFunction()
71 static PetscErrorCode RHSJacobian(TS ts, PetscReal t, Vec U, Mat A, Mat B, PetscCtx ctx) in RHSJacobian() argument
78 PetscCall(VecGetArrayRead(U, &u)); in RHSJacobian()
90 PetscCall(VecRestoreArrayRead(U, &u)); in RHSJacobian()
103 static PetscErrorCode IFunction(TS ts, PetscReal t, Vec U, Vec Udot, Vec F, PetscCtx ctx) in IFunction() argument
110 PetscCall(VecGetArrayRead(U, &u)); in IFunction()
117 PetscCall(VecRestoreArrayRead(U, &u)); in IFunction()
126 static PetscErrorCode IJacobian(TS ts, PetscReal t, Vec U, Vec Udot, PetscReal a, Mat A, Mat B, Pet… in IJacobian() argument
133 PetscCall(VecGetArrayRead(U, &u)); in IJacobian()
146 PetscCall(VecRestoreArrayRead(U, &u)); in IJacobian()
161 Vec U; /* solution will be stored here */ in main() local
204 PetscCall(VecCreate(PETSC_COMM_WORLD, &U)); in main()
205 PetscCall(VecSetSizes(U, n, PETSC_DETERMINE)); in main()
206 PetscCall(VecSetUp(U)); in main()
207 PetscCall(VecGetArray(U, &u)); in main()
210 PetscCall(VecRestoreArray(U, &u)); in main()
211 PetscCall(TSSetSolution(ts, U)); in main()
235 PetscCall(TSSolve(ts, U)); in main()
262 PetscCall(VecGetArray(U, &u)); in main()
265 PetscCall(VecRestoreArray(U, &u)); in main()
266 PetscCall(TSSolve(ts, U)); in main()
271 PetscCall(VecDestroy(&U)); in main()