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

work around compile-time error in iHAMOCC when debug mode is activated #256

Merged
merged 1 commit into from
Jun 14, 2023
Merged

work around compile-time error in iHAMOCC when debug mode is activated #256

merged 1 commit into from
Jun 14, 2023

Conversation

JorgSchwinger
Copy link
Contributor

In debug mode the intel compiler generates an error in mo_param1 (see #254 by @mvertens). Apparently, since indices are defined as parameters, the compile-time array bounds check generate errors for actually unused indices even though the code cannot be reached. Since the intel compiler is our workhorse I suggest to fix this by using pre-processor directives instead of if-statements.

Copy link
Contributor

@TomasTorsvik TomasTorsvik left a comment

Choose a reason for hiding this comment

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

Looks fine to me 👍

Copy link
Collaborator

@jmaerz jmaerz left a comment

Choose a reason for hiding this comment

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

Dear @JorgSchwinger , thanks for taking care of this compile time error. I approve.

@JorgSchwinger JorgSchwinger linked an issue Jun 14, 2023 that may be closed by this pull request
@JorgSchwinger JorgSchwinger merged commit 6a9b3a7 into NorESMhub:master Jun 14, 2023
@JorgSchwinger JorgSchwinger deleted the fix-hamocc_debug_mode branch June 14, 2023 10:41
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.

BLOM is not compiling in DEBUG mode
3 participants