use accessor methods to access the value and derivatives of Evaluation objects

This commit is contained in:
Andreas Lauser
2016-10-27 17:29:29 +02:00
parent 88e2641f1a
commit a773fd4c85
6 changed files with 58 additions and 58 deletions

View File

@@ -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();
}