Merge pull request #442 from totto82/co2outofidx

fix out of bound in CO2.hpp

Closes #441.
This commit is contained in:
Bård Skaflestad 2021-01-19 12:39:04 +01:00 committed by GitHub
commit d0bc4a2c05

View File

@ -138,7 +138,7 @@ public:
// this is on page 1524 of the reference
Evaluation exponent = 0;
Evaluation Tred = T/criticalTemperature();
for (int i = 0; i < 5; ++i)
for (int i = 0; i < 4; ++i)
exponent += a[i]*Opm::pow(1 - Tred, t[i]);
exponent *= 1.0/Tred;