diff --git a/opm/autodiff/AutoDiffHelpers.hpp b/opm/autodiff/AutoDiffHelpers.hpp index 58a84d338..3bb585a50 100644 --- a/opm/autodiff/AutoDiffHelpers.hpp +++ b/opm/autodiff/AutoDiffHelpers.hpp @@ -360,6 +360,7 @@ spdiag(const AutoDiffBlock::V& d) Selector(const typename ADB::V& selection_basis, CriterionForLeftElement crit = GreaterEqualZero) { + using std::isnan; // Define selector structure. const int n = selection_basis.size(); // Over-reserving so we do not have to count.