Skip to content

Fixing a runtime error for GNU compiler on Cheyenne#8

Closed
climbfuji wants to merge 1 commit into
NOAA-EMC:developfrom
climbfuji:gnu_character_array_fix_20190913
Closed

Fixing a runtime error for GNU compiler on Cheyenne#8
climbfuji wants to merge 1 commit into
NOAA-EMC:developfrom
climbfuji:gnu_character_array_fix_20190913

Conversation

@climbfuji
Copy link
Copy Markdown
Contributor

This PR fixes an issue with a code change introduced in #7 (src/module_MEDIATOR.F90).

While the original code changes in #7
are valid and standard Fortran and work on macOS with gcc-8.3.0 and gcc-9.1.0, they lead to a model crash on Cheyenne with gcc-8.3.0:

terminate called after throwing an instance of 'std::length_error'   what():  basic_string::_M_create

The solution is to revert to the failsafe version that we have used successfully in the past for both Intel and GNU.

I tested those changes to work for both Intel and GNU on Cheyenne and I would advocate for merging them as soon as we can (possibly before kicking off the final round of tests for https://vlab.ncep.noaa.gov/code-review/#/c/19568).

…iginal code is standard Fortran and works on macOS with gcc-8.3.0 and gcc-9.1.0, it leads to a model crash on Cheyenne with gcc-8.3.0; revert to the failsafe version that has worked ever since
@climbfuji
Copy link
Copy Markdown
Contributor Author

This was a red herring, I am closing this PR. The proposed change doesn't fix the problem, it rather seems to be related to the ESMF library used on Cheyenne/GNU (8.0.0bs40).

@climbfuji climbfuji closed this Sep 13, 2019
MinsukJi-NOAA pushed a commit to MinsukJi-NOAA/NEMS that referenced this pull request May 8, 2020
debug mode for NEMS, additional minor changes in component mk files (…
hyunchul386 pushed a commit to hyunchul386/NEMS that referenced this pull request Jul 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants