Skip to content

Commit

Permalink
Fix typo in commented description of the spectral functionspace (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
MayeulDestouches authored Sep 3, 2024
1 parent 89cb815 commit 5eecc45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/atlas/functionspace/Spectral.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ class Spectral : public functionspace::FunctionSpaceImpl {
n = total wavenumber
const auto zonal_wavenumbers = Spectral::zonal_wavenumbers();
const int truncation = Spectral::truncation();
idx_t jc=0;
for( int jm=0; jm<zonal_wavenumbers.size(); ++jm ) {
int m = zonal_wavenumbers(m);
int m = zonal_wavenumbers(jm);
for( int n=m; m<=truncation; ++n ) {
data( jc++, jfld ) = func_real_part(m,n);
data( jc++, jfld ) = func_imag_part(m,n);
Expand Down

0 comments on commit 5eecc45

Please sign in to comment.