-
Notifications
You must be signed in to change notification settings - Fork 170
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
Bug fixes for the Hg simulation with KPP #1336
Conversation
….F90 GeosCore/fullchem_mod.F90 - Replace the KPP global variable "VAR" with "C". The "VAR" and "FIX" variables are now private to the gckpp_Integrator.F90 file, in order to make the KPP-generated chemistry mechanism threadsafe. Signed-off-by: Bob Yantosca <[email protected]>
This commit applies the bug fixes described in geoschem/geos-chem #1286, namely: (1) Add DD_F0 and DD_HSTAR for Hg(II) species (2) Add Hg(II) anchor to HgBrNO2 properties (3) Use molecular weight of 200.59 for Hg(I) and Hg(II) species (4) Change wetdep properties to match Shah et al 2021. Signed-off-by: Bob Yantosca <[email protected]>
Updated by Viral Shah to address a bug in the prior version Signed-off-by: Bob Yantosca <[email protected]>
The MercuryEmis collection contains Hg0 emissions for land, ocean, soil, and snow (as these are computed outside of HEMCO). Signed-off-by: Bob Yantosca <[email protected]>
Evidently the ocean Hg and snow Hg quantities were commented out in the Restart collection in the HISTORY.rc.Hg template file. We have now uncommented these. Signed-off-by: Bob Yantosca <[email protected]>
Headers/state_chm_mod.F90 - Removed N_Hg_CATS from State_Chm - Removed the N_Hg_CATS dimension from various arrays in State_Chm - Removed Hg*_Id_List arrays from State_Chm - Removed the PerSpc = 'HgCat' setting in Get_Metadata_State_Chm Headers/species_mod.F90 - Removed Hg_Cat from the Species derived type Headers/species_database_mod.F90 - Removed references to ThisSpc%HgCat GeosCore/depo_mercury_mod.F90 - Removed Hg_Cat as an argument from Add_Hg* subroutines - Removed the 3rd dimension of DD_Hg* and WD_Hg* module arrays - Removed the 3rd dimension of SNOW_Hg_* pointer arrays - Removed pointers to Hg*_Id_List and Hg*_Cat arrays - Remove initialization of Hg category variables for tagged Hg simulations GeosCore/emissions_mod.F90 - Do not pass Hg_Cat as an argument to Add_Hg* subroutines - Restore call to EmissMercury GeosCore/hco_interface_gc_mod.F90 - Do not pass Hg_Cat as an argument to Add_Hg* subroutines - Restore Hg_EMIS array in Compute_Sflx_for_VDIFF GeosCore/hco_utilities_gc_mod.F90 - Remove references to Check_Ocean_Mercury - Remove initialization of local variables for tagged Hg sims - Remove the N_Hg_CATS dimension when copying arrays from restart files - Remove code specific to the tagged Hg simulation GeosCore/land_mercury_mod.F90 GeosCore/ocean_mercury_mod.F90 - Remove the N_Hg_CATS dimension of module arrays - Remove "DO NN = 1, N_Hg_CATS" loops - Remove code specific to the tagged Hg simulation GeosCore/mercury_mod.f90 - Remove the N_Hg_CATS dimension of module arrays - Remove "DO NN = 1, N_Hg_CATS" loops - Remove code specific to the tagged Hg simulation - Restore EmissMercury, EmitHg, and SrcHg0 routines GeosCore/vdiff_mod.F90 - Remove references to Add_Hg* routines from depo_mercury_mod.F90 GeosCore/convection_mod.F90 GeosCore/wetscav_mod.F90 - Do not pass Hg_Cat as an argument to Add_Hg* subroutines Signed-off-by: Bob Yantosca <[email protected]>
Due to an oversight, we have apparently omitted the call to SrcHg0 from the EmissMercury routine. This has now been restored. Thanks to @arifein for the update. Signed-off-by: Bob Yantosca <[email protected]>
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 looks good to me code-wise, but it may be good for @viral211 to have a quick look at these changes also.
Thanks @yantosca and @msulprizio. The changes look good to me too. |
GEOS-Chem Classic integration tests all passed except for the CO2 simulation: Summary of test results:
------------------------------------------------------------------------------
Execution tests passed: 47
Execution tests failed: 1
Execution tests not yet completed: 0 The error in the CO2 simulation was tracked down to an incorrect entry in |
This PR fixes several minor issues for the Hg specialty simulation, including:
SrcHg0
inGeosCore/mercury_mod.F90
N_Hg_CATS
and related code; this is now obsolete as we no longer have tagged Hg speciesHISTORY.rc.Hg
template fileHISTORY.rc.Hg
template filespecies_database_yml.Hg
to to add new Hg species, and also to addIs_Hg0
,Is_Hg2
,Is_HgP
tagsVAR
andFIX
withC
in the prod/loss diagnostic section offullchem_mod.f90
Although some of these updates touch the run directory, this is for a specialty simulation so we should be able to add it to the 14.0.1 patch version.