fixed review comments

This commit is contained in:
hnil committed 2026-06-03 11:59:08 +02:00
1 parent 392271c24e
commit 550ca6023b
1 file changed
+6 -4
+6 -4
View File
@@ -8,9 +8,7 @@
#include <boost/test/unit_test.hpp>
#include <memory>
#include <stdexcept>
#include <tuple>
#include <vector>
struct ZeroCapillaryMaterialLaw
{
@@ -109,6 +107,11 @@ static_assert(Opm::getPropValue<TypeTag, Opm::Properties::EnergyModuleType>()
struct FluidSystemGuard
{
FluidSystemGuard(const FluidSystemGuard&) = delete;
FluidSystemGuard& operator=(const FluidSystemGuard&) = delete;
FluidSystemGuard(FluidSystemGuard&&) = delete;
FluidSystemGuard& operator=(FluidSystemGuard&&) = delete;
FluidSystemGuard()
: dissolvedGas(FluidSystem::enableDissolvedGas())
, dissolvedGasInWater(FluidSystem::enableDissolvedGasInWater())
@@ -151,7 +154,6 @@ PrimaryVariables makePrimaryVariables(PrimaryVariables::GasMeaning gasMeaning,
for (std::size_t i = 0; i < priVars.size(); ++i) {
priVars[i] = 0.0;
}
priVars.setPrimaryVarsMeaningWater(waterMeaning);
priVars.setPrimaryVarsMeaningGas(gasMeaning);
priVars.setPrimaryVarsMeaningPressure(pressureMeaning);
@@ -335,4 +337,4 @@ BOOST_AUTO_TEST_CASE(AdaptPrimaryVariablesSwitchesFromRvToGasSaturation)
BOOST_CHECK(priVars.primaryVarsMeaningPressure() == PrimaryVariables::PressureMeaning::Po);
BOOST_CHECK_CLOSE(priVars[Indices::compositionSwitchIdx], 0.8, 1e-12);
BOOST_CHECK_CLOSE(priVars[Indices::pressureSwitchIdx], 1.5e5, 1e-12);
}
}