Merge pull request #6387 from jakobtorben/remove_virtual_recycleFirstIterationStorage

Remove virtual/override pattern in recycleFirstIterationStorage
This commit is contained in:
Atgeirr Flø Rasmussen authored and GitHub committed 2025-08-07 16:47:54 +02:00
commit 1b491b4788
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;
+1 -1
View File
@@ -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) &&