mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-26 07:30:08 -05:00
Merge pull request #6387 from jakobtorben/remove_virtual_recycleFirstIterationStorage
Remove virtual/override pattern in recycleFirstIterationStorage
This commit is contained in:
2 files changed
+3
-3
No files matched your search
@@ -189,7 +189,7 @@ public:
|
||||
* This is only relevant if the storage cache is enabled and is usually the case,
|
||||
* i.e., this method only needs to be overwritten in rare corner cases.
|
||||
*/
|
||||
virtual bool recycleFirstIterationStorage() const
|
||||
bool recycleFirstIterationStorage() const
|
||||
{ return true; }
|
||||
|
||||
/*!
|
||||
@@ -201,7 +201,7 @@ public:
|
||||
*/
|
||||
unsigned intensiveQuantityHistorySize() const
|
||||
{
|
||||
if (Parameters::Get<Parameters::EnableStorageCache>() && recycleFirstIterationStorage()) {
|
||||
if (Parameters::Get<Parameters::EnableStorageCache>() && asImp_().recycleFirstIterationStorage()) {
|
||||
return 1;
|
||||
}
|
||||
return 2;
|
||||
|
||||
@@ -875,7 +875,7 @@ public:
|
||||
* or DRVDT are active. Nor if the porosity is changes between timesteps
|
||||
* using a pore volume multiplier (i.e., poreVolumeMultiplier() != 1.0)
|
||||
*/
|
||||
bool recycleFirstIterationStorage() const override
|
||||
bool recycleFirstIterationStorage() const
|
||||
{
|
||||
int episodeIdx = this->episodeIndex();
|
||||
return !this->mixControls_.drsdtActive(episodeIdx) &&
|
||||
|
||||
Reference in new issue
Block a user