Skip to content

Commit cd1bc10

Browse files
authored
Reuse model.spectral_transform for drag initialization
1 parent c224a68 commit cd1bc10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/jet_drag.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ function SpeedyWeather.initialize!( drag::JetDrag,
5656
u[ij] = drag.u₀ * exp(-(lat[ij]-drag.latitude)^2/(2*drag.width^2))
5757
end
5858

59-
# to spectral space of size lmax+1 × mmax as required by the curl
60-
û = SpeedyTransforms.spectral(u, one_more_degree=true)
59+
# to spectral space, reusing the precomputed spectral transform from model
60+
û = SpeedyTransforms.spectral(u, model.spectral_transform)
6161
= zero(û)
6262
SpeedyTransforms.curl!(drag.ζ₀, û, v̂, model.spectral_transform)
6363
return nothing

0 commit comments

Comments
 (0)