diff --git a/tutorial/ex3/components/mycompressiblecomponent.hh b/tutorial/ex3/components/mycompressiblecomponent.hh index 0e65ac440eafe9f7b968fe4fb68fdd09d9c95d6a..c2e7b2e2ab9fd7d6579124dbbc092e9b7063e39b 100644 --- a/tutorial/ex3/components/mycompressiblecomponent.hh +++ b/tutorial/ex3/components/mycompressiblecomponent.hh @@ -56,18 +56,15 @@ public: * \brief Returns true if the liquid phase is assumed to be compressible */ static constexpr bool liquidIsCompressible() - { - // TODO: replace the line below by a meaningful return statement - DUNE_THROW(Dune::NotImplemented, "Todo: implement liquidIsCompressible()"); - } + { true; } /*! * \brief The molar mass in \f$\mathrm{[kg/mol]}\f$ of the component. */ static Scalar molarMass() { - // TODO: replace the line below by a meaningful return statement - DUNE_THROW(Dune::NotImplemented, "Todo: implement molar mass"); + // TODO: replace the line below by a meaningful return statement + DUNE_THROW(Dune::NotImplemented, "Todo: implement molar mass"); } /*! diff --git a/tutorial/ex3/components/myincompressiblecomponent.hh b/tutorial/ex3/components/myincompressiblecomponent.hh index b37266ceacaf21f9554cdf74809bbff55bbc3dba..b1754924308d3b669ba82e38f090c1cc4a4b347e 100644 --- a/tutorial/ex3/components/myincompressiblecomponent.hh +++ b/tutorial/ex3/components/myincompressiblecomponent.hh @@ -54,10 +54,7 @@ public: * \brief Returns true if the liquid phase is assumed to be compressible */ static constexpr bool liquidIsCompressible() - { - // TODO: replace the line below by a meaningful return statement - DUNE_THROW(Dune::NotImplemented, "Todo: implement liquidIsCompressible()"); - } + { return false; } /*! * \brief The molar mass in \f$\mathrm{[kg/mol]}\f$ of the component.