Merge pull request #440 from totto82/fixIdxSalinity

fix the index into salinity in the BrineCo2Pvt model
This commit is contained in:
Atgeirr Flø Rasmussen 2021-01-13 15:01:54 +01:00 committed by GitHub
commit bc70036de5

View File

@ -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;