File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -138,6 +138,9 @@ function SpeedyWeather.forcing!(
138
138
end
139
139
end
140
140
141
+ # add stochastic stirring term S to vorticity tendency
142
+ # with masked or without (=skip additional transform)
143
+ (; vor_tend) = diagn. tendencies
141
144
if forcing. mask
142
145
# to grid-point space
143
146
S_grid = diagn. dynamics_variables. a_grid # reuse general work array
@@ -147,7 +150,6 @@ function SpeedyWeather.forcing!(
147
150
RingGrids. _scale_lat! (S_grid, forcing. lat_mask)
148
151
149
152
# back to spectral space, write directly into vorticity tendency
150
- (; vor_tend) = diagn. tendencies
151
153
SpeedyTransforms. spectral! (vor_tend, S_grid, spectral_transform)
152
154
else
153
155
vor_tend .= S # copy forcing S over into vor_tend
You can’t perform that action at this time.
0 commit comments