Skip to content

Commit

Permalink
Merge PR #300 (Fix bugs in GCC vs GCHP TT benchmark mass tables )
Browse files Browse the repository at this point in the history
This merge brings PR #300 (Fix bugs in GCC vs GCHP transport tracer benchmark
mass tables, by @lizziel) into the GCPy development stream.

This PR makes sure that we get mass table output for the TransportTracers
benchmarks when comparing GCHP vs. GCC.

Signed-off-by: Bob Yantosca <[email protected]>
  • Loading branch information
yantosca committed Feb 5, 2024
2 parents e68cb5c + 9940b8f commit a55badc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Prevent an import error by using `seaborn-v0_8-darkgrid` in`gcpy/benchmark/modules/benchmark_models_vs_obs.py`
- `gcpy/file_regrid.py` now creates GCHP files with `DELP_DRY` instead of `DELPDRY`
- Fixed bugs in GCHP vs GCHP sections of 1-yr benchmark run scripts to allow comparison of GCHP runs with different grid resolutions
- Fixed silent bug in transport tracer benchmark GCC vs GCHP mass tables preventing them from being generated

## [1.4.2] - 2024-01-26
### Added
Expand Down
18 changes: 16 additions & 2 deletions gcpy/benchmark/modules/run_1yr_tt_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ def run_benchmark(config, bmk_year_ref, bmk_year_dev):
)
gchp_vs_gcc_refrstdir = os.path.join(
config["paths"]["main_dir"],
config["data"]["ref"]["gchp"]["dir"],
config["data"]["ref"]["gchp"]["restarts_subdir"]
config["data"]["ref"]["gcc"]["dir"],
config["data"]["ref"]["gcc"]["restarts_subdir"]
)
gchp_vs_gchp_refrstdir = os.path.join(
config["paths"]["main_dir"],
Expand Down Expand Up @@ -810,6 +810,20 @@ def gchp_vs_gcc_mass_table(mon):
"is_pre_14.0"]
)

# Create tables
bmk.make_benchmark_mass_tables(
refpath,
gchp_vs_gcc_refstr,
devpath,
gchp_vs_gcc_devstr,
dst=gchp_vs_gcc_tablesdir,
subdst=bmk_mon_yr_strs_dev[mon],
label=f"at 01{bmk_mon_yr_strs_dev[mon]}",
overwrite=True,
spcdb_dir=spcdb_dir,
dev_met_extra=devareapath
)

# Create tables in parallel
# Turn off parallelization if n_jobs==1
if config["options"]["n_cores"] != 1:
Expand Down

0 comments on commit a55badc

Please sign in to comment.