diff --git a/flowexperimental/BlackOilIntensiveQuantitiesGlobalIndex.hpp b/flowexperimental/BlackOilIntensiveQuantitiesGlobalIndex.hpp index 603820b8b9..f8419fe269 100644 --- a/flowexperimental/BlackOilIntensiveQuantitiesGlobalIndex.hpp +++ b/flowexperimental/BlackOilIntensiveQuantitiesGlobalIndex.hpp @@ -321,7 +321,7 @@ public: if (!FluidSystem::phaseIsActive(phaseIdx)) { continue; } - computeInverseFormationVolumeFactorAndViscosity(fluidState_, phaseIdx, pvtRegionIdx, SoMax); + computeInverseFormationVolumeFactorAndViscosity(fluidState_, phaseIdx, pvtRegionIdx); } Valgrind::CheckDefined(mobility_); @@ -443,8 +443,7 @@ public: void computeInverseFormationVolumeFactorAndViscosity(FluidState& fluidState, unsigned phaseIdx, - unsigned pvtRegionIdx, - const Evaluation& SoMax){ + unsigned pvtRegionIdx) { OPM_TIMEBLOCK_LOCAL(UpdateInverseFormationFactorAndViscosity); { OPM_TIMEBLOCK_LOCAL(UpdateFormationFactor); diff --git a/opm/simulators/wells/StandardWell.hpp b/opm/simulators/wells/StandardWell.hpp index 529feee18e..0bd5df8db7 100644 --- a/opm/simulators/wells/StandardWell.hpp +++ b/opm/simulators/wells/StandardWell.hpp @@ -450,8 +450,7 @@ namespace Opm DeferredLogger& deferred_logger) const; private: - Eval connectionRateEnergy(const Scalar maxOilSaturation, - const std::vector& cq_s, + Eval connectionRateEnergy(const std::vector& cq_s, const IntensiveQuantities& intQuants, DeferredLogger& deferred_logger) const; }; diff --git a/opm/simulators/wells/StandardWell_impl.hpp b/opm/simulators/wells/StandardWell_impl.hpp index 24ddd9032b..33908c299b 100644 --- a/opm/simulators/wells/StandardWell_impl.hpp +++ b/opm/simulators/wells/StandardWell_impl.hpp @@ -542,8 +542,7 @@ namespace Opm if constexpr (has_energy) { connectionRates[perf][Indices::contiEnergyEqIdx] = - connectionRateEnergy(simulator.problem().maxOilSaturation(cell_idx), - cq_s, intQuants, deferred_logger); + connectionRateEnergy(cq_s, intQuants, deferred_logger); } if constexpr (has_polymer) { @@ -2545,8 +2544,7 @@ namespace Opm template typename StandardWell::Eval StandardWell:: - connectionRateEnergy(const Scalar maxOilSaturation, - const std::vector& cq_s, + connectionRateEnergy(const std::vector& cq_s, const IntensiveQuantities& intQuants, DeferredLogger& deferred_logger) const {