Preserve SCHEDULE Section AQUFLUX Objects Across Report Steps

This is in preparation of adding support for writing those objects
to the restart file.  We need a consistent view of active aquifers
for that purpose.
This commit is contained in:
Bård Skaflestad 2023-03-03 10:24:55 +01:00
parent 7b12d23d5d
commit 325228058b
2 changed files with 2 additions and 3 deletions

View File

@ -137,8 +137,8 @@ namespace {
// auto& aqufluxs = this->snapshots.back().aqufluxs;
auto& aqufluxs = this->snapshots.back().aqufluxs;
for (const auto& record : handlerContext.keyword) {
SingleAquiferFlux aquifer(record);
aqufluxs.insert({aquifer.id, aquifer});
const auto aquifer = SingleAquiferFlux { record };
aqufluxs.insert_or_assign(aquifer.id, aquifer);
}
}

View File

@ -115,7 +115,6 @@ ScheduleState::ScheduleState(const ScheduleState& src, const time_point& start_t
this->m_wellgroup_events.reset();
this->m_geo_keywords.clear();
this->target_wellpi.clear();
this->aqufluxs.clear();
this->m_save_step = false;
auto next_rft = this->rft_config().next();