GroupEconomicLimitsChecker: optionally instantiate for float

This commit is contained in:
Arne Morten Kvarving 2024-04-12 13:11:09 +02:00
parent 1514b466d8
commit cd9e8c8c6c

View File

@ -400,10 +400,15 @@ template<class Scalar>
void GroupEconomicLimitsChecker<Scalar>::
throwNotImplementedError(const std::string& error) const
{
const std::string msg = fmt::format("Group: {} : GECON : {} not implemented", this->group_.name(), error);
const std::string msg = fmt::format("Group: {} : GECON : {} not implemented",
this->group_.name(), error);
OPM_DEFLOG_THROW(std::runtime_error, msg, this->deferred_logger_);
}
template class GroupEconomicLimitsChecker<double>;
#if FLOW_INSTANTIATE_FLOAT
template class GroupEconomicLimitsChecker<float>;
#endif
} // namespace Opm