Lines Matching refs:V
15 Vec U, V; member
40 PetscErrorCode TSDAESimpleSetIFunction(TSDAESimple tsdae, Vec V, PetscErrorCode (*F)(PetscReal, Vec… in TSDAESimpleSetIFunction() argument
44 tsdae->V = V; in TSDAESimpleSetIFunction()
45 PetscCall(PetscObjectReference((PetscObject)V)); in TSDAESimpleSetIFunction()
55 PetscCall(VecDestroy(&(*tsdae)->V)); in TSDAESimpleDestroy()
101 PetscCall(SNESSolve(red->snes, NULL, tsdae->V)); in TSDAESimple_Reduced_TSFunction()
102 PetscCall((*tsdae->f)(t, U, tsdae->V, F, tsdae->fctx)); in TSDAESimple_Reduced_TSFunction()
110 PetscErrorCode TSDAESimple_Reduced_SNESFunction(SNES snes, Vec V, Vec F, void *actx) in TSDAESimple_Reduced_SNESFunction() argument
116 PetscCall((*tsdae->F)(red->t, red->U, V, F, tsdae->Fctx)); in TSDAESimple_Reduced_SNESFunction()
206 PetscCall(VecScatterBegin(full->scatterV, UV, tsdae->V, INSERT_VALUES, SCATTER_REVERSE)); in TSDAESimple_Full_TSRHSFunction()
207 PetscCall(VecScatterEnd(full->scatterV, UV, tsdae->V, INSERT_VALUES, SCATTER_REVERSE)); in TSDAESimple_Full_TSRHSFunction()
208 PetscCall((*tsdae->f)(t, tsdae->U, tsdae->V, full->UF, tsdae->fctx)); in TSDAESimple_Full_TSRHSFunction()
230 PetscCall(VecScatterBegin(full->scatterV, UV, tsdae->V, INSERT_VALUES, SCATTER_REVERSE)); in TSDAESimple_Full_TSIFunction()
231 PetscCall(VecScatterEnd(full->scatterV, UV, tsdae->V, INSERT_VALUES, SCATTER_REVERSE)); in TSDAESimple_Full_TSIFunction()
232 PetscCall((*tsdae->F)(t, tsdae->U, tsdae->V, full->VF, tsdae->Fctx)); in TSDAESimple_Full_TSIFunction()
296 PetscCall(VecDuplicate(tsdae->V, &full->VF)); in TSDAESimpleSetUp_Full()
299 PetscCall(VecGetLocalSize(tsdae->V, &nV)); in TSDAESimpleSetUp_Full()
308 PetscCall(VecScatterCreate(tsdae->V, NULL, tsrhs, is, &full->scatterV)); in TSDAESimpleSetUp_Full()
323 PetscErrorCode f(PetscReal t, Vec U, Vec V, Vec F, PetscCtx ctx) in f() argument
326 PetscCall(VecWAXPY(F, 1.0, U, V)); in f()
334 PetscErrorCode F(PetscReal t, Vec U, Vec V, Vec F, PetscCtx ctx) in F() argument
337 PetscCall(VecWAXPY(F, -1.0, V, U)); in F()
344 Vec U, V, Usolution; in main() local
351 PetscCall(VecCreateFromOptions(PETSC_COMM_WORLD, NULL, 1, 1, PETSC_DETERMINE, &V)); in main()
353 PetscCall(TSDAESimpleSetIFunction(tsdae, V, F, NULL)); in main()
367 PetscCall(VecDestroy(&V)); in main()