Skip to content

Commit

Permalink
Merge pull request #1658 from CliMA/ck/broadcast_fv
Browse files Browse the repository at this point in the history
Dont use .style for FieldVectorStyle
  • Loading branch information
charleskawczynski authored Apr 4, 2024
2 parents fa66e35 + fa485b4 commit 30b823c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
ClimaCore.jl Release Notes
========================

main
-------

- ![][badge-🐛bugfix] We fixed some fieldvector broadcasting on Julia 1.9. PR [#1658](https://github.com/CliMA/ClimaCore.jl/pull/1658).

v0.13.3
-------

Expand Down
2 changes: 1 addition & 1 deletion src/Fields/fieldvector.jl
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ function Base.Broadcast.instantiate(
Base.Broadcast.check_broadcast_axes(axes, bc.args...)
end
end
return Base.Broadcast.Broadcasted(bc.style, bc.f, bc.args, axes)
return Base.Broadcast.Broadcasted{FieldVectorStyle}(bc.f, bc.args, axes)
end

@inline function Base.copyto!(
Expand Down

0 comments on commit 30b823c

Please sign in to comment.