-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LowerTriangularMatrix in PrognVars, DiagnVars +restructured #117
Conversation
@white-alistair This PR is a bit hectic, but I've been restructuring the julia> using SpeedyWeather
julia> progn,diagn,model = initialize_speedy();
julia> progn.
layers lmax mmax n_leapfrog nlev pres so PrognosticVariables contains another struct with julia> progn.layers[1].leapfrog[1].vor
32×32 LowerTriangularMatrix{ComplexF32}:
... and it should be super easy to loop over all layers like (which can be a single loop very early on at every time step) for layer in progn.layers
func!(layer,...)
end |
With for m in 1:mmax+1
for l in m:mmax+1
vor[l,m] or more convenient (and faster) for lm in eachharmonic(vor)
vor[lm] which is equivalent to for lm in 1:length(vor)
vor[lm] |
@milankl looks good, nice one! I see that you moved the parametrization vars into a file Let me know if you want an actual review of this at some point. |
@white-alistair I answered that question in #118, I suggest creating a |
No description provided.