Skip to content

Commit

Permalink
Merge PR #330 (Set ESMF logging option at run-time via config file)
Browse files Browse the repository at this point in the history
This merge brings PR #330 (Set ESMF logging option at run-time via
config file, by @lizziel) into the GEOS-Chem 14.2.1 development stream.

This PR is necessary to break the hardwired ESMF logging options (which
can only be changed by recompiling).  GCHP users may now select ESMF
log file output options from the new ESMF.rc configuration file,
which is placed in each GCHP run directory.

Signed-off-by: Bob Yantosca <[email protected]>
  • Loading branch information
yantosca committed Jul 18, 2023
2 parents c31ccae + 35e4d13 commit 5994b33
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
## [Unreleased 14.2.1]
### Changed
- `test` now points to `src/GCHP_GridComp/GEOSChem_GridComp/geos-chem/test`

- Hard-coded ESMF logging option removed from GCHPctm.F90

## [Unreleased 14.2.0]
### Fixed
Expand Down
2 changes: 0 additions & 2 deletions src/GCHPctm.F90
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include "MAPL_Generic.h"

Program GCHPctm_Main
use ESMF, only: ESMF_LOGKIND_MULTI_ON_ERROR
use MAPL
use GCHP_GridCompMod, only: ROOT_SetServices => SetServices

Expand All @@ -26,7 +25,6 @@ Program GCHPctm_Main

cap_options = MAPL_CapOptions(cap_rc_file='CAP.rc')
cap_options%logging_config = 'logging.yml'
cap_options%esmf_logging_mode = ESMF_LOGKIND_MULTI_ON_ERROR
cap = MAPL_CAP('GCHP', ROOT_SetServices, cap_options=cap_options)
call cap%run(_RC)
_VERIFY(status)
Expand Down

0 comments on commit 5994b33

Please sign in to comment.