Skip to content

bug fix for WRF openMP coupling#232

Merged
cenlinhe merged 1 commit intoNCAR:developfrom
cenlinhe:fix_WRFomp
Jan 19, 2026
Merged

bug fix for WRF openMP coupling#232
cenlinhe merged 1 commit intoNCAR:developfrom
cenlinhe:fix_WRFomp

Conversation

@cenlinhe
Copy link
Copy Markdown
Collaborator

@cenlinhe cenlinhe commented Jan 18, 2026

This PR is to fix the bug in WRF-NoahMPv5.1 coupling for openMP compiler option.
Tests on Derecho have been successful for both openMP (smpar), serial, and MPI (dmpar) for gcc. Intel compiler tests are also successful.
MMF run and urban run as well as nested run are all successful on my end.

@cenlinhe
Copy link
Copy Markdown
Collaborator Author

@tslin2 @RAbolafiaRosenzweig This is a further bug fix for WRF coupling to solve openMP compiler issue.


end type NoahmpIO_type

type(NoahmpIO_type) :: NoahmpIOdom(5)
Copy link
Copy Markdown
Collaborator

@tslin2 tslin2 Jan 18, 2026

Choose a reason for hiding this comment

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

Is the 5 upper limit? Is it possible to take from WRF? or maybe add a error message and stop model to ask for change here and recompile model if running for more than 5

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This is a good point. "5" is an arbitrary max number of nested domains I put for NoahmpIOdom structure. We could link it to max_dom from WRF but that would create additional dependency from noahmp code to WRF high-level model domain file setup in compilation, which I prefer not to do it. Normally people would not use 5 nested domain setup so that's why I put a reasonable value here to avoid allocating too large NoahmpIOdom structure to save memory. We may add an error message later. For now let's see if this bug fix could pass all WRF regression test.

@tslin2
Copy link
Copy Markdown
Collaborator

tslin2 commented Jan 18, 2026

The PR resolves the issue of OpenMP, the tests was performed. Bitwise consistent results for gcc serial, smpar and dmpar. the tests for intel dmapr works and show bitwise consistent for restart and continuous runs on my end

@cenlinhe cenlinhe merged commit ba09827 into NCAR:develop Jan 19, 2026
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