From 54bad9e593a52fe1bcd0afa35ed05ac10142f87d Mon Sep 17 00:00:00 2001 From: Timo Koch <timo.koch@iws.uni-stuttgart.de> Date: Thu, 5 Jul 2018 10:58:06 +0200 Subject: [PATCH] [fluidstate] Remove requirement of having checkDefined. Values should always be defined. --- dumux/porousmediumflow/mpnc/volumevariables.hh | 6 ------ test/material/fluidsystems/checkfluidsystem.hh | 3 --- 2 files changed, 9 deletions(-) diff --git a/dumux/porousmediumflow/mpnc/volumevariables.hh b/dumux/porousmediumflow/mpnc/volumevariables.hh index 195ff321c2..cb9138619b 100644 --- a/dumux/porousmediumflow/mpnc/volumevariables.hh +++ b/dumux/porousmediumflow/mpnc/volumevariables.hh @@ -244,9 +244,6 @@ public: Scalar h = FluidSystem::enthalpy(fluidState, paramCache, phaseIdx); fluidState.setEnthalpy(phaseIdx, h); } - - // make sure the quantities in the fluid state are well-defined - fluidState.checkDefined(); } /*! @@ -686,9 +683,6 @@ public: Scalar h = FluidSystem::enthalpy(fluidState, paramCache, phaseIdx); fluidState.setEnthalpy(phaseIdx, h); } - - // make sure the quantities in the fluid state are well-defined - fluidState.checkDefined(); } /*! diff --git a/test/material/fluidsystems/checkfluidsystem.hh b/test/material/fluidsystems/checkfluidsystem.hh index 70f73d2b2a..d2c1428bd8 100644 --- a/test/material/fluidsystems/checkfluidsystem.hh +++ b/test/material/fluidsystems/checkfluidsystem.hh @@ -263,9 +263,6 @@ int checkFluidState(const BaseFluidState &fs) BaseFluidState tmpFs(fs); tmpFs = fs; - // a fluid state must provide a checkDefined() method - fs.checkDefined(); - // output strings std::string collectedErrors; std::string collectedWarnings; -- GitLab