Merge pull request #442 from totto82/co2outofidx
fix out of bound in CO2.hpp Closes #441.
This commit is contained in:
commit
d0bc4a2c05
@ -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