Lines Matching refs:U
13 PetscErrorCode f(PetscReal t, Vec U, Vec V, Vec F) in f() argument
16 PetscCall(VecWAXPY(F, 1.0, U, V)); in f()
23 PetscErrorCode F(PetscReal t, Vec U, Vec V, Vec F) in F() argument
26 PetscCall(VecWAXPY(F, -1.0, V, U)); in F()
33 Vec U, V; member
45 Vec tsrhs, U; in main() local
54 PetscCall(VecCreateMPI(PETSC_COMM_WORLD, PETSC_DECIDE, 1, &U)); in main()
66 PetscCall(VecSet(U, 1.0)); in main()
67 PetscCall(TSSolve(ts, U)); in main()
71 PetscCall(VecDestroy(&U)); in main()
83 PetscErrorCode TSFunction(TS ts, PetscReal t, Vec U, Vec F, void *actx) in TSFunction() argument
89 ctx->U = U; in TSFunction()
91 PetscCall((*ctx->f)(t, U, ctx->V, F)); in TSFunction()
103 PetscCall((*ctx->F)(ctx->t, ctx->U, V, F)); in SNESFunction()