Skip to content

Commit 8abf9d2

Browse files
authored
Merge pull request #3669 from CliMA/gb/fix_test
Fix restart test
2 parents 411d424 + 0ec3d04 commit 8abf9d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/restart.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ function _error(
7272
# There are some parameters, e.g. Obukhov length, for which Inf
7373
# is a reasonable value (implying a stability parameter in the neutral boundary layer
7474
# regime, for instance). We account for such instances with the `isfinite` function.
75-
arr1 = isfinite.(Array(arr1))
76-
arr2 = isfinite.(Array(arr2))
75+
arr1 = Array(arr1) .* isfinite.(Array(arr1))
76+
arr2 = Array(arr2) .* isfinite.(Array(arr2))
7777
diff = abs.(arr1 .- arr2)
7878
denominator = abs.(arr1)
7979
error = ifelse.(denominator .> ABS_TOL, diff ./ denominator, diff)

0 commit comments

Comments
 (0)