change for predictor-corrector and adams-moulton3

This commit is contained in:
hamidrezanorouzi
2022-10-25 19:30:57 +03:30
parent db0da79a72
commit 490577dcd2
27 changed files with 869 additions and 121 deletions

View File

@ -60,7 +60,7 @@ pFlow::AdamsBashforth3::AdamsBashforth3
AB3History({zero3,zero3})))
{
}
bool pFlow::AdamsBashforth3::predict
@ -94,6 +94,13 @@ bool pFlow::AdamsBashforth3::correct
return true;
}
bool pFlow::AdamsBashforth3::setInitialVals(
const int32IndexContainer& newIndices,
const realx3Vector& y)
{
return true;
}
bool pFlow::AdamsBashforth3::intAll(
real dt,
realx3Vector_D& y,

View File

@ -117,6 +117,20 @@ public:
realx3Vector_D & y,
realx3Vector_D& dy) override;
bool setInitialVals(
const int32IndexContainer& newIndices,
const realx3Vector& y) override;
bool needSetInitialVals()const override
{
return false;
}
uniquePtr<integration> clone()const override
{
return makeUnique<AdamsBashforth3>(*this);
}
bool intAll(real dt,
realx3Vector_D& y,
realx3Vector_D& dy,