Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ only there.
- `DYN` and `ADV` share the module array `FV_Atm`.
- Files not in `CMakeLists.txt` are not compiled (architecture document,
section 2). `FV_PRECISION` is set by the fixture build.
- Error handling in code you write or touch uses the MAPL3 macros (`@MAPL/include/MAPL_ErrLog.h`): `_RC` on calls, `_STAT` on `allocate`, `_ASSERT(cond, msg)` with a message, and `_RETURN(_SUCCESS)` at every successful exit. Convert `RC=STATUS`/`VERIFY_`/`ASSERT_`/`RETURN_` in any routine you change. `_RC` expands to two statements (`rc=status);_VERIFY(status`), so it cannot end a one-line `if`; use a block `if`. Do not add decorative `!----` separator lines.

## Build and test

Expand Down
35 changes: 35 additions & 0 deletions regression/adv-dyn/logging.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
schema_version: 1

# MAPL's default logging writes every rank's warnings to warnings_and_errors.log
# under an MPI lock. Without a field dictionary in the run directory, MAPL warns
# once per variable spec per rank, and the lock serializes the ranks (about 6 s
# of a 17 s Moist case). This config logs to the console only and sets the MAPL
# logger to ERROR; MAPL.profiler keeps the timing tables on rank 0.

formatters:
basic:
class: Formatter
format: '%(name)a15~: %(message)a'

handlers:
console:
class: streamhandler
formatter: basic
unit: OUTPUT_UNIT
level: DEBUG

root:
handlers: [console]
level: WARNING
root_level: INFO

loggers:
MAPL:
level: ERROR
root_level: ERROR

MAPL.profiler:
handlers: [console]
propagate: FALSE
level: WARNING
root_level: INFO
1 change: 1 addition & 0 deletions regression/adv-dyn/mapl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ esmf:
logAppendFlag: false

app_petcount: 6
pflogger: logging.yaml
35 changes: 35 additions & 0 deletions regression/adv-sa/logging.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
schema_version: 1

# MAPL's default logging writes every rank's warnings to warnings_and_errors.log
# under an MPI lock. Without a field dictionary in the run directory, MAPL warns
# once per variable spec per rank, and the lock serializes the ranks (about 6 s
# of a 17 s Moist case). This config logs to the console only and sets the MAPL
# logger to ERROR; MAPL.profiler keeps the timing tables on rank 0.

formatters:
basic:
class: Formatter
format: '%(name)a15~: %(message)a'

handlers:
console:
class: streamhandler
formatter: basic
unit: OUTPUT_UNIT
level: DEBUG

root:
handlers: [console]
level: WARNING
root_level: INFO

loggers:
MAPL:
level: ERROR
root_level: ERROR

MAPL.profiler:
handlers: [console]
propagate: FALSE
level: WARNING
root_level: INFO
1 change: 1 addition & 0 deletions regression/adv-sa/mapl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ esmf:
logAppendFlag: false

app_petcount: 6
pflogger: logging.yaml
35 changes: 35 additions & 0 deletions regression/dyn-sa/logging.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
schema_version: 1

# MAPL's default logging writes every rank's warnings to warnings_and_errors.log
# under an MPI lock. Without a field dictionary in the run directory, MAPL warns
# once per variable spec per rank, and the lock serializes the ranks (about 6 s
# of a 17 s Moist case). This config logs to the console only and sets the MAPL
# logger to ERROR; MAPL.profiler keeps the timing tables on rank 0.

formatters:
basic:
class: Formatter
format: '%(name)a15~: %(message)a'

handlers:
console:
class: streamhandler
formatter: basic
unit: OUTPUT_UNIT
level: DEBUG

root:
handlers: [console]
level: WARNING
root_level: INFO

loggers:
MAPL:
level: ERROR
root_level: ERROR

MAPL.profiler:
handlers: [console]
propagate: FALSE
level: WARNING
root_level: INFO
1 change: 1 addition & 0 deletions regression/dyn-sa/mapl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ esmf:
logAppendFlag: false

app_petcount: 6
pflogger: logging.yaml
Loading