Skip to content

Commit

Permalink
fop
Browse files Browse the repository at this point in the history
  • Loading branch information
谢萧涯 authored and 谢萧涯 committed Sep 11, 2024
1 parent 8f9fd3c commit a86cdf9
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -664,10 +664,11 @@ function calc_intermitency(ρ_source_level, source_ampl, nk, Bsum)
end

function gw_average!(wave_forcing, wave_forcing_m1)
L1 = Operators.LeftBiasedC2F(; bottom = Operators.SetValue(0.0f0))
FT=eltype(wave_forcing)
L1 = Operators.LeftBiasedC2F(; bottom = Operators.SetValue(FT(0.0)))
L2 = Operators.LeftBiasedF2C(;)
wave_forcing_m1 .= L2.(L1.(wave_forcing))
@. wave_forcing = 0.5f0 * (wave_forcing + wave_forcing_m1)
@. wave_forcing = FT(0.5) * (wave_forcing + wave_forcing_m1)
end


Expand Down

0 comments on commit a86cdf9

Please sign in to comment.