Skip to content

Commit

Permalink
Use HEMCO config files in Buildconf/camconf when running with GEOS-Chem
Browse files Browse the repository at this point in the history
GEOS-Chem expects to use HEMCO configuration files that are included in
the GEOS-Chem repository. Those files get copied into Buildconf/camconf
during the first build of any GEOS-Chem compset. If not using GEOS-Chem
then HEMCO files are read from the input data path specified as namelist
defaults. This update adds a modifier to change the hemco_config_file and
hemco_diagn_file namelist parameters when building the namelist for a
GEOS-Chem compset to be simply HEMCO_Config.rc and HEMCO_Diagn.rc, with no
absolute path specified.

Signed-off-by: Lizzie Lundgren <[email protected]>
  • Loading branch information
lizziel committed Aug 29, 2023
1 parent 8796376 commit 750cf52
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bld/build-namelist
Original file line number Diff line number Diff line change
Expand Up @@ -2963,6 +2963,12 @@ if ($nl->get_value('use_hemco') =~ m/$TRUE/io) {
# ignored at runtime when HEMCO is used.
$nl->delete_variable('chem_inparm', 'ext_frc_specifier');
$nl->delete_variable('chem_inparm', 'srf_emis_specifier');

# If using GEOS-Chem reset paths of HEMCO configuration files to local filename only
if ($chem =~ /geoschem/) {
$nl->set_variable_value('hemco_nl', 'hemco_config_file', "'HEMCO_Config.rc'");
$nl->set_variable_value('hemco_nl', 'hemco_diagn_file', "'HEMCO_Diagn.rc'");
}
}

# Physics options
Expand Down

0 comments on commit 750cf52

Please sign in to comment.