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 nvhpc compiler error in CESM due to line length exceeded #240

Merged
merged 2 commits into from
Sep 15, 2023

Conversation

lizziel
Copy link
Contributor

@lizziel lizziel commented Sep 15, 2023

This update makes HEMCO compatible with the nvhpc compiler. The bug that prevents compiling with nvhpc was reported downstream from ESCOMP/CAM#871 and at HEMCO#233. The problem was originally reported-by: Jian Sun @sjsprecious. A bug fix will be included in HEMCO 3.7.1 (see @jimmielin's #234) but we also need it in a 3.6.x version for use with GEOS-Chem 14.1.1 in CESM.

Name and Institution (Required)

Name: Lizzie Lundgren
Institution: Harvard University

Describe the update

Use continuation marks for GC_72_EDGE_SIGMA variable specific to MODEL_WRF and MODEL_CESM.

This will make it compatible with Fortran spec, as nvhpc compiler will throw an error about this line of code.

Expected changes

Zero diff, pure reformatting of code lines that are used only in WRF and CESM.

Reference(s)

N/A

Related Github Issue(s) and PRs

This will make compile compatible with the nvhpc compiler.

This was reported downstream from ESCOMP/CAM#871 and at HEMCO#233.

Reported-by: Jian Sun @sjsprecious
Signed-off-by: Haipeng Lin <hplin@seas.harvard.edu>
@lizziel lizziel changed the title Fix nvhpc compiler error due to line length exceeded Fix nvhpc compiler error in CESM due to line length exceeded Sep 15, 2023
@lizziel lizziel added category: Interface to External Model Related to HEMCO updates needed to interface with other models (GEOS, WRF, CESM, etc) topic: Structural Modifications Related to HEMCO structural modifications (as opposed to scientific updates) no-diff-to-benchmark This update will have no impact on benchmark simulations category: Bug Fix Fixes a bug that was previously reported labels Sep 15, 2023
Signed-off-by: Lizzie Lundgren <elundgren@seas.harvard.edu>
@lizziel lizziel force-pushed the bugfix/line_length_too_long_for_nvhpc_compiler branch from 485d430 to 068e067 Compare September 15, 2023 18:18
Copy link
Contributor

@yantosca yantosca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to merge. This has already been brought into HEMCO 3.7.1.

@yantosca yantosca self-assigned this Sep 15, 2023
@yantosca yantosca merged commit d479a10 into main Sep 15, 2023
1 check passed
@yantosca yantosca deleted the bugfix/line_length_too_long_for_nvhpc_compiler branch September 15, 2023 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: Bug Fix Fixes a bug that was previously reported category: Interface to External Model Related to HEMCO updates needed to interface with other models (GEOS, WRF, CESM, etc) no-diff-to-benchmark This update will have no impact on benchmark simulations topic: Structural Modifications Related to HEMCO structural modifications (as opposed to scientific updates)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants