Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'atmosphere/noahmp_no_f2008_flag' into develop (PR #1186)
This merge adds a work-around for Noah-MP compilation issues with the GNU -std=f2008 flag. At present, the Noah-MP code fails to compile with the GNU compilers using the -std=f2008 flag, which is included in the FFLAGS set for the 'gnu' build target: RunoffSurfaceDynamicVicMod.F90:205:4: 151 | goto 1003 | 2 ...... 205 | 1003 if ( DepthYTmp <= 0.0 ) DepthYTmp = 0.0 | 1 Error: Legacy Extension: Label at (1) is not in the same block as the GOTO statement at (2) RunoffSurfaceDynamicVicMod.F90:205:4: 175 | goto 1003 | 2 ...... 205 | 1003 if ( DepthYTmp <= 0.0 ) DepthYTmp = 0.0 | 1 Error: Legacy Extension: Label at (1) is not in the same block as the GOTO statement at (2) As a work-around for this issue, this merge adds logic to the Noah-MP Makefile to remove -std=f2008 if it is present in FFLAGS. The modified FFLAGS are only used when compiling Noah-MP, and so Fortran 2008 compliance is still enforced for other code when building with the 'gnu' target. * atmosphere/noahmp_no_f2008_flag: Work around Noah-MP compilation issues with GNU -std=f2008 flag
- Loading branch information