Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix non-standard declarations of 8-byte integers in ESMF_BaseMod.F90 #959

Merged
merged 1 commit into from
Mar 1, 2022

Conversation

mgduda
Copy link
Contributor

@mgduda mgduda commented Feb 9, 2022

This PR fixes non-standard declarations of 8-byte integers in ESMF_BaseMod.F90.

The ESMF_BaseMod module contains several non-standard declarations of 8-byte
integer variables. These were identified using the GNU compiler:

   ESMF_BaseMod.F90:75:20:

      75 |           integer*8 :: ptr
         |                    1
   Error: GNU Extension: Nonstandard type declaration INTEGER*8 at (1)

and also using the NAG compiler:

   Error: ESMF_BaseMod.F90, line 75: KIND value (8) does not specify a valid representation method
   Error: ESMF_BaseMod.F90, line 163: KIND value (8) does not specify a valid representation method

Since the ESMF_BaseMod module already defines a parameter for selecting 8-byte
integers, namely, ESMF_KIND_I8, all that is needed is to move the definition of
this (and related) parameters to appear earlier in the module and to then use

   integer(kind=ESMF_KIND_I8)

rather than

   integer(kind=8)

.

The ESMF_BaseMod module contains several non-standard declarations of 8-byte
integer variables. These were identified using the GNU compiler:

   ESMF_BaseMod.F90:75:20:

      75 |           integer*8 :: ptr
         |                    1
   Error: GNU Extension: Nonstandard type declaration INTEGER*8 at (1)

and also using the NAG compiler:

   Error: ESMF_BaseMod.F90, line 75: KIND value (8) does not specify a valid representation method
   Error: ESMF_BaseMod.F90, line 163: KIND value (8) does not specify a valid representation method

Since the ESMF_BaseMod module already defines a parameter for selecting 8-byte
integers, namely, ESMF_KIND_I8, all that is needed is to move the definition of
this (and related) parameters to appear earlier in the module and to then use

   integer(kind=ESMF_KIND_I8)

rather than

   integer(kind=8)

.
@mgduda mgduda merged commit e9d80c6 into MPAS-Dev:develop Mar 1, 2022
@mgduda mgduda deleted the external/esmf_i8_fix branch March 1, 2022 01:39
mark-petersen added a commit to E3SM-Project/E3SM that referenced this pull request Mar 9, 2022
see MPAS-Dev/MPAS-Model#959

This PR fixes non-standard declarations of 8-byte integers in ESMF_BaseMod.F90.

The ESMF_BaseMod module contains several non-standard declarations of 8-byte
integer variables. These were identified using the GNU compiler:

   ESMF_BaseMod.F90:75:20:

      75 |           integer*8 :: ptr
         |                    1
   Error: GNU Extension: Nonstandard type declaration INTEGER*8 at (1)

and also using the NAG compiler:

   Error: ESMF_BaseMod.F90, line 75: KIND value (8) does not specify a valid representation method
   Error: ESMF_BaseMod.F90, line 163: KIND value (8) does not specify a valid representation method

Since the ESMF_BaseMod module already defines a parameter for selecting 8-byte
integers, namely, ESMF_KIND_I8, all that is needed is to move the definition of
this (and related) parameters to appear earlier in the module and to then use

   integer(kind=ESMF_KIND_I8)

rather than

   integer(kind=8)
jonbob added a commit to E3SM-Project/E3SM that referenced this pull request Mar 9, 2022
…#4825)

Fix non-standard declarations of 8-byte integers in ESMF in MPAS-Framework

This PR fixes non-standard declarations of 8-byte integers in
ESMF_BaseMod.F90. See the original PR for MPAS at
MPAS-Dev/MPAS-Model#959. The ESMF_BaseMod module contains several non-
standard declarations of 8-byte integer variables. These were identified
using the GNU and NAG compilers.

[BFB]
jonbob added a commit to E3SM-Project/E3SM that referenced this pull request Mar 10, 2022
Fix non-standard declarations of 8-byte integers in ESMF in MPAS-Framework

This PR fixes non-standard declarations of 8-byte integers in
ESMF_BaseMod.F90. See the original PR for MPAS at
MPAS-Dev/MPAS-Model#959. The ESMF_BaseMod module contains several non-
standard declarations of 8-byte integer variables. These were identified
using the GNU and NAG compilers.

[BFB]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant