Skip to content

Commit 1f51ca3

Browse files
Merge pull request #1984 from CliMA/ck/fix_inference
Fix inference for column broadcasting
2 parents 4369a5a + 1387b6d commit 1f51ca3

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

NEWS.md

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ ClimaCore.jl Release Notes
44
main
55
-------
66

7+
v0.14.14
8+
-------
9+
10+
- Inference was fixed for some broadcast expressions involving columns PR [#1984](https://github.com/CliMA/ClimaCore.jl/pull/1984).
11+
712
v0.14.13
813
-------
914

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ClimaCore"
22
uuid = "d414da3d-4745-48bb-8d80-42e94e092884"
33
authors = ["CliMA Contributors <clima-software@caltech.edu>"]
4-
version = "0.14.13"
4+
version = "0.14.14"
55

66
[deps]
77
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"

src/DataLayouts/broadcast.jl

+2-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,8 @@ Base.@propagate_inbounds function column(
252252
) where {Nv, N, DS <: Union{Data1DXStyle{Nv, N}, Data2DXStyle{Nv, N}}}
253253
_args = column_args(bc.args, inds...)
254254
_axes = nothing
255-
Base.Broadcast.Broadcasted{DataColumnStyle(DS)}(bc.f, _args, _axes)
255+
bcc = Base.Broadcast.Broadcasted{DataColumnStyle(DS)}(bc.f, _args, _axes)
256+
Base.Broadcast.instantiate(bcc)
256257
end
257258

258259
@inline function column(

test/Fields/field_opt.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ using JET
390390
ρ = Fields.Field(Float64, cspace)
391391
S = Fields.Field(Float64, cspace)
392392
ifelsekernel!(S, ρ)
393-
@test_opt broken = true ifelsekernel!(S, ρ)
393+
@test_opt ifelsekernel!(S, ρ)
394394
end
395395

396396
nothing

0 commit comments

Comments
 (0)