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

Turn off emission extensions when EMISSIONS logical is set to false #250

Merged
merged 1 commit into from Nov 28, 2023

Conversation

msulprizio
Copy link
Contributor

Name and Institution (Required)

Name: Melissa Sulprizio
Institution: Harvard / GCST

Describe the update

The EMISSIONS logical switch in HEMCO_Config.rc currently only turns off base emissions and not the emission extensions. The emission extension data are bracketed by the logical so those data are not read in. However, because the extensions themselves are still on, they get called in HEMCO and result in the model crashing because the input data can't be found.

This is now fixed by adding a check in subroutine ExtSwitch2Buffer (in hco_config_mod.F90) to see if EMISSIONS is set and using that to define a local logical DoEmis. In that same routine, if DoEmis is false then all emission extensions will be defined with Enabled = .FALSE. to avoid calling them during the run stage of HEMCO.

Addresses #249.

Expected changes

This fix will result in zero differences in out-of-the-box simulations because EMISSIONS is set to true by default in all simulations.

Related Github Issue(s)

The EMISSIONS logical switch in HEMCO_Config.rc currently only turns off
base emissions and not the emission extensions. The emission extension data
are bracketed by the logical so those data are not read in. However, because
the extensions themselves are still on, they get called in HEMCO and result
in the model crashing because the input data can't be found.

This is now fixed by adding a check in subroutine ExtSwitch2Buffer (in
hco_config_mod.F90) to see if EMISSIONS is set and using that to define a
local logical DoEmis. In that same routine, if DoEmis is false then all
emission extensions will be defined with Enabled = .FALSE. to avoid calling
them during the run stage of HEMCO.

Addresses #249.

Signed-off-by: Melissa Sulprizio <mpayer@seas.harvard.edu>
@msulprizio msulprizio added topic: Configuration Files Related to HEMCO configuration files category: Bug Fix Fixes a bug that was previously reported labels Nov 28, 2023
@yantosca yantosca self-assigned this Nov 28, 2023
Copy link
Contributor

@yantosca yantosca left a comment

Choose a reason for hiding this comment

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

This all looks good to merge. I'll start working on getting this into the no-diff-to-benchmark branch. Thanks @msulprizio!

@msulprizio msulprizio added this to the 3.7.2 milestone Nov 28, 2023
@yantosca
Copy link
Contributor

All GEOS-Chem Classic integration tests (except for TOMAS) passed:

==============================================================================
GEOS-Chem Classic: Execution Test Results

GCClassic #026388b HEMCO submod update: Include script to change HEMCO version numbers
GEOS-Chem #78c1b7dc3 Merge PR #2042 (Fix HEMCO_Config.rc for CH4 and carbon simulations)
HEMCO     #7e36ad3 Merge PR #250 (Turn off emission extensions when EMISSIONS is off )

Using 24 OpenMP threads
Number of execution tests: 27

Submitted as SLURM job: 11020335
============================================================================== 

Summary of test results:
------------------------------------------------------------------------------
Execution tests passed: 25
Execution tests failed: 2
Execution tests not yet completed: 0

Also all integration tests were identical to the integration tests for PR #2042 except for:

  • TOMAS (failed)
  • APM (parallelization error)
  • RRTMG (numerical noise in RRTMG diagnostic collection)

@yantosca
Copy link
Contributor

All GCHP integration tests passed:

==============================================================================
GCHP: Execution Test Results

GCHP      #fe78a2b HEMCO submod update: Include script to change HEMCO version numbers
GEOS-Chem #78c1b7dc3 Merge PR #2042 (Fix HEMCO_Config.rc for CH4 and carbon simulations)
HEMCO     #7e36ad3 Merge PR #250 (Turn off emission extensions when EMISSIONS is off )

Number of execution tests: 5

Submitted as SLURM job: 11020520
==============================================================================
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%  All execution tests passed!  %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

All integration tests were also zero-diff w/r/t the integration test for PR #2042.

@yantosca yantosca merged commit 7e36ad3 into dev/no-diff-to-benchmark Nov 28, 2023
1 check passed
@yantosca yantosca deleted the bugfix/emissions-off branch November 28, 2023 22:35
yantosca added a commit that referenced this pull request Dec 1, 2023
This is the official release of HEMCO 3.7.2.  Updates include:

- Add utility scripts to change version numbers before release (PR #242)
- Rename HEMCO Config.rc.sample to HEMCO_Config.rc for standalone (PR #245)
- Increase string length for netCDF variable name (PR #248)
- Turn off emission extensions when EMISSIONS logical is false (PR #250)

Signed-off-by: Bob Yantosca <yantosca@seas.harvard.edu>
@lizziel
Copy link
Contributor

lizziel commented Dec 11, 2023

Related issue: geoschem/geos-chem#1420

@lizziel
Copy link
Contributor

lizziel commented Dec 11, 2023

I verified this works in GCHP fullchem and transport tracers simulations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: Bug Fix Fixes a bug that was previously reported topic: Configuration Files Related to HEMCO configuration files
Projects
None yet
3 participants