From a0d0666520c1317bee42662cf6f734863b287300 Mon Sep 17 00:00:00 2001
From: Timo Koch <timo.koch@iws.uni-stuttgart.de>
Date: Mon, 26 Nov 2018 12:55:12 +0100
Subject: [PATCH] [1pnc][doc] Add comment for setting mass fractions

---
 dumux/porousmediumflow/1pnc/volumevariables.hh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dumux/porousmediumflow/1pnc/volumevariables.hh b/dumux/porousmediumflow/1pnc/volumevariables.hh
index 5015c9b4b8..278d014210 100644
--- a/dumux/porousmediumflow/1pnc/volumevariables.hh
+++ b/dumux/porousmediumflow/1pnc/volumevariables.hh
@@ -158,6 +158,8 @@ public:
         }
         else
         {
+            // for mass fractions we only have to set numComponents-1 mass fractions
+            // the fluid state will internally compute the remaining mass fraction
             for (int compIdx = 1; compIdx < numFluidComps; ++compIdx)
                 fluidState.setMassFraction(0, compIdx, priVars[compIdx]);
         }
-- 
GitLab