Skip to content

Commit 0876b41

Browse files
add a simulation
1 parent 1a40428 commit 0876b41

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

src/OceanSeaIceModels/InterfaceComputations/assemble_net_fluxes.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ using ClimaOcean.OceanSeaIceModels: sea_ice_concentration
2121
return zero(Iˢʷ)
2222
end
2323

24-
@inline get_radiative_forcing(ocean::Simulation{<:HydrostaticFreeSurfaceModel}) = get_radiative_forcing(ocean.model.forcing.T)
24+
@inline get_radiative_forcing(ocean::OceananigansSimulation) = get_radiative_forcing(ocean.model.forcing.T)
2525
@inline get_radiative_forcing(FT) = FT
2626

2727
@inline function get_radiative_forcing(FT::MultipleForcings)

src/OceanSeaIceModels/InterfaceComputations/atmosphere_ocean_fluxes.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ using ClimaOcean.OceanSeaIceModels.PrescribedAtmospheres: thermodynamics_paramet
44
surface_layer_height,
55
boundary_layer_height
66

7-
@inline get_ocean_state(ocean::Simulation{<:HydrostaticFreeSurfaceModel}, coupled_model) =
7+
@inline get_ocean_state(ocean::OceananigansSimulation, coupled_model) =
88
(u = ocean.model.velocities.u,
99
v = ocean.model.velocities.v,
1010
T = ocean.model.tracers.T,

src/OceanSeaIceModels/InterfaceComputations/component_interfaces.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ Base.summary(crf::ComponentInterfaces) = "ComponentInterfaces"
167167
Base.show(io::IO, crf::ComponentInterfaces) = print(io, summary(crf))
168168

169169
atmosphere_ocean_interface(::Nothing, args...) = nothing
170-
atmosphere_ocean_interface(ocean::Simulation{<:HydrostaticFreeSurfaceModel}, args...) =
170+
atmosphere_ocean_interface(ocean::OceananigansSimulation, args...) =
171171
atmosphere_ocean_interface(ocean.model.grid, args...)
172172

173173
function atmosphere_ocean_interface(grid::AbstractGrid,
@@ -296,7 +296,7 @@ function default_ao_specific_humidity(ocean)
296296
return ImpureSaturationSpecificHumidity(phase, x_H₂O)
297297
end
298298

299-
function ocean_surface_fluxes(ocean::Simulation{<:HydrostaticFreeSurfaceModel})
299+
function ocean_surface_fluxes(ocean::OceananigansSimulation)
300300
τx = surface_flux(ocean.model.velocities.u)
301301
τy = surface_flux(ocean.model.velocities.v)
302302
tracers = ocean.model.tracers

src/OceanSeaIceModels/OceanSeaIceModels.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ const default_gravitational_acceleration = 9.80665
4141
const default_freshwater_density = 1000
4242

4343
const SeaIceSimulation = Simulation{<:SeaIceModel}
44+
const OceananigansSimulation = Simulation{<:HydrostaticFreeSurfaceModel}
4445

4546
sea_ice_thickness(::Nothing) = ZeroField()
4647
sea_ice_thickness(sea_ice::SeaIceSimulation) = sea_ice.model.ice_thickness

0 commit comments

Comments
 (0)