From e595d160fcea581f9d8f78a15f691b93b9d2170d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dennis=20Gl=C3=A4ser?= <dennis.glaeser@iws.uni-stuttgart.de> Date: Wed, 9 Feb 2022 11:34:55 +0000 Subject: [PATCH] [geomechanics] Improve exception message --- dumux/geomechanics/elastic/volumevariables.hh | 2 +- dumux/geomechanics/poroelastic/volumevariables.hh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dumux/geomechanics/elastic/volumevariables.hh b/dumux/geomechanics/elastic/volumevariables.hh index be62ada1b7..74b0e72312 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 f3b553549a..009b32a10c 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, -- GitLab