Skip to content

Commit e26b67e

Browse files
committed
few fixes + sensible and latent heat fluxes
1 parent 1667e33 commit e26b67e

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

experiments/flux_climatology/flux_climatology.jl

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using ClimaOcean
22
using ClimaOcean.ECCO
3+
using Dates
34
using Oceananigans
45
using Oceananigans.Utils
56
using Oceananigans.Fields: ZeroField, location, VelocityFields
@@ -84,7 +85,11 @@ function compute_flux_climatology(earth)
8485
Jᵀ = FluxStatistics(net_fluxes.T)
8586
= FluxStatistics(net_fluxes.S)
8687

87-
stats = (; τx, τy, Jᵀ, Jˢ)
88+
atmos_ocean_fluxes = earth.model.interfaces.atmosphere_ocean_interface.fluxes
89+
Qc = FluxStatistics(atmos_ocean_fluxes.sensible_heat)
90+
Qv = FluxStatistics(atmos_ocean_fluxes.latent_heat)
91+
92+
stats = (; τx, τy, Jᵀ, Jˢ, Qc, Qv)
8893

8994
function update_flux_stats!(earth)
9095
Δt = earth.Δt
@@ -114,7 +119,7 @@ end
114119
##### A prescribed ocean...
115120
#####
116121

117-
struct PrescribedOcean{A, G, C, U, T, F} <: AbstractModel{Nothing}
122+
struct PrescribedOcean{A, G, C, U, T, F} <: AbstractModel{Nothing, A}
118123
architecture :: A
119124
grid :: G
120125
clock :: Clock{C}
@@ -232,5 +237,3 @@ end
232237
add_callback!(earth, progress, IterationInterval(10))
233238

234239
stats = compute_flux_climatology(earth)
235-
236-

0 commit comments

Comments
 (0)