Skip to content
This repository has been archived by the owner on Oct 23, 2020. It is now read-only.

Code failure with gfortran 7 #1415

Open
akturner opened this issue Sep 20, 2017 · 1 comment
Open

Code failure with gfortran 7 #1415

akturner opened this issue Sep 20, 2017 · 1 comment

Comments

@akturner
Copy link
Contributor

Compiling with gfortran 7 results in an executable that fails during runtime with this error:
[cdang5@skyglow rundir]$ ./cice_model
At line 839 of file ESMF_TimeMod.F90
Internal Error: get_unit(): Bad internal unit KIND

Error termination. Backtrace:
#0 0x7f4eca07de9a in ???
#1 0x7f4eca07ea85 in ???
#2 0x7f4eca07ef8d in ???
#3 0x7f4eca1fa7d5 in ???
#4 0x7f4eca1f803c in ???
#5 0x823861 in ???
#6 0x6e4181 in ???
#7 0x40633e in __mpas_subdriver_MOD_mpas_init
at /home/cdang5/MPAS/MPAS/src/driver/mpas_subdriver.F:281
#8 0x40394f in mpas
at /home/cdang5/MPAS/MPAS/src/driver/mpas.F:14
#9 0x4039b0 in main
at /home/cdang5/MPAS/MPAS/src/driver/mpas.F:10

The issue seems to be fixed by changing this line:
https://github.com/MPAS-Dev/MPAS/blob/develop/src/external/esmf_time_f90/ESMF_TimeMod.F90#L811

from
character*(256) :: TimeFormatString
to
character(len=256) :: TimeFormatString

@mgduda
Copy link
Contributor

mgduda commented Feb 1, 2018

I just tried the latest develop branch with MPAS-Atmosphere and the GNU 7.1.0 compilers, and I'm not able to trigger the same issue. Is it easy to tar up the input files needed by the sea-ice core to reproduce this? I'd be willing to give it a closer look.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants