You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using Revise, Test
import ClimaCore
if!(@isdefined TU)
include(joinpath(pkgdir(ClimaCore), "test", "TestUtilities", "TestUtilities.jl"))
import.TestUtilities as TU
endfoo(a, c) = a;
FT_broadcast_allocating!(a) =FT_broadcast_allocating!(a, eltype(a));
functionFT_broadcast_allocating!(a, ::Type{FT}) where FT
@. a =foo(a, false|| a <FT(1))
# @. a = foo(a, a < FT(1)) # unexpected passreturnnothingend;
space = TU.CenterExtrudedFiniteDifferenceSpace(Float32);
a = ClimaCore.Fields.level(fill(Float32(0), space), 1);
FT_broadcast_allocating!(a) # compile first
p_allocated =@allocatedFT_broadcast_allocating!(a)
@test_broken p_allocated ==0
The text was updated successfully, but these errors were encountered:
MWE:
The text was updated successfully, but these errors were encountered: