From 711b6ef82b3f3cc1210a19110a74cdbd6a3a2fde Mon Sep 17 00:00:00 2001 From: DennisGlaeser <dennis.glaeser@iws.uni-stuttgart.de> Date: Fri, 13 Oct 2017 12:54:39 +0200 Subject: [PATCH] [tutorial][ex3] fix assertion in fluid system --- tutorial/ex3/fluidsystems/h2omycompressiblecomponent.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tutorial/ex3/fluidsystems/h2omycompressiblecomponent.hh b/tutorial/ex3/fluidsystems/h2omycompressiblecomponent.hh index b02bce3398..f92d729a3c 100644 --- a/tutorial/ex3/fluidsystems/h2omycompressiblecomponent.hh +++ b/tutorial/ex3/fluidsystems/h2omycompressiblecomponent.hh @@ -279,7 +279,8 @@ public: int compJIdx) { assert(0 <= phaseIdx && phaseIdx < numPhases); - assert(0 <= compIdx && compIdx < numComponents); + assert(0 <= compIIdx && compIIdx < numComponents); + assert(0 <= compJIdx && compJIdx < numComponents); const Scalar T = fluidState.temperature(phaseIdx); const Scalar p = fluidState.pressure(phaseIdx); -- GitLab