Lines Matching refs:Zdot
55 Vec Zdot; /* Ydot = Zdot + shift*Y */ member
1134 Vec *Y = ros->Y, Ydot = ros->Ydot, Zdot = ros->Zdot, Zstage = ros->Zstage; in TSStep_RosW() local
1165 PetscCall(VecZeroEntries(Zdot)); in TSStep_RosW()
1166 PetscCall(VecMAXPY(Zdot, i, w, Y)); in TSStep_RosW()
1190 PetscCall(VecAXPY(Y[i], -1.0, Zdot)); /*Y[i] = F(Zstage)-Zdot[=GammaInv*Y]*/ in TSStep_RosW()
1199 PetscCall(MatMult(J, Zstage, Zdot)); in TSStep_RosW()
1200 PetscCall(VecAXPY(Y[i], -1.0, Zdot)); in TSStep_RosW()
1310 PetscCall(VecDestroy(&ros->Zdot)); in TSReset_RosW()
1316 static PetscErrorCode TSRosWGetVecs(TS ts, DM dm, Vec *Ydot, Vec *Zdot, Vec *Ystage, Vec *Zstage) in TSRosWGetVecs() argument
1325 if (Zdot) { in TSRosWGetVecs()
1326 if (dm && dm != ts->dm) PetscCall(DMGetNamedGlobalVector(dm, "TSRosW_Zdot", Zdot)); in TSRosWGetVecs()
1327 else *Zdot = rw->Zdot; in TSRosWGetVecs()
1340 static PetscErrorCode TSRosWRestoreVecs(TS ts, DM dm, Vec *Ydot, Vec *Zdot, Vec *Ystage, Vec *Zstag… in TSRosWRestoreVecs() argument
1346 if (Zdot) { in TSRosWRestoreVecs()
1347 if (dm && dm != ts->dm) PetscCall(DMRestoreNamedGlobalVector(dm, "TSRosW_Zdot", Zdot)); in TSRosWRestoreVecs()
1367 Vec Ydot, Zdot, Ystage, Zstage; in DMRestrictHook_TSRosW() local
1371 PetscCall(TSRosWGetVecs(ts, fine, &Ydot, &Ystage, &Zdot, &Zstage)); in DMRestrictHook_TSRosW()
1377 PetscCall(MatRestrict(restrct, Zdot, Zdotc)); in DMRestrictHook_TSRosW()
1381 PetscCall(TSRosWRestoreVecs(ts, fine, &Ydot, &Ystage, &Zdot, &Zstage)); in DMRestrictHook_TSRosW()
1395 Vec Ydot, Zdot, Ystage, Zstage; in DMSubDomainRestrictHook_TSRosW() local
1399 PetscCall(TSRosWGetVecs(ts, dm, &Ydot, &Ystage, &Zdot, &Zstage)); in DMSubDomainRestrictHook_TSRosW()
1408 PetscCall(VecScatterBegin(gscat, Zdot, Zdots, INSERT_VALUES, SCATTER_FORWARD)); in DMSubDomainRestrictHook_TSRosW()
1409 PetscCall(VecScatterEnd(gscat, Zdot, Zdots, INSERT_VALUES, SCATTER_FORWARD)); in DMSubDomainRestrictHook_TSRosW()
1414 PetscCall(TSRosWRestoreVecs(ts, dm, &Ydot, &Ystage, &Zdot, &Zstage)); in DMSubDomainRestrictHook_TSRosW()
1422 Vec Ydot, Zdot, Ystage, Zstage; in SNESTSFormFunction_RosW() local
1428 PetscCall(TSRosWGetVecs(ts, dm, &Ydot, &Zdot, &Ystage, &Zstage)); in SNESTSFormFunction_RosW()
1429 PetscCall(VecWAXPY(Ydot, shift, U, Zdot)); /* Ydot = shift*U + Zdot */ in SNESTSFormFunction_RosW()
1435 PetscCall(TSRosWRestoreVecs(ts, dm, &Ydot, &Zdot, &Ystage, &Zstage)); in SNESTSFormFunction_RosW()
1442 Vec Ydot, Zdot, Ystage, Zstage; in SNESTSFormJacobian_RosW() local
1449 PetscCall(TSRosWGetVecs(ts, dm, &Ydot, &Zdot, &Ystage, &Zstage)); in SNESTSFormJacobian_RosW()
1454 PetscCall(TSRosWRestoreVecs(ts, dm, &Ydot, &Zdot, &Ystage, &Zstage)); in SNESTSFormJacobian_RosW()
1480 PetscCall(VecDuplicate(ts->vec_sol, &ros->Zdot)); in TSSetUp_RosW()