diff --git a/src/Boundaries/Sediments/instant_remineralization.jl b/src/Boundaries/Sediments/instant_remineralization.jl index d3ed03bcb..e7881f089 100644 --- a/src/Boundaries/Sediments/instant_remineralization.jl +++ b/src/Boundaries/Sediments/instant_remineralization.jl @@ -92,5 +92,5 @@ sediment_fields(model::InstantRemineralisation) = (N_storage = model.fields.N_st @inbounds timestepper.Gⁿ[remineralisation_receiver(bgc)][i, j, 1] += flux * (1 - burial_efficiency) / Δz end -summary(::InstantRemineralisation) = string("Single-layer instant remineralisaiton ($FT)") +summary(::InstantRemineralisation{FT}) where {FT} = string("Single-layer instant remineralisaiton ($FT)") show(io::IO, model::InstantRemineralisation) = print(io, summary(model)) \ No newline at end of file diff --git a/src/Models/AdvectedPopulations/LOBSTER/LOBSTER.jl b/src/Models/AdvectedPopulations/LOBSTER/LOBSTER.jl index e1003fb84..915fc9dd1 100644 --- a/src/Models/AdvectedPopulations/LOBSTER/LOBSTER.jl +++ b/src/Models/AdvectedPopulations/LOBSTER/LOBSTER.jl @@ -419,12 +419,12 @@ adapt_structure(to, lobster::LOBSTER) = summary(::LOBSTER{FT, B, W}) where {FT, B, W} = string("Lodyc-DAMTP Ocean Biogeochemical Simulation Tools for Ecosystem and Resources (LOBSTER) model ($FT)") -show(io::IO, model::LOBSTER{FT, Val{B}, W}) where {FT, B, W} = print(io, string(summary(model), " \n", - " Optional components:", "\n", - " ├── Carbonates $(B[1] ? :✅ : :❌) \n", - " ├── Oxygen $(B[2] ? :✅ : :❌) \n", - " └── Variable Redfield Ratio $(B[3] ? :✅ : :❌)", "\n", - " Sinking Velocities:", "\n", show_sinking_velocities(model.sinking_velocities))) +show(io::IO, model::LOBSTER{FT, Val{B}, W}) where {FT, B, W} = string(summary(model), " \n", + " Optional components:", "\n", + " ├── Carbonates $(B[1] ? :✅ : :❌) \n", + " ├── Oxygen $(B[2] ? :✅ : :❌) \n", + " └── Variable Redfield Ratio $(B[3] ? :✅ : :❌)", "\n", + " Sinking Velocities:", "\n", show_sinking_velocities(model.sinking_velocities)) @inline maximum_sinking_velocity(bgc::LOBSTER) = maximum(abs, bgc.sinking_velocities.bPOM.w) diff --git a/src/Models/AdvectedPopulations/NPZD.jl b/src/Models/AdvectedPopulations/NPZD.jl index e3b8733c6..1f18f00ed 100644 --- a/src/Models/AdvectedPopulations/NPZD.jl +++ b/src/Models/AdvectedPopulations/NPZD.jl @@ -289,8 +289,8 @@ function update_boxmodel_state!(model::BoxModel{<:NPZD, <:Any, <:Any, <:Any, <:A end summary(::NPZD{FT, W}) where {FT, W} = string("Nutrient Phytoplankton Zooplankton Detritus model ($FT)") -show(io::IO, model::NPZD) = print(io, string(summary(model), " \n", - " Sinking Velocities:", "\n", show_sinking_velocities(model.sinking_velocities))) +show(io::IO, model::NPZD) = string(summary(model), " \n", + " Sinking Velocities:", "\n", show_sinking_velocities(model.sinking_velocities)) @inline maximum_sinking_velocity(bgc::NPZD) = maximum(abs, bgc.sinking_velocities.D.w) diff --git a/src/OceanBioME.jl b/src/OceanBioME.jl index a1ef6a2a4..4abbe0feb 100644 --- a/src/OceanBioME.jl +++ b/src/OceanBioME.jl @@ -148,7 +148,7 @@ Returns the redfield ratio of `tracer_name` from `bgc` when it is constant acros summary(bgc::Biogeochemistry) = string("Biogeochemical model based on $(summary(bgc.underlying_biogeochemistry))") show(io::IO, model::Biogeochemistry) = - print(io, show(io, model.underlying_biogeochemistry), " \n", + print(io, show(model.underlying_biogeochemistry), " \n", " Light attenuation: ", summary(model.light_attenuation), "\n", " Sediment: ", summary(model.sediment), "\n", " Particles: ", summary(model.particles))