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
[PULL REQUEST] Apply fix for updating manual HEMCO diagnostics #121
Conversation
Passing COL=-1 to Diagn_Update in hco_calc_mod.F90 is needed to update all HEMCO diagnostics, not just the default diagnostics. This is essential to update manual diagnostics, such as those defined in GEOS-Chem's hcoi_gc_diagn_mod.F90 for the CH4, Hg, and TOMAS simulations. Without this fix, arrays containing all zeroes are passed when manual diagnostics are obtained via HCO_GC_GetDiagn. This fix reverts changes made in commit 0573632 for the GCHP adjoint. It is not clear if this has an impact on the GCHP adjoint, but if so then changing the value of COL should be done within an IF block so that it only applies to adjoint simulations. Signed-off-by: Melissa Sulprizio <mpayer@seas.harvard.edu>
Please note that I only tested this with the CH4 simulation. I would recommend further testing in the GEOS-Chem Hg simulation to see if this does resolve the diagnostic issues there and also doing a difference test with GEOS-Chem full-chemistry simulations to ensure zero differences. |
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.
This is straighforward, returning the behavior prior to the merge with the GCHP adjoint updates. Approved.
GEOS-Chem Classic integration tests all passed: Summary of test results:
------------------------------------------------------------------------------
Execution tests passed: 80
Execution tests failed: 0
Execution tests not yet completed: 0
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% All execution tests passed! %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
GCHP integration tests passed. ==============================================================================
GCHP: Execution Test Results
Number of execution tests: 3
==============================================================================
Execution tests:
------------------------------------------------------------------------------
gchp_fullchem_benchmark_merra2_c48...............Execute Simulation.....PASS
gchp_fullchem_standard_merra2_c24................Execute Simulation.....PASS
gchp_TransportTracers_geosfp_c24.................Execute Simulation.....PASS
Summary of execution test results:
------------------------------------------------------------------------------
Execution tests passed: 3
Execution tests failed: 0
Execution tests not completed: 0
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% All execution tests passed! %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% We are good to release 13.3.0. |
I just discovered that this update also will restore the biogenic emissions to their proper values, as the HEMCO MEGAN extension uses manual HEMCO diagnostics (i.e. calling Diagn_Create) to update diagnostics for non-advected species. This leads to small differences (as seen in benchmark 13.4.0-alpha.3, which uses HEMCO 3.2.2.): This leads to very small differences in biogenic emission totals, all less than 0.3%:
|
Several users reported issues with zero emissions in the Hg and CH4 simulations (see #112, geoschem/geos-chem#895, geoschem/geos-chem#1011). The problem was tracked to the call to
Diagn_Update
inhco_calc_mod.F90
. In commit 0573632 for the GCHP adjoint, the argumentCOL=-1
was changed toCOL=HcoState%Diagn%HcoDiagnIDDefault
(whereHcoState%Diagn%HcoDiagnIDDefault
= 1). However,COL=-1
is needed to update all HEMCO diagnostics, not just the default diagnostics. This is essential to update manual diagnostics, such as those defined in GEOS-Chem'shcoi_gc_diagn_mod.F90
for the CH4, Hg, and TOMAS simulations. Without this fix, arrays containing all zeroes are passed when manual diagnostics are obtained viaHCO_GC_GetDiagn
.This commit reverts changes made in commit 0573632 for the GCHP adjoint. It is not clear if this has an impact on the GCHP adjoint, but if so then changing the value of COL should be done within an IF block so that it only applies to adjoint simulations.
This bug fix impacts the CH4, Hg, and TOMAS simulations in GEOS-Chem 13.1.0 - 13.3.2 and HEMCO 3.0.0 - 3.3.0.