diff --git a/opm/simulators/wells/StandardWellConnections.cpp b/opm/simulators/wells/StandardWellConnections.cpp index adae2d548..b36444f2e 100644 --- a/opm/simulators/wells/StandardWellConnections.cpp +++ b/opm/simulators/wells/StandardWellConnections.cpp @@ -43,8 +43,8 @@ namespace Opm { -template -StandardWellConnections:: +template +StandardWellConnections:: StandardWellConnections(const WellInterfaceIndices& well) : well_(well) , perf_densities_(well.numPerfs()) @@ -52,8 +52,8 @@ StandardWellConnections(const WellInterfaceIndices& { } -template -void StandardWellConnections:: +template +void StandardWellConnections:: computePressureDelta() { // Algorithm: @@ -88,8 +88,8 @@ computePressureDelta() well_.parallelWellInfo().partialSumPerfValues(beg, end); } -template -void StandardWellConnections:: +template +void StandardWellConnections:: computeDensities(const std::vector& perfComponentRates, const Properties& props, DeferredLogger& deferred_logger) @@ -285,8 +285,8 @@ computeDensities(const std::vector& perfComponentRates, } } -template -void StandardWellConnections:: +template +void StandardWellConnections:: computePropertiesForPressures(const WellState& well_state, const std::function& getTemperature, const std::function& getSaltConcentration, @@ -419,8 +419,8 @@ computePropertiesForPressures(const WellState& well_state, } } -template -void StandardWellConnections:: +template +void StandardWellConnections:: computeProperties(const WellState& well_state, const std::function& invB, const std::function& mobility, @@ -514,9 +514,9 @@ computeProperties(const WellState& well_state, this->computePressureDelta(); } -template -typename StandardWellConnections::Eval -StandardWellConnections:: +template +typename StandardWellConnections::Eval +StandardWellConnections:: connectionRateBrine(double& rate, const double vap_wat_rate, const std::vector& cq_s, @@ -539,9 +539,9 @@ connectionRateBrine(double& rate, return well_.restrictEval(cq_s_sm); } -template -typename StandardWellConnections::Eval -StandardWellConnections:: +template +typename StandardWellConnections::Eval +StandardWellConnections:: connectionRateFoam(const std::vector& cq_s, const std::variant& foamConcentration, const Phase transportPhase, @@ -578,11 +578,11 @@ connectionRateFoam(const std::vector& cq_s, return well_.restrictEval(cq_s_foam); } -template -std::tuple::Eval, - typename StandardWellConnections::Eval, - typename StandardWellConnections::Eval> -StandardWellConnections:: +template +std::tuple::Eval, + typename StandardWellConnections::Eval, + typename StandardWellConnections::Eval> +StandardWellConnections:: connectionRatesMICP(const std::vector& cq_s, const std::variant& microbialConcentration, const std::variant& oxygenConcentration, @@ -615,10 +615,10 @@ connectionRatesMICP(const std::vector& cq_s, well_.restrictEval(cq_s_urea)}; } -template -std::tuple::Eval, - typename StandardWellConnections::EvalWell> -StandardWellConnections:: +template +std::tuple::Eval, + typename StandardWellConnections::EvalWell> +StandardWellConnections:: connectionRatePolymer(double& rate, const std::vector& cq_s, const std::variant& polymerConcentration) const @@ -639,10 +639,10 @@ connectionRatePolymer(double& rate, return {well_.restrictEval(cq_s_poly), cq_s_poly}; } -template -std::tuple::Eval, - typename StandardWellConnections::EvalWell> -StandardWellConnections:: +template +std::tuple::Eval, + typename StandardWellConnections::EvalWell> +StandardWellConnections:: connectionRatezFraction(double& rate, const double dis_gas_rate, const std::vector& cq_s, @@ -667,7 +667,7 @@ connectionRatezFraction(double& rate, #define INSTANCE(...) \ template class StandardWellConnections, \ - __VA_ARGS__,double>; + __VA_ARGS__>; // One phase INSTANCE(BlackOilOnePhaseIndices<0u,0u,0u,0u,false,false,0u,1u,0u>) diff --git a/opm/simulators/wells/StandardWellConnections.hpp b/opm/simulators/wells/StandardWellConnections.hpp index 7c3755d06..796766ba7 100644 --- a/opm/simulators/wells/StandardWellConnections.hpp +++ b/opm/simulators/wells/StandardWellConnections.hpp @@ -37,10 +37,11 @@ enum class Phase; template class WellInterfaceIndices; class WellState; -template +template class StandardWellConnections { public: + using Scalar = typename FluidSystem::Scalar; StandardWellConnections(const WellInterfaceIndices& well); struct Properties diff --git a/opm/simulators/wells/StandardWellEval.hpp b/opm/simulators/wells/StandardWellEval.hpp index 1ae3deff0..f6e13a925 100644 --- a/opm/simulators/wells/StandardWellEval.hpp +++ b/opm/simulators/wells/StandardWellEval.hpp @@ -48,7 +48,7 @@ class StandardWellEval { protected: using PrimaryVariables = StandardWellPrimaryVariables; - using StdWellConnections = StandardWellConnections; + using StdWellConnections = StandardWellConnections; static constexpr int Bhp = PrimaryVariables::Bhp; static constexpr int WQTotal= PrimaryVariables::WQTotal; static constexpr int numWellConservationEq = PrimaryVariables::numWellConservationEq;