From db16e5b50a3069db768f808792115f74a61a7502 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dennis=20Gl=C3=A4ser?= <dennis.glaeser@iws.uni-stuttgart.de>
Date: Mon, 9 Jul 2018 21:56:19 +0200
Subject: [PATCH] [ex3_b] throw instead of returning random value

---
 .../fluidsystems/h2omycompressiblecomponent.hh                  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/exercises/exercise-fluidsystem/fluidsystems/h2omycompressiblecomponent.hh b/exercises/exercise-fluidsystem/fluidsystems/h2omycompressiblecomponent.hh
index 31f83413..01153091 100644
--- a/exercises/exercise-fluidsystem/fluidsystems/h2omycompressiblecomponent.hh
+++ b/exercises/exercise-fluidsystem/fluidsystems/h2omycompressiblecomponent.hh
@@ -228,7 +228,7 @@ public:
             /*!
              * TODO: implement the composition-dependent water density from the exercise sheet.
              */
-            return /*???*/1000.0;
+            DUNE_THROW(Dune::NotImplemented, "Todo: implement composition-dependent density");
         }
         else
         {
-- 
GitLab