We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 411d424 + 0ec3d04 commit 8abf9d2Copy full SHA for 8abf9d2
test/restart.jl
@@ -72,8 +72,8 @@ function _error(
72
# There are some parameters, e.g. Obukhov length, for which Inf
73
# is a reasonable value (implying a stability parameter in the neutral boundary layer
74
# regime, for instance). We account for such instances with the `isfinite` function.
75
- arr1 = isfinite.(Array(arr1))
76
- arr2 = isfinite.(Array(arr2))
+ arr1 = Array(arr1) .* isfinite.(Array(arr1))
+ arr2 = Array(arr2) .* isfinite.(Array(arr2))
77
diff = abs.(arr1 .- arr2)
78
denominator = abs.(arr1)
79
error = ifelse.(denominator .> ABS_TOL, diff ./ denominator, diff)
0 commit comments