diff --git a/opm/simulators/flow/ActionHandler.cpp b/opm/simulators/flow/ActionHandler.cpp index 2bec3e5eb..0524375ef 100644 --- a/opm/simulators/flow/ActionHandler.cpp +++ b/opm/simulators/flow/ActionHandler.cpp @@ -277,4 +277,8 @@ evalUDQAssignments(const unsigned episodeIdx, template class ActionHandler; +#if FLOW_INSTANTIATE_FLOAT +template class ActionHandler; +#endif + } // namespace Opm diff --git a/opm/simulators/wells/BlackoilWellModelGeneric.cpp b/opm/simulators/wells/BlackoilWellModelGeneric.cpp index f78f634a0..c37cb75e1 100644 --- a/opm/simulators/wells/BlackoilWellModelGeneric.cpp +++ b/opm/simulators/wells/BlackoilWellModelGeneric.cpp @@ -117,7 +117,13 @@ BlackoilWellModelGeneric(Schedule& schedule, const auto& node_pressures = eclState.getRestartNetworkPressures(); if (node_pressures.has_value()) { - this->node_pressures_ = node_pressures.value(); + if constexpr (std::is_same_v) { + this->node_pressures_ = node_pressures.value(); + } else { + for (const auto& it : node_pressures.value()) { + this->node_pressures_[it.first] = it.second; + } + } } } @@ -1862,4 +1868,8 @@ updateInjFCMult(DeferredLogger& deferred_logger) template class BlackoilWellModelGeneric; +#if FLOW_INSTANTIATE_FLOAT +template class BlackoilWellModelGeneric; +#endif + } diff --git a/opm/simulators/wells/BlackoilWellModelRestart.cpp b/opm/simulators/wells/BlackoilWellModelRestart.cpp index 176387c27..498e665fb 100644 --- a/opm/simulators/wells/BlackoilWellModelRestart.cpp +++ b/opm/simulators/wells/BlackoilWellModelRestart.cpp @@ -269,4 +269,8 @@ loadRestartData(const data::Wells& rst_wells, template class BlackoilWellModelRestart; +#if FLOW_INSTANTIATE_FLOAT +template class BlackoilWellModelRestart; +#endif + } // namespace Opm