MPAS-Dev / MPAS-Model

Repository for MPAS models and shared framework releases.
235 stars 312 forks source link

Add `-std=f2008` to `FFLAGS_DEBUG` for the `gnu` build target #1156

Closed mgduda closed 5 months ago

mgduda commented 5 months ago

This PR adds the -std=f2008 option to FFLAGS_DEBUG for the gnu build target.

For the gnu target, FFLAGS_OPT contained -std=f2008 to check for Fortran 2008 conformance, but the debug build flags in FFLAGS_DEBUG lacked this option. This PR simply adds -std=f2008 to FFLAGS_DEBUG so that both optimized and debug builds check that code conforms to the Fortran 2008 standard.