mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Fixup THPRESPR -> THPESHPR
This commit is contained in:
parent
bdbf417887
commit
400f505a2c
@ -211,7 +211,7 @@ public:
|
|||||||
restartValue.addExtra("OPMEXTRA", std::vector<double>(1, nextStepSize));
|
restartValue.addExtra("OPMEXTRA", std::vector<double>(1, nextStepSize));
|
||||||
|
|
||||||
if (simConfig.useThresholdPressure())
|
if (simConfig.useThresholdPressure())
|
||||||
restartValue.addExtra("THPRESPR", Opm::UnitSystem::measure::pressure, simulator_.problem().thresholdPressure().data());
|
restartValue.addExtra("THRESHPR", Opm::UnitSystem::measure::pressure, simulator_.problem().thresholdPressure().data());
|
||||||
|
|
||||||
// first, create a tasklet to write the data for the current time step to disk
|
// first, create a tasklet to write the data for the current time step to disk
|
||||||
auto eclWriteTasklet = std::make_shared<EclWriteTasklet>(*eclIO_,
|
auto eclWriteTasklet = std::make_shared<EclWriteTasklet>(*eclIO_,
|
||||||
@ -294,7 +294,7 @@ public:
|
|||||||
restartValue.addExtra("OPMEXTRA", std::vector<double>(1, nextStepSize));
|
restartValue.addExtra("OPMEXTRA", std::vector<double>(1, nextStepSize));
|
||||||
|
|
||||||
if (simConfig.useThresholdPressure())
|
if (simConfig.useThresholdPressure())
|
||||||
restartValue.addExtra("THPRESPR", Opm::UnitSystem::measure::pressure, simulator_.problem().thresholdPressure().data());
|
restartValue.addExtra("THRESHPR", Opm::UnitSystem::measure::pressure, simulator_.problem().thresholdPressure().data());
|
||||||
|
|
||||||
// first, create a tasklet to write the data for the current time step to disk
|
// first, create a tasklet to write the data for the current time step to disk
|
||||||
auto eclWriteTasklet = std::make_shared<EclWriteTasklet>(*eclIO_,
|
auto eclWriteTasklet = std::make_shared<EclWriteTasklet>(*eclIO_,
|
||||||
@ -335,7 +335,7 @@ public:
|
|||||||
|
|
||||||
const auto& inputThpres = eclState().getSimulationConfig().getThresholdPressure();
|
const auto& inputThpres = eclState().getSimulationConfig().getThresholdPressure();
|
||||||
std::vector<Opm::RestartKey> extraKeys = {{"OPMEXTRA", Opm::UnitSystem::measure::identity, false},
|
std::vector<Opm::RestartKey> extraKeys = {{"OPMEXTRA", Opm::UnitSystem::measure::identity, false},
|
||||||
{"THPRESPR", Opm::UnitSystem::measure::pressure, inputThpres.active()}};
|
{"THRESHPR", Opm::UnitSystem::measure::pressure, inputThpres.active()}};
|
||||||
|
|
||||||
unsigned episodeIdx = simulator_.episodeIndex();
|
unsigned episodeIdx = simulator_.episodeIndex();
|
||||||
const auto& gridView = simulator_.vanguard().gridView();
|
const auto& gridView = simulator_.vanguard().gridView();
|
||||||
@ -350,7 +350,7 @@ public:
|
|||||||
if (inputThpres.active()) {
|
if (inputThpres.active()) {
|
||||||
Simulator& mutableSimulator = const_cast<Simulator&>(simulator_);
|
Simulator& mutableSimulator = const_cast<Simulator&>(simulator_);
|
||||||
auto& thpres = mutableSimulator.problem().thresholdPressure();
|
auto& thpres = mutableSimulator.problem().thresholdPressure();
|
||||||
const auto& thpresValues = restartValues.getExtra("THPRESPR");
|
const auto& thpresValues = restartValues.getExtra("THRESHPR");
|
||||||
thpres.setFromRestart(thpresValues);
|
thpres.setFromRestart(thpresValues);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user