From b6bd91a9e1118e082debf527ddcfef15f101ff23 Mon Sep 17 00:00:00 2001 From: annlew Date: Tue, 13 Aug 2024 11:49:02 +0200 Subject: [PATCH 1/2] add basic test for my_chem_mech --- cime_config/testmods_dirs/allactive/mychem/shell_commands | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 cime_config/testmods_dirs/allactive/mychem/shell_commands diff --git a/cime_config/testmods_dirs/allactive/mychem/shell_commands b/cime_config/testmods_dirs/allactive/mychem/shell_commands new file mode 100644 index 00000000..b6d1d6a9 --- /dev/null +++ b/cime_config/testmods_dirs/allactive/mychem/shell_commands @@ -0,0 +1,2 @@ +cp /proj/bolinc/users/x_alewi/NorESM2/noresm_el9/cases/cpp_chem_test2/my_chem_mech.in . +./xmlchange --append CAM_CONFIG_OPTS="--usr_mech_infile `pwd`/my_chem_mech.in" From f6ecdc1362a2d18d767fd007c03939d00768dd2f Mon Sep 17 00:00:00 2001 From: annlew Date: Tue, 13 Aug 2024 15:54:58 +0200 Subject: [PATCH 2/2] add test for --usr_mech_infile --- cime_config/testmods_dirs/allactive/mychem/shell_commands | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cime_config/testmods_dirs/allactive/mychem/shell_commands b/cime_config/testmods_dirs/allactive/mychem/shell_commands index b6d1d6a9..d851f0e3 100644 --- a/cime_config/testmods_dirs/allactive/mychem/shell_commands +++ b/cime_config/testmods_dirs/allactive/mychem/shell_commands @@ -1,2 +1,8 @@ -cp /proj/bolinc/users/x_alewi/NorESM2/noresm_el9/cases/cpp_chem_test2/my_chem_mech.in . +rm -f $CIMEROOT/../components/cam/chem_proc/campp + +cp $CIMEROOT/../components/cam/src/chemistry/pp_trop_mam_oslo/chem_mech.in my_chem_mech.in +sed -i 's/2.9/8.8/' my_chem_mech.in +sed -i 's/BEGSIM/*BEGSIM/' my_chem_mech.in +sed -i 's/ENDSIM/*ENDSIM/' my_chem_mech.in + ./xmlchange --append CAM_CONFIG_OPTS="--usr_mech_infile `pwd`/my_chem_mech.in"