mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
BlackoilWellModelGeneric: convert input data to appropriate Scalar type
This commit is contained in:
parent
62daa16304
commit
dcbd1c7baf
@ -117,7 +117,13 @@ BlackoilWellModelGeneric(Schedule& schedule,
|
|||||||
|
|
||||||
const auto& node_pressures = eclState.getRestartNetworkPressures();
|
const auto& node_pressures = eclState.getRestartNetworkPressures();
|
||||||
if (node_pressures.has_value()) {
|
if (node_pressures.has_value()) {
|
||||||
this->node_pressures_ = node_pressures.value();
|
if constexpr (std::is_same_v<Scalar,double>) {
|
||||||
|
this->node_pressures_ = node_pressures.value();
|
||||||
|
} else {
|
||||||
|
for (const auto& it : node_pressures.value()) {
|
||||||
|
this->node_pressures_[it.first] = it.second;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user