upgrade to use julia1.7
new ClimaCore version 0.5
checking bounds in CI
We have a bounds error in the init_aux functions. In general, we need initial condition functions as a function of space, but to work with the state vector structure, we have it set up that they return NamedTuples. This nicely makes a named tuple of Fields when we pass it z as a field, for example. But when the model type indicates no variables to be added, returning an empty NamedTuple does not work.
julia> function foo(z::ft) where {ft <: AbstractFloat}
return (;)
end
foo (generic function with 2 methods)
julia> foo.(zc)
ERROR: BoundsError: attempt to access ClimaCore.DataLayouts.VF{NamedTuple{(), Tuple{}}, Matrix{Float64}} at index [1]
upgrade to use julia1.7 new ClimaCore version 0.5 checking bounds in CI
We have a bounds error in the
init_aux
functions. In general, we need initial condition functions as a function of space, but to work with the state vector structure, we have it set up that they return NamedTuples. This nicely makes a named tuple ofField
s when we pass itz
as a field, for example. But when the model type indicates no variables to be added, returning an empty NamedTuple does not work.