Lines Matching refs:U
23 static PetscErrorCode Event(TS ts, PetscReal t, Vec U, PetscReal *fvalue, PetscCtx ctx) in Event() argument
30 PetscCall(TS2GetSolution(ts, &U, &V)); in Event()
31 PetscCall(VecGetArrayRead(U, &u)); in Event()
33 PetscCall(VecRestoreArrayRead(U, &u)); in Event()
37 static PetscErrorCode PostEvent(TS ts, PetscInt nevents, PetscInt event_list[], PetscReal t, Vec U,… in PostEvent() argument
50 PetscCall(TS2GetSolution(ts, &U, &V)); in PostEvent()
51 PetscCall(VecGetArray(U, &u)); in PostEvent()
55 PetscCall(VecRestoreArray(U, &u)); in PostEvent()
68 static PetscErrorCode I2Function(TS ts, PetscReal t, Vec U, Vec V, Vec A, Vec F, PetscCtx ctx) in I2Function() argument
75 PetscCall(VecGetArrayRead(U, &u)); in I2Function()
79 PetscCall(VecRestoreArrayRead(U, &u)); in I2Function()
89 static PetscErrorCode I2Jacobian(TS ts, PetscReal t, Vec U, Vec V, Vec A, PetscReal shiftV, PetscRe… in I2Jacobian() argument
97 PetscCall(VecGetArrayRead(U, &u)); in I2Jacobian()
101 PetscCall(VecRestoreArrayRead(U, &u)); in I2Jacobian()
119 Vec U, V; /* solution will be stored here */ in main() local
168 PetscCall(MatCreateVecs(J, &U, NULL)); in main()
170 PetscCall(VecGetArray(U, &u)); in main()
174 PetscCall(VecRestoreArray(U, &u)); in main()
177 PetscCall(TS2SetSolution(ts, U, V)); in main()
181 PetscCall(VecDestroy(&U)); in main()