-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
When running the land simulation with the NaN
callback, the SYPD suddenly drops.
This is because we use scalar indexing and there is most likely allocations when making the new field.
ClimaLand.jl/src/shared_utilities/utils.jl
Lines 598 to 602 in ccc3115
ClimaComms.allowscalar(ClimaComms.device()) do | |
num_nans = | |
isnothing(mask) ? Int(sum(isnan.(parent(state)))) : | |
Int(sum(isnan.(parent(state)) .* parent(mask))) | |
end |
Metadata
Metadata
Assignees
Labels
No labels