fix out of bound in CO2.hpp

This commit is contained in:
Tor Harald Sandve 2021-01-18 10:12:30 +01:00
parent bc70036de5
commit f528b2c33f

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;