Skip to content

Quiet MAPL logging in the Moist and GWD regression cases; update Moist docs - #1574

Merged
pchakraborty merged 1 commit into
release/MAPL-v3from
feature/pchakrab/moist-regression-logging-and-docs
Nov 10, 2026
Merged

pchakraborty merged 1 commit into
release/MAPL-v3from
feature/pchakrab/moist-regression-logging-and-docs

Conversation

@pchakraborty

@pchakraborty pchakraborty commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Logging in the regression cases

Adds a logging.yaml to gwd-ncar-sa and the three Moist cases (moist-gfdl1m-gf-uw-sa, moist-gfdl1m-gf-shoc-sa, moist-bacm1m-gf-uw-sa) and loads it from mapl.yaml with a top-level pflogger: logging.yaml. It sends logs to the console only, sets the MAPL logger to ERROR and keeps MAPL.profiler at INFO on the root rank.

The cases run without a field dictionary, so MAPL warns once per variable spec per rank (about 5,700 warnings in a Moist case, from History SetServices), and its default logging writes each one to warnings_and_errors.log under an MPI lock, which serializes the ranks. perf showed this was about 6 s of each 17 s Moist test. With logging.yaml the Moist tests take about 9 s, and with GEOS-ESM/MAPL#5500 about 7 s. The same file is being added to the GOCART (GEOS-ESM/GOCART#501), GEOSradiation_GridComp (GEOS-ESM/GEOSradiation_GridComp#116) and FVdycoreCubed_GridComp (GEOS-ESM/FVdycoreCubed_GridComp#445) regression cases; the PRs are independent.

The Physics regression README.md documents the logging setup and gets a "Run time" section: where the remaining time goes (MAPL initialize, mostly ESMF Info metadata lookups that throw C++ exceptions for missing keys; Moist's own Run is about 0.03 s).

Moist documentation after #1566

Testing

ctest -L REGRESSION (ifx Debug): 32/32 pass with the logging files in every GEOS case directory. The Process_Library.F90 change is a comment.

…t docs

Each case directory gets a logging.yaml (console output only, MAPL logger at ERROR) that mapl.yaml loads with `pflogger: logging.yaml`. Without a field dictionary MAPL warns once per variable spec per rank, and its default logging writes each warning to warnings_and_errors.log under an MPI lock, which serializes the ranks (about 6 s of each 17 s Moist test). The Physics regression README documents this and records where the remaining run time goes.

Moist porting notes and friendlies-to-services note updated after #1566 (BACM_1M ported, CONVECTION_TRACER == 1 dropped, line references). FILLQ2ZERO gets a TODO comment for #1570. AGENTS.md: add the MAPL3 error-macro rule.
@pchakraborty
pchakraborty merged commit b1825cc into release/MAPL-v3 Nov 10, 2026
22 checks passed
@pchakraborty
pchakraborty deleted the feature/pchakrab/moist-regression-logging-and-docs branch November 10, 2026 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0 diff The changes in this pull request have verified to be zero-diff with the target branch. MAPL3 MAPL 3 Related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants