You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suggested change could be either checking for whether closure is a tuple eg.
tracers = (:T, :S)
if closure isa Tuple
for clo in closure
if clo isa CATKEVerticalDiffusivity
tracers =tuple(tracers..., :e)
tracer_advection = (; T = tracer_advection, S = tracer_advection, e =nothing)
endendelseif closure isa CATKEVerticalDiffusivity
tracers =tuple(tracers..., :e)
tracer_advection = (; T = tracer_advection, S = tracer_advection, e =nothing)
endend
or allowing the user to freely define tracers as a function argument.
The text was updated successfully, but these errors were encountered:
Here's a MWE:
which throws
The issue is https://github.com/CliMA/ClimaOcean.jl/blob/cd2677b91b4f1a6469fda9ded13f937333760997/src/OceanSimulations/OceanSimulations.jl#L116C1-L120C8 does not allow for
closure
being a tuple.Suggested change could be either checking for whether
closure
is a tuple eg.or allowing the user to freely define
tracers
as a function argument.The text was updated successfully, but these errors were encountered: