WellProdIndexCalculator: optionally instantiate for float

This commit is contained in:
Arne Morten Kvarving 2024-04-12 13:11:09 +02:00
parent f1621e1a2b
commit 4264e21135

View File

@ -152,10 +152,17 @@ Scalar Opm::wellProdIndStandard(const WellProdIndexCalculator<Scalar>& wellPICal
return std::accumulate(connPI.begin(), connPI.end(), 0.0); return std::accumulate(connPI.begin(), connPI.end(), 0.0);
} }
template class Opm::WellProdIndexCalculator<double>; #define INSTANTIATE_TYPE(T) \
template std::vector<double> template class Opm::WellProdIndexCalculator<T>; \
Opm::connectionProdIndStandard(const WellProdIndexCalculator<double>&, template std::vector<T> \
const std::vector<double>&); Opm::connectionProdIndStandard(const WellProdIndexCalculator<T>&, \
template double const std::vector<T>&); \
Opm::wellProdIndStandard(const WellProdIndexCalculator<double>&, template T \
const std::vector<double>&); Opm::wellProdIndStandard(const WellProdIndexCalculator<T>&, \
const std::vector<T>&);
INSTANTIATE_TYPE(double)
#if FLOW_INSTANTIATE_FLOAT
INSTANTIATE_TYPE(float)
#endif