-
Notifications
You must be signed in to change notification settings - Fork 632
Replace EXTERNAL declarations with INTERFACE and CONTAINS for safer procedure referencing in WW3 and operational workflow #1521
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
Merged
JessicaMeixner-NOAA
merged 8 commits into
NOAA-EMC:develop
from
mingchen-NOAA:ww3/replaceExternalDeclarations
Nov 17, 2025
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Collaborator
Author
|
In addition to the WW3 standalone tests, the UFS-WM RT tests were also conducted. All failures were due to timeouts and none of them involved the wave model. |
JessicaMeixner-NOAA
approved these changes
Nov 17, 2025
Collaborator
JessicaMeixner-NOAA
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mww3_test_03/./work_PR3_UQ_MPI_e (1 files differ)
mww3_test_03/./work_PR3_UQ_MPI_d2_c (15 files differ)
mww3_test_03/./work_PR1_MPI_d2 (15 files differ)
mww3_test_03/./work_PR2_UNO_MPI_d2 (17 files differ)
mww3_test_03/./work_PR2_UNO_MPI_e (1 files differ)
mww3_test_03/./work_PR3_UQ_MPI_d2 (17 files differ)
mww3_test_03/./work_PR3_UQ_MPI_e_c (1 files differ)
mww3_test_03/./work_PR1_MPI_e (1 files differ)
mww3_test_03/./work_PR2_UQ_MPI_e (1 files differ)
mww3_test_03/./work_PR2_UQ_MPI_d2 (15 files differ)
mww3_test_03/./work_PR3_UNO_MPI_d2_c (15 files differ)
mww3_test_03/./work_PR3_UNO_MPI_e (1 files differ)
mww3_test_03/./work_PR3_UNO_MPI_d2 (17 files differ)
mww3_test_03/./work_PR3_UNO_MPI_e_c (1 files differ)
mww3_test_09/./work_MPI_ASCII (0 files differ)
ww3_tp2.10/./work_MPI_OMPH (5 files differ)
ww3_tp2.6/./work_ST4_ASCII (0 files differ)
ww3_ufs1.3/./work_a (3 files differ)
This was referenced Nov 24, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request Summary
This pull request modernizes procedure referencing in WW3 by replacing legacy
EXTERNALdeclarations with explicitINTERFACEblocks and structuredCONTAINSsections. The changes improve code safety, compiler verification, and runtime stability within both the core WW3 model and the operational workflow.Description
In this update, the
serv_xnl4v5.f90source file was modified to include explicit INTERFACE definitions for external functions, replacing the former EXTERNAL declarations. This ensures the compiler can perform proper type and argument consistency checks at compile time.Within the
w3profsmdmodule, all previously standalone subroutines and functions have been moved inside the module using theCONTAINSstatement. This refactoring removes the need for external references and enforces a clear internal procedure scope, reducing the risk of mismatched interfaces or undefined references during runtime. To maintain consistency and encapsulation, these subroutines and functions have been set asPRIVATEwithin the module. AdditionalINTERFACEblocks andIMPLICIT NONEstatements were added where required to define function prototypes clearly and enable strict compiler type checking. These updates collectively improve code robustness, eliminate potential runtime errors caused by missing or inconsistent external procedure definitions, and enhance the overall reliability and maintainability of the WW3 and operational workflow.Issue(s) addressed
addressing #1501
Commit Message
replace EXTERNAL declarations with INTERFACE and CONTAINS for safer procedure referencing
Check list
Testing
URSA INTEL: No errors and unexpected differences
matrixCompFull.txt
matrixCompSummary.txt
matrixDiff.txt
URSA GNU: No errors and unexpected differences
matrixCompFull.txt
matrixCompSummary.txt
matrixDiff.txt