Lines Matching refs:V
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
64 PetscCall(VecCreateMPI(PETSC_COMM_WORLD, PETSC_DECIDE, 1, &ctx.V)); in main()
69 PetscCall(VecDestroy(&ctx.V)); in main()
90 PetscCall(SNESSolve(ctx->snes, NULL, ctx->V)); in TSFunction()
91 PetscCall((*ctx->f)(t, U, ctx->V, F)); in TSFunction()
98 PetscErrorCode SNESFunction(SNES snes, Vec V, Vec F, void *actx) in SNESFunction() argument
103 PetscCall((*ctx->F)(ctx->t, ctx->U, V, F)); in SNESFunction()