opm-common
opm-common copied to clipboard
Throw for complex std::pow results in CO2::vaporPressure
std::pow may throw for negative base and non-integer exponent, g++ doesn't. Here we add an explicit throw.
jenkins build this please
The safeguard added here is fine. I will add a fix that make sure it never is thrown. I suggest we merge that fix first.
jenkins build this please
This can be merged when the small nitpicks have been fixed.
It seems to me that the solution actually goes to zero when we approach zero from the positive side. Maybe we should just use 0 values <=0?