diff --git a/dumux/geomechanics/elastic/volumevariables.hh b/dumux/geomechanics/elastic/volumevariables.hh index be62ada1b7cb325974fffe0217c872b1e947b7a0..74b0e72312288aedfdf718ecf62a9c1518b350f6 100644 --- a/dumux/geomechanics/elastic/volumevariables.hh +++ b/dumux/geomechanics/elastic/volumevariables.hh @@ -121,7 +121,7 @@ private: template< class Problem, class Element, class Scv, class ElemSol, bool enableEB = enableEnergyBalance, typename std::enable_if_t<enableEB, bool> = 0 > void setSolidTemperature_(const Problem& problem, const Element& element, const Scv& scv, const ElemSol& elemSol) - { DUNE_THROW(Dune::InvalidStateException, "Non-isothermal elastic model."); } + { DUNE_THROW(Dune::NotImplemented, "Non-isothermal elastic model."); } //! sets the temperature in the solid state for isothermal models template< class Problem, class Element, class Scv, class ElemSol, diff --git a/dumux/geomechanics/poroelastic/volumevariables.hh b/dumux/geomechanics/poroelastic/volumevariables.hh index f3b553549a6598bffa943a760414b37f04823825..009b32a10cf4775f7ccda91e7345bca9cdd7e8f6 100644 --- a/dumux/geomechanics/poroelastic/volumevariables.hh +++ b/dumux/geomechanics/poroelastic/volumevariables.hh @@ -145,7 +145,7 @@ private: template< class Problem, class Element, class Scv, class ElemSol, bool enableEB = enableEnergyBalance, typename std::enable_if_t<enableEB, bool> = 0 > void setSolidTemperature_(const Problem& problem, const Element& element, const Scv& scv, const ElemSol& elemSol) - { DUNE_THROW(Dune::InvalidStateException, "Non-isothermal elastic model."); } + { DUNE_THROW(Dune::NotImplemented, "Non-isothermal poroelastic model."); } //! sets the temperature in the solid state for isothermal models template< class Problem, class Element, class Scv, class ElemSol,