From 474d8c72c5d1f0d11bb091fab610780c446e5064 Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Wed, 13 Jan 2021 12:35:04 +0100 Subject: [PATCH] fix the index into salinity in the BrineCo2Pvt model --- opm/material/fluidsystems/blackoilpvt/BrineCo2Pvt.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/material/fluidsystems/blackoilpvt/BrineCo2Pvt.hpp b/opm/material/fluidsystems/blackoilpvt/BrineCo2Pvt.hpp index 4e1af295c..a9c6cdab5 100644 --- a/opm/material/fluidsystems/blackoilpvt/BrineCo2Pvt.hpp +++ b/opm/material/fluidsystems/blackoilpvt/BrineCo2Pvt.hpp @@ -111,7 +111,7 @@ public: const Scalar MmNaCl = 58e-3; // molar mass of NaCl [kg/mol] // convert to mass fraction Brine::salinity = 1 / ( 1 + 1 / (molality*MmNaCl)); // - salinity_[numRegions] = Brine::salinity; + salinity_[regionIdx] = Brine::salinity; // set the surface conditions using the STCOND keyword Scalar T_ref = eclState.getTableManager().stCond().temperature; Scalar P_ref = eclState.getTableManager().stCond().pressure;