Skip to content

Commit

Permalink
Remove AxisTensor patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Sbozzolo committed Oct 4, 2023
1 parent 641cdeb commit 55f571a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/solver/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -470,11 +470,3 @@ function AtmosConfig(;
return AtmosConfig{FT, TD, PA, C}(toml_dict, config, comms_ctx)
end
Base.eltype(::AtmosConfig{FT}) where {FT} = FT

# In order to specify C2F operator boundary conditions with 0 instead of FT(0),
# we need to tell ClimaCore how to convert AxisTensor components from Int to FT.
# TODO: Move this monkey patch to ClimaCore in the next release.
using ClimaCore.Geometry: AxisTensor, components
AxisTensor{T′, N, A, S′}(a::AxisTensor{T, N, A, S}) where {T, N, A, S, T′, S′} =
AxisTensor(axes(a), S′(components(a)))
Base.convert(::Type{AT}, a::AxisTensor) where {AT <: AxisTensor} = AT(a)

0 comments on commit 55f571a

Please sign in to comment.