Lines Matching refs:F
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()
39 PetscErrorCode (*F)(PetscReal, Vec, Vec, Vec); member
66 ctx.F = F; in main()
100 PetscErrorCode TSFunctionRHS(TS ts, PetscReal t, Vec UV, Vec F, void *actx) in TSFunctionRHS() argument
105 PetscCall(VecSet(F, 0.0)); in TSFunctionRHS()
111 PetscCall(VecScatterBegin(ctx->scatterU, ctx->UF, F, INSERT_VALUES, SCATTER_FORWARD)); in TSFunctionRHS()
112 PetscCall(VecScatterEnd(ctx->scatterU, ctx->UF, F, INSERT_VALUES, SCATTER_FORWARD)); in TSFunctionRHS()
120 PetscErrorCode TSFunctionI(TS ts, PetscReal t, Vec UV, Vec UVdot, Vec F, void *actx) in TSFunctionI() argument
125 PetscCall(VecCopy(UVdot, F)); in TSFunctionI()
130 PetscCall((*ctx->F)(t, ctx->U, ctx->V, ctx->VF)); in TSFunctionI()
131 PetscCall(VecScatterBegin(ctx->scatterV, ctx->VF, F, INSERT_VALUES, SCATTER_FORWARD)); in TSFunctionI()
132 PetscCall(VecScatterEnd(ctx->scatterV, ctx->VF, F, INSERT_VALUES, SCATTER_FORWARD)); in TSFunctionI()