Closed dqwu closed 1 year ago
@jayeshkrishna Besides GNU, we might also need to check other compilers on Fortran 2008 support, see https://fortranwiki.org/fortran/show/Compiler+Support+for+Modern+Fortran https://fortranwiki.org/fortran/show/Fortran+2008+status
With the updated Fortran interface, there are some SCORPIO build errors related to is_contiguous with GCC 8 or lower.
Steps to reproduce on anvil (use GCC 8.2.0)
Build errors
This issue is also reproducible on a Ubuntu 18 workstation with default GCC 7.4.0
It seems that "is_contiguous" (Fortran 2008 or later) is only supported by GCC 9 or higher.
Quite a few E3SM machines still use GCC 8, including mappy, anvil and bebop.