mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #2343 from joakim-hove/move-rstconfig
RestartConfig has moved from EclipseState to Schedule
This commit is contained in:
@@ -327,7 +327,7 @@ public:
|
||||
}
|
||||
|
||||
if (!externalEclState_) {
|
||||
internalEclState_.reset(new Opm::EclipseState(*deck_, *parseContext_, *errorGuard_));
|
||||
internalEclState_.reset(new Opm::EclipseState(*deck_));
|
||||
eclState_ = internalEclState_.get();
|
||||
}
|
||||
else {
|
||||
@@ -375,7 +375,7 @@ public:
|
||||
// written to disk (every N report step)
|
||||
int outputInterval = EWOMS_GET_PARAM(TypeTag, int, EclOutputInterval);
|
||||
if (outputInterval >= 0)
|
||||
eclState_->getRestartConfig().overrideRestartWriteInterval(outputInterval);
|
||||
schedule().restart().overrideRestartWriteInterval(outputInterval);
|
||||
}
|
||||
|
||||
/*!
|
||||
|
||||
@@ -219,7 +219,7 @@ public:
|
||||
const Opm::SummaryConfig summaryConfig = simulator_.vanguard().summaryConfig();
|
||||
|
||||
// Only output RESTART_AUXILIARY asked for by the user.
|
||||
const Opm::RestartConfig& restartConfig = simulator_.vanguard().eclState().getRestartConfig();
|
||||
const Opm::RestartConfig& restartConfig = simulator_.vanguard().schedule().restart();
|
||||
std::map<std::string, int> rstKeywords = restartConfig.getRestartKeywords(reportStepNum);
|
||||
for (auto& keyValue: rstKeywords) {
|
||||
keyValue.second = restartConfig.getKeyword(keyValue.first, reportStepNum);
|
||||
|
||||
Reference in New Issue
Block a user