Skip to content

Commit ac8d821

Browse files
bugfix
1 parent c7dbcb0 commit ac8d821

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

ext/ClimaOceanPythonCallExt/veros_state_exchanger.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,15 @@ initialize!(exchanger::VerosStateExchanger, atmosphere) =
7070
return (; u, v, T, S)
7171
end
7272

73-
@inline function ocean_surface_fluxes(ocean::VerosOceanSimulation)
73+
@inline function ocean_surface_fluxes(ocean::VerosOceanSimulation, ρₒ, cₒ)
7474
grid = surface_grid(ocean)
7575
u = Field{Face, Center, Nothing}(grid)
7676
v = Field{Center, Face, Nothing}(grid)
7777
T = Field{Center, Center, Nothing}(grid)
7878
S = Field{Center, Center, Nothing}(grid)
79+
Q = ρₒ * cₒ * T
7980

80-
return (; u, v, T, S)
81+
return (; u, v, T, S, Q)
8182
end
8283

8384
@inline get_radiative_forcing(ocean::VerosOceanSimulation) = nothing

src/OceanSeaIceModels/InterfaceComputations/component_interfaces.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ function default_ao_specific_humidity(ocean)
297297
return ImpureSaturationSpecificHumidity(phase, x_H₂O)
298298
end
299299

300-
function ocean_surface_fluxes(ocean::OceananigansSimulation)
300+
function ocean_surface_fluxes(ocean::OceananigansSimulation, ρₒ, cₒ)
301301
τx = surface_flux(ocean.model.velocities.u)
302302
τy = surface_flux(ocean.model.velocities.v)
303303
tracers = ocean.model.tracers
@@ -403,7 +403,7 @@ function ComponentInterfaces(atmosphere, ocean, sea_ice=nothing;
403403
net_bottom_sea_ice_fluxes = nothing
404404
end
405405

406-
net_ocean_surface_fluxes = ocean_surface_fluxes(ocean)
406+
net_ocean_surface_fluxes = ocean_surface_fluxes(ocean, ocean_reference_density, ocean_heat_capacity)
407407

408408
# Total interface fluxes
409409
net_fluxes = (ocean_surface = net_ocean_surface_fluxes,

0 commit comments

Comments
 (0)