Lines Matching refs:Ydot
17 Vec Ydot; /* f(x)+g(x) Work vector */ member
153 Vec Y0 = ext->VecSolPrev, Y1 = ext->Y, Ydot = ext->Ydot, YdotI = ext->YdotI; in TSInterpolate_EIMEX() local
160 PetscCall(VecZeroEntries(Ydot)); in TSInterpolate_EIMEX()
161 PetscCall(TSComputeIFunction(ts, ts->ptime - h, Y0, Ydot, YdotI, PETSC_FALSE)); in TSInterpolate_EIMEX()
167 PetscCall(TSComputeIFunction(ts, ts->ptime, Y1, Ydot, YdotI, PETSC_FALSE)); in TSInterpolate_EIMEX()
186 PetscCall(VecDestroy(&ext->Ydot)); in TSReset_EIMEX()
203 static PetscErrorCode TSEIMEXGetVecs(TS ts, DM dm, Vec *Z, Vec *Ydot, Vec *YdotI, Vec *YdotRHS) in TSEIMEXGetVecs() argument
212 if (Ydot) { in TSEIMEXGetVecs()
213 if (dm && dm != ts->dm) PetscCall(DMGetNamedGlobalVector(dm, "TSEIMEX_Ydot", Ydot)); in TSEIMEXGetVecs()
214 else *Ydot = ext->Ydot; in TSEIMEXGetVecs()
227 static PetscErrorCode TSEIMEXRestoreVecs(TS ts, DM dm, Vec *Z, Vec *Ydot, Vec *YdotI, Vec *YdotRHS) in TSEIMEXRestoreVecs() argument
233 if (Ydot) { in TSEIMEXRestoreVecs()
234 if (dm && dm != ts->dm) PetscCall(DMRestoreNamedGlobalVector(dm, "TSEIMEX_Ydot", Ydot)); in TSEIMEXRestoreVecs()
254 Vec Ydot, Z; in SNESTSFormFunction_EIMEX() local
261 PetscCall(TSEIMEXGetVecs(ts, dm, &Z, &Ydot, NULL, NULL)); in SNESTSFormFunction_EIMEX()
262 PetscCall(VecZeroEntries(Ydot)); in SNESTSFormFunction_EIMEX()
265 PetscCall(TSComputeIFunction(ts, ext->ctime, X, Ydot, G, PETSC_FALSE)); in SNESTSFormFunction_EIMEX()
267 PetscCall(VecCopy(G, Ydot)); in SNESTSFormFunction_EIMEX()
269 PetscCall(TSEIMEXRestoreVecs(ts, dm, &Z, &Ydot, NULL, NULL)); in SNESTSFormFunction_EIMEX()
279 Vec Ydot; in SNESTSFormJacobian_EIMEX() local
284 PetscCall(TSEIMEXGetVecs(ts, dm, NULL, &Ydot, NULL, NULL)); in SNESTSFormJacobian_EIMEX()
289 PetscCall(TSComputeIJacobian(ts, ts->ptime, X, Ydot, ext->shift, A, B, PETSC_TRUE)); in SNESTSFormJacobian_EIMEX()
291 PetscCall(TSEIMEXRestoreVecs(ts, dm, NULL, &Ydot, NULL, NULL)); in SNESTSFormJacobian_EIMEX()
343 PetscCall(VecDuplicate(ts->vec_sol, &ext->Ydot)); in TSSetUp_EIMEX()