Skip to content

Commit

Permalink
Merge pull request #4030 from ESMCI/fix_auto_r8
Browse files Browse the repository at this point in the history
Fix auto r8 flag for CESM GNU builds
Fixes the auto -r8 GNU compiler flag specification for MOM6+CESM by adding -fdefault-double-8 flag in addition to -fdefault-real-8. The issue was encountered while evaluating a MOM6 PR:
NOAA-GFDL/MOM6#1440 (comment)

Test suite: aux_mom
Test baseline: 210706
Test namelist changes: n/a
Test status: b4b

Fixes NOAA-GFDL/MOM6#1440 (comment)

User interface changes?: n/a

Update gh-pages html (Y/N)?: N
  • Loading branch information
jedwards4b authored Jul 12, 2021
2 parents 5f05541 + f14ca5e commit 26e38f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/cesm/machines/config_compilers.xml
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ using a fortran linker.
</CPPDEFS>
<CXX_LINKER>FORTRAN</CXX_LINKER>
<FC_AUTO_R8>
<base> -fdefault-real-8 </base>
<base> -fdefault-real-8 -fdefault-double-8</base>
</FC_AUTO_R8>
<FFLAGS>
<!-- -ffree-line-length-none and -ffixed-line-length-none need to be in FFLAGS rather than in FIXEDFLAGS/FREEFLAGS
Expand Down

0 comments on commit 26e38f5

Please sign in to comment.