Skip to content

Commit

Permalink
initialize with LTM zeros in gridded
Browse files Browse the repository at this point in the history
  • Loading branch information
milankl committed Aug 3, 2023
1 parent 150006f commit 5dbf707
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SpeedyTransforms/spectral_transform.jl
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ function gridded( alms::AbstractMatrix, # spectral coefficients
) where NF # number format NF

map = zeros(S.Grid{NF},S.nlat_half) # preallocate output
almsᴸ = LowerTriangularMatrix{Complex{NF}}(undef,S.lmax+1,S.mmax+1)
almsᴸ = zeros(LowerTriangularMatrix{Complex{NF}},S.lmax+1,S.mmax+1)
copyto!(almsᴸ,alms) # drop the upper triangle and convert to NF
gridded!(map,almsᴸ,S) # now execute the in-place version
return map
Expand Down

0 comments on commit 5dbf707

Please sign in to comment.