From 55f571a6d8d72d75a7685093c909fbc00cd7e64d Mon Sep 17 00:00:00 2001 From: Gabriele Bozzola Date: Wed, 4 Oct 2023 15:33:58 -0700 Subject: [PATCH] Remove AxisTensor patch In light of https://github.com/CliMA/ClimaCore.jl/commit/d85aa5603a4cf61c0008c286fb1ff5f94b3b2e41 --- src/solver/types.jl | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/solver/types.jl b/src/solver/types.jl index 4157f6f1f03..b03cb9a393b 100644 --- a/src/solver/types.jl +++ b/src/solver/types.jl @@ -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)