CABLE-LSM / CABLE

Home to the CABLE land surface model and its documentation
https://cable.readthedocs.io/en/latest/
Other
12 stars 6 forks source link

Bring CABLE up to date with Fortran 2008 Standards #449

Open Whyborn opened 3 weeks ago

Whyborn commented 3 weeks ago

The Intel compiler allows some things that are not compliant with the Fortran standards (see in particular some issues raised by @mcuntz on this PR). The Intel compiler flag -stand fXX (where XX f90,f99,f03,f08,f18,f23) will raise warnings at non-compliant bits of code. I think we should add -stand f08 to the DEBUG compiler flags, as the majority of the code (the POP_TRENDY branch at least) is Fortran 2008 compliant bar the new issues raised by Mathias.

Whyborn commented 3 weeks ago

After some discussion around LFRic coding standards, compilers used by collaborators and the compliance table found in this thread, it seems logical to declare all features as part of the Fortran 2008 standard as being available for use in CABLE. See an abridged version of the new features here.