From cf2e761de78d502b17b8f08d8581a8817bf831cc Mon Sep 17 00:00:00 2001
From: Timo Koch <timo.koch@iws.uni-stuttgart.de>
Date: Sun, 12 Aug 2018 23:01:15 +0200
Subject: [PATCH] [brineco2] Fix asserts that T,p are greater than 0

---
 dumux/material/fluidsystems/brineco2.hh | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/dumux/material/fluidsystems/brineco2.hh b/dumux/material/fluidsystems/brineco2.hh
index b0c4798bb7..6adc767dc0 100644
--- a/dumux/material/fluidsystems/brineco2.hh
+++ b/dumux/material/fluidsystems/brineco2.hh
@@ -452,8 +452,9 @@ public:
             Scalar T = fluidState.temperature(phaseIdx);
             Scalar pl = fluidState.pressure(liquidPhaseIdx);
             Scalar pg = fluidState.pressure(gasPhaseIdx);
-            assert(temperature > 0);
-            assert(pressure > 0);
+
+            assert(T > 0);
+            assert(pl > 0 && pg > 0);
 
             // calulate the equilibrium composition for given T & p
             Scalar xlH2O, xgH2O;
@@ -500,8 +501,9 @@ public:
     {
         Scalar T = fluidState.temperature(phaseIdx);
         Scalar p = fluidState.pressure(phaseIdx);
-        assert(temperature > 0);
-        assert(pressure > 0);
+
+        assert(T > 0);
+        assert(p > 0);
 
         Scalar xgH2O;
         Scalar xlCO2;
-- 
GitLab