Skip to content

Commit

Permalink
create DiagnosticVariables with Barotropic/ShallowWater
Browse files Browse the repository at this point in the history
  • Loading branch information
milankl committed Dec 12, 2024
1 parent 8ea4a1a commit 14a0aa5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/dynamics/diagnostic_variables.jl
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,9 @@ struct DiagnosticVariables{
scale::Base.RefValue{NF}
end

DiagnosticVariables(SG::SpectralGrid, model::Barotropic) = DiagnosticVariables(SG)
DiagnosticVariables(SG::SpectralGrid, model::ShallowWater) = DiagnosticVariables(SG)

# decide on spectral resolution `nbands` of radiation schemes
function DiagnosticVariables(SG::SpectralGrid, model::PrimitiveEquation)
ntracers = length(model.tracers)
Expand Down
2 changes: 1 addition & 1 deletion src/models/primitive_dry.jl
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ $(TYPEDFIELDS)"""
optical_depth::OD = ZeroOpticalDepth(spectral_grid)
shortwave_radiation::SW = NoShortwave(spectral_grid)
longwave_radiation::LW = JeevanjeeRadiation(spectral_grid)
stochastic_physics::SP = StochasticallyPerturbedParameterizationTendencies(spectral_grid)
stochastic_physics::SP = NoStochasticPhysics(spectral_grid)

# NUMERICS
time_stepping::TS = Leapfrog(spectral_grid)
Expand Down
2 changes: 1 addition & 1 deletion src/models/primitive_wet.jl
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ $(TYPEDFIELDS)"""
optical_depth::OD = ZeroOpticalDepth(spectral_grid)
shortwave_radiation::SW = NoShortwave(spectral_grid)
longwave_radiation::LW = JeevanjeeRadiation(spectral_grid)
stochastic_physics::SP = StochasticallyPerturbedParameterizationTendencies(spectral_grid)
stochastic_physics::SP = NoStochasticPhysics(spectral_grid)

# NUMERICS
time_stepping::TS = Leapfrog(spectral_grid)
Expand Down

0 comments on commit 14a0aa5

Please sign in to comment.