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

Add check for invalid fp-ops for GNU in debug mode #5808

Merged
merged 2 commits into from
Oct 13, 2023

Conversation

amametjanov
Copy link
Member

@amametjanov amametjanov commented Jul 13, 2023

Add check for invalid fp-ops for GNU in debug mode.
Also, fix ncol/pcol indexes in 2 eam-chemistry subroutines
(flagged by -ffpe-trap=invalid).

[non-BFB] - in fully-coupled tests

@amametjanov
Copy link
Member Author

e3sm_integration runs with

@ndkeen
Copy link
Contributor

ndkeen commented Jul 24, 2023

I suppose this
Fixes #5647
in the sense that it adds the flags. But we still may have debugging to do for a few tests that might fail as result.

@rljacob
Copy link
Member

rljacob commented Aug 10, 2023

Waiting on #5801 and #5811

@amametjanov amametjanov force-pushed the azamat/machines/add-gnu-invalid-check branch from 7af79a4 to 77c90e6 Compare September 26, 2023 01:28
Copy link
Member Author

@amametjanov amametjanov left a comment

Choose a reason for hiding this comment

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

Rebased onto latest master and re-checked with e3sm_integration: https://my.cdash.org/viewTest.php?buildid=2411304 .

real(r8), optional, intent(in) :: tropFlagInt(ncol, pver)
real(r8), optional, intent(in) :: tropFlagInt(pcols, pver)
Copy link
Member Author

Choose a reason for hiding this comment

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

All calls to gaschmmass_diags pass the whole tropFlagInt(:pcols,pver) array.

mmr_tend(:ncol,:,:), pmid(:ncol,:), pdel(:ncol,:), pdeldry(:ncol,:), pbuf, troplev(:ncol), tropFlag=tropFlag )
mmr_tend(:ncol,:,:), pmid, pdel(:ncol,:), pdeldry(:ncol,:), pbuf, troplev, tropFlag=tropFlag )
Copy link
Member Author

Choose a reason for hiding this comment

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

chm_diags declares pmid and troplev arrays with pcols.

@amametjanov amametjanov added non-BFB PR makes roundoff changes to answers. and removed BFB PR leaves answers BFB labels Sep 26, 2023
amametjanov added a commit that referenced this pull request Oct 13, 2023
(PR #5808)

Add check for invalid fp-ops for GNU in debug mode.

Also, fix ncol/pcol indexes in 2 eam-chemistry subroutines
(flagged by `-ffpe-trap=invalid`).

[non-BFB] - in fully-coupled tests
@amametjanov amametjanov merged commit f6f7b13 into master Oct 13, 2023
3 checks passed
@amametjanov amametjanov deleted the azamat/machines/add-gnu-invalid-check branch October 13, 2023 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement GNU GNU compiler related issues Machine Files non-BFB PR makes roundoff changes to answers.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants