ecmwf-ifs / ectrans

Global spherical harmonics transforms library underpinning the IFS
Apache License 2.0
15 stars 30 forks source link

Rearrange the declaration of some dummy arguments #76

Closed DJDavies2 closed 3 months ago

DJDavies2 commented 3 months ago

For https://github.com/ecmwf-ifs/ectrans/issues/75.

This is because there are some dummy arguments declared like this:

real(kind=jprd), intent(inout) :: a(n) integer(kind=jpim), intent(in) :: n

I think this counts as "n" being used before it is declared; the solution is to have "n" declared first, this is what this change does.

samhatfield commented 3 months ago

Seems reasonable.

DJDavies2 commented 3 months ago

Yes, it was the NAG compiler.