mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
use accessor methods to access the value and derivatives of Evaluation objects
This commit is contained in:
@@ -50,7 +50,7 @@ inline double zeroIfNan(const double& value) {
|
||||
* Returns zero if input value is NaN
|
||||
*/
|
||||
inline double zeroIfNan(const EvalWell& value) {
|
||||
return (std::isnan(value.value)) ? 0.0 : value.value;
|
||||
return (std::isnan(value.value())) ? 0.0 : value.value();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user