-
Notifications
You must be signed in to change notification settings - Fork 7
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
Improve error handling #19
Conversation
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.
Thanks @lizziel for this. I've noted that there are a lot of subroutine calls where we do not trap the RC error code. Otherwise the error won't get passed back to the calling routine and won't eventually reach the main program.
Thanks @lizziel! |
Signed-off-by: Lizzie Lundgren <[email protected]>
Signed-off-by: Lizzie Lundgren <[email protected]>
Signed-off-by: Lizzie Lundgren <[email protected]>
Signed-off-by: Lizzie Lundgren <[email protected]>
Signed-off-by: Lizzie Lundgren <[email protected]>
RC is now passed back to parent model. Signed-off-by: Lizzie Lundgren <[email protected]>
Signed-off-by: Lizzie Lundgren <[email protected]>
Signed-off-by: Lizzie Lundgren <[email protected]>
Signed-off-by: Lizzie Lundgren <[email protected]>
Signed-off-by: Lizzie Lundgren <[email protected]>
bc0fa37
to
f86d9de
Compare
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.
Thanks @lizziel, it's all good now. Feel free to merge into dev/7.7.2.
Signed-off-by: Lizzie Lundgren <[email protected]>
This PR resulted in a significant slow-down in GEOS-Chem photolysis in 14.4.2. See #23 for the fix which will be included in GEOS-Chem 14.4.3, and released as Cloud-J 7.7.3. |
Name and Institution (Required)
Name: Lizzie Lundgren
Institution: Harvard University
Describe the update
This PR removes the legacy EXITC subroutine which stops the model upon error and replaces it with new subroutine CLOUDJ_ERROR which prints a message and returns RC flag equal to CLDJ_FAILURE. The RC flag is then passed up the calling stack to the parent model for model-specific error handling.
This PR also includes a few no diff structural improvements, including removing redundant instances of implicit none and using "(:)" when assigning all values of an array a constant value.
This update requires updates in all parent models, including GEOS-Chem.
Expected changes
This is a no diff update.
Reference(s)
None
Related Github Issues and PRs
geoschem/geos-chem#2353 (Merge required at the time as this PR)