fix out of bound in CO2.hpp
This commit is contained in:
parent
bc70036de5
commit
f528b2c33f
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user