Lines Matching refs:U
26 PetscErrorCode EventFunction(TS ts, PetscReal t, Vec U, PetscReal *fvalue, PetscCtx ctx) in EventFunction() argument
32 PetscCall(VecGetArrayRead(U, &u)); in EventFunction()
38 PetscCall(VecRestoreArrayRead(U, &u)); in EventFunction()
42 PetscErrorCode PostEventFunction(TS ts, PetscInt nevents, PetscInt event_list[], PetscReal t, Vec U… in PostEventFunction() argument
60 static PetscErrorCode IFunction(TS ts, PetscReal t, Vec U, Vec Udot, Vec F, PetscCtx ctx) in IFunction() argument
68 PetscCall(VecGetArrayRead(U, &u)); in IFunction()
80 PetscCall(VecRestoreArrayRead(U, &u)); in IFunction()
89 static PetscErrorCode IJacobian(TS ts, PetscReal t, Vec U, Vec Udot, PetscReal a, Mat A, Mat B, Pet… in IJacobian() argument
97 PetscCall(VecGetArrayRead(U, &u)); in IJacobian()
113 PetscCall(VecRestoreArrayRead(U, &u)); in IJacobian()
128 Vec U; /* solution will be stored here */ in main() local
163 PetscCall(MatCreateVecs(A, &U, NULL)); in main()
165 PetscCall(VecGetArray(U, &u)); in main()
168 PetscCall(VecRestoreArray(U, &u)); in main()
181 PetscCall(TSSetSolution(ts, U)); in main()
199 PetscCall(TSSolve(ts, U)); in main()
205 PetscCall(VecDestroy(&U)); in main()