Skip to content

Commit 8d6245e

Browse files
committed
fix GPU compat
1 parent 49206ad commit 8d6245e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/shared_utilities/utilities.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,9 @@ end
286286
) (:info, "No NaNs found") ClimaLand.count_nans_state(Y)
287287

288288
# Add some NaNs to the fields
289-
parent(var1)[1] = NaN
290-
parent(var2)[1] = NaN
291-
parent(var2)[2] = NaN
289+
Array(parent(var1))[1] = NaN
290+
Array(parent(var2))[1] = NaN
291+
Array(parent(var2))[2] = NaN
292292

293293
# Count and log the number of NaNs in the state
294294
@test_logs (:info, "Checking NaNs in var1") (:warn, "1 NaNs found") (

0 commit comments

Comments
 (0)