Skip to content

Commit

Permalink
convection tests added
Browse files Browse the repository at this point in the history
  • Loading branch information
milankl committed Mar 20, 2024
1 parent 98a6ac5 commit e4c9c55
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/physics/convection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ abstract type AbstractConvection <: AbstractParameterization end

export NoConvection
struct NoConvection <: AbstractConvection end
NoConvection(::SpectralGrid) = NoConvection()
initialize!(::NoConvection, ::PrimitiveEquation) = nothing
convection!(::ColumnVariables, ::NoConvection, ::PrimitiveEquation) = nothing

Expand Down
12 changes: 8 additions & 4 deletions test/convection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@
for Model in ( PrimitiveDryModel,
PrimitiveWetModel)

convection = Convection(spectral_grid)
model = Model(;spectral_grid, convection)
simulation = initialize!(model)
run!(simulation, period=Day(5))
# that combination is not defined
if ~(Convection == SimplifiedBettsMiller && Model == PrimitiveDryModel)
convection = Convection(spectral_grid)
model = Model(;spectral_grid, convection)
model.feedback.verbose = false
simulation = initialize!(model)
run!(simulation, period=Day(1))
end
end
end
end

0 comments on commit e4c9c55

Please sign in to comment.