Skip to content

Commit 035ac9d

Browse files
committed
set stirring strength to new default 7e-11
1 parent 6ca12b4 commit 035ac9d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/stochastic_stirring.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Base.@kwdef struct StochasticStirring{NF} <: SpeedyWeather.AbstractForcing{NF}
1616
decorrelation_time::Second = Day(2)
1717

1818
"Stirring strength A [1/s²]"
19-
strength::Float64 = 1e-11
19+
strength::Float64 = 7e-11
2020

2121
"Stirring latitude [˚N]"
2222
latitude::Float64 = 45
@@ -80,8 +80,7 @@ function SpeedyWeather.initialize!( forcing::StochasticStirring,
8080
forcing.b[] = exp(-dt/τ)
8181

8282
# precompute the Gaussian latitudinal mask
83-
(;Grid,nlat_half) = model.spectral_grid
84-
latd = RingGrids.get_latd(Grid,nlat_half) # in ˚N
83+
(;latd) = model.geometry # in ˚N on every latitude ring
8584

8685
for j in eachindex(forcing.lat_mask)
8786
# Gaussian centred at forcing.latitude of width forcing.width
@@ -115,6 +114,7 @@ function SpeedyWeather.forcing!(diagn::DiagnosticVariablesLayer,
115114
a = forcing.a[] # = sqrt(1 - exp(-2dt/τ))
116115
b = forcing.b[] # = exp(-dt/τ)
117116

117+
# evolve stochastic coefficients in time
118118
(;S) = forcing
119119
lmax,mmax = size(S)
120120
@inbounds for m in 1:mmax

0 commit comments

Comments
 (0)