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

Update code in carbon_gases_mod.F90 for consistency with config file updates from PR #1916 #1923

Merged
merged 2 commits into from
Aug 29, 2023

Conversation

yantosca
Copy link
Contributor

Name and Institution (Required)

Name: Bob Yantosca
Institution: Harvard + GCST

Confirm you have reviewed the following documentation

Describe the update

While integration testing with PR #1916 and PR geoschem/HEMCO#235, we encountered an error in the carbon simulation:

gc_4x5_merra2_carbon................................Execute Simulation....FAIL
...
********************************************
* B e g i n   T i m e   S t e p p i n g !! *
********************************************

---> DATE: 2019/01/01  UTC: 00:00
 HEMCO already called for this timestep. Returning.
Carbon_Gases: Global OH is set to zero!

This issue was traced to code in GeosCore/carbon_gases_mod.F90 that had not been updated to be consistent with the new GLOBAL_OH_GC14 container that was introduced in PR #1916.

We have now added updates so that the code in GeosCore/carbon_gases_mod.F90 now recognizes the GLOBAL_OH_GC14 container. Some if-block logic has also been reworked.

Expected changes

This will allow the carbon simulation to finish normally.

Related Github Issue(s)

GeosCore/carbon_gases_mod.F90
- Rename useGlobOH module variable to useGlobOHbmk10yr, in order to
  better clarify that this indicates we are using OH from a recent
  10-year benchmark.
- Update IF block logic where GLOBAL_OH variable is evaluated from HEMCO.
  The IF block now needs to execute if either OH from the 10yr benchmark
  or OH from version 5 is selected.  Previously, the OH from version 5
  block was nested within the OH from the 10-yr benchmark block.
- Remove ELSE statements
- Update HEMCO option from "GLOBAL_OH" to "GLOBAL_OH_GC14".  Also
  added a note to remind developers that this tag will have to be
  updated to be consistent with the option name in HEMCO_Config.rc.
- Updated IF block logic where the informational message is printed
  as to which OH is being used.

Signed-off-by: Bob Yantosca <yantosca@seas.harvard.edu>
CHANGELOG.md
- Add note about having to update carbon_gases_mod.F90 to be
  consistent with config file updates from PR #1916

Signed-off-by: Bob Yantosca <yantosca@seas.harvard.edu>
@yantosca yantosca added specialty simulations category: Bug Fix Fixes a previously-reported bug labels Aug 29, 2023
@yantosca yantosca added this to the 14.2.1 milestone Aug 29, 2023
@yantosca yantosca requested a review from msulprizio August 29, 2023 16:20
@yantosca yantosca self-assigned this Aug 29, 2023
Copy link
Contributor Author

Integration tests are running.

@yantosca yantosca merged commit e5d91c0 into dev/14.2.1 Aug 29, 2023
@yantosca yantosca deleted the bugfix/carbon-sim-updates-on-top-of-pr1916 branch August 29, 2023 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: Bug Fix Fixes a previously-reported bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants