Skip to content

Commit

Permalink
timestepper shinanigans
Browse files Browse the repository at this point in the history
  • Loading branch information
jagoosw committed Nov 13, 2024
1 parent ee9886a commit 4c7f37d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/test_heating.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ required_biogeochemical_tracers(::JustPhytoplankton) = (:P, )

model = NonhydrostaticModel(; grid,
tracers = :T,
timestepper = :QuasiAdamsBashforth2,
boundary_conditions = (; T = FieldBoundaryConditions(top = surface_heat_exchange)))

set!(model, T = -273.15)
Expand All @@ -65,6 +66,7 @@ required_biogeochemical_tracers(::JustPhytoplankton) = (:P, )

model = NonhydrostaticModel(; grid,
tracers = :T,
timestepper = :QuasiAdamsBashforth2,
boundary_conditions = (; T = FieldBoundaryConditions(top = surface_heat_exchange)))

set!(model, T = -273.15)
Expand Down Expand Up @@ -92,6 +94,7 @@ required_biogeochemical_tracers(::JustPhytoplankton) = (:P, )

model = NonhydrostaticModel(; grid,
tracers = :T,
timestepper = :QuasiAdamsBashforth2,
boundary_conditions = (; T = FieldBoundaryConditions(top = surface_heat_exchange)))

# no heat exchange when temperatures equal
Expand Down Expand Up @@ -138,6 +141,7 @@ required_biogeochemical_tracers(::JustPhytoplankton) = (:P, )

model = NonhydrostaticModel(; grid,
tracers = :T,
timestepper = :QuasiAdamsBashforth2,
boundary_conditions = (; T = FieldBoundaryConditions(top = surface_heat_exchange)))

# no heat exchange when vapour pressure equalised
Expand Down Expand Up @@ -178,7 +182,7 @@ required_biogeochemical_tracers(::JustPhytoplankton) = (:P, )

biogeochemistry = Biogeochemistry(JustPhytoplankton(); light_attenuation = light_attenuation_model)

model = NonhydrostaticModel(; grid, biogeochemistry, forcing = (; T = Forcing(body_heating, discrete_form=true)), tracers = :T)
model = NonhydrostaticModel(; grid, biogeochemistry, timestepper = :QuasiAdamsBashforth2, forcing = (; T = Forcing(body_heating, discrete_form=true)), tracers = :T)

Pᵢ(x, y, z) = 2.5 + z

Expand Down

0 comments on commit 4c7f37d

Please sign in to comment.