Lines Matching refs:V
16 PetscErrorCode f(PetscReal t, Vec U, Vec V, Vec F) in f() argument
19 PetscCall(VecWAXPY(F, 1.0, U, V)); in f()
27 PetscErrorCode F(PetscReal t, Vec U, Vec V, Vec F) in F() argument
30 PetscCall(VecWAXPY(F, -1.0, V, U)); in F()
35 Vec U, V; member
69 PetscCall(VecCreateMPI(PETSC_COMM_WORLD, 1, PETSC_DETERMINE, &ctx.V)); in main()
78 PetscCall(VecScatterCreate(ctx.V, NULL, UV, is, &ctx.scatterV)); in main()
86 PetscCall(VecDestroy(&ctx.V)); in main()
108 PetscCall(VecScatterBegin(ctx->scatterV, UV, ctx->V, INSERT_VALUES, SCATTER_REVERSE)); in TSFunctionRHS()
109 PetscCall(VecScatterEnd(ctx->scatterV, UV, ctx->V, INSERT_VALUES, SCATTER_REVERSE)); in TSFunctionRHS()
110 PetscCall((*ctx->f)(t, ctx->U, ctx->V, ctx->UF)); in TSFunctionRHS()
128 PetscCall(VecScatterBegin(ctx->scatterV, UV, ctx->V, INSERT_VALUES, SCATTER_REVERSE)); in TSFunctionI()
129 PetscCall(VecScatterEnd(ctx->scatterV, UV, ctx->V, INSERT_VALUES, SCATTER_REVERSE)); in TSFunctionI()
130 PetscCall((*ctx->F)(t, ctx->U, ctx->V, ctx->VF)); in TSFunctionI()