mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-12 17:31:55 -06:00
Retag TEMP Array as OPM_EXTENDED When Needed
The AUXILIARY category is deprecated and will be removed at some point. As of right now, the OPM_EXTENDED category fills the same role but with a more descriptive name.
This commit is contained in:
parent
54fc98bfb7
commit
359079dae9
@ -811,15 +811,15 @@ assignToSolution(data::Solution& sol)
|
||||
for (const auto& entry : data)
|
||||
doInsert(entry);
|
||||
|
||||
if (!temperature_.empty()) {
|
||||
if (enableEnergy_)
|
||||
sol.insert("TEMP", UnitSystem::measure::temperature, std::move(temperature_), data::TargetType::RESTART_SOLUTION);
|
||||
else {
|
||||
// Flow allows for initializing of non-constant initial temperature.
|
||||
// For output of this temperature for visualization and restart set --enable-opm-restart=true
|
||||
assert(enableTemperature_);
|
||||
sol.insert("TEMP", UnitSystem::measure::temperature, std::move(temperature_), data::TargetType::RESTART_AUXILIARY);
|
||||
}
|
||||
if ((this->enableEnergy_ || this->enableTemperature_) &&
|
||||
! this->temperature_.empty())
|
||||
{
|
||||
const auto tag = this->enableEnergy_
|
||||
? data::TargetType::RESTART_SOLUTION
|
||||
: data::TargetType::RESTART_OPM_EXTENDED;
|
||||
|
||||
sol.insert("TEMP", UnitSystem::measure::temperature,
|
||||
std::move(this->temperature_), tag);
|
||||
}
|
||||
|
||||
if (FluidSystem::phaseIsActive(waterPhaseIdx) &&
|
||||
|
Loading…
Reference in New Issue
Block a user