Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement support for log levels in MPAS dynamical core #352

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

kuanchihwang
Copy link
Collaborator

Tag name (required for release branches):

None

Originator(s):

kuanchihwang

Descriptions (include the issue title, and the keyword ['closes', 'fixes', 'resolves'] followed by the issue number):

Implement support for log levels in MPAS dynamical core. The log level is configured by the debug_output option, under the cam_logfile_nl group, in the atm_in namelist file.

  • The following log levels are supported:
    • log_level_quiet (a.k.a. debugout_none in CAM-SIMA)
      Log nothing.
    • log_level_info (a.k.a. debugout_info in CAM-SIMA)
      Log plain and user-friendly information about the status of MPAS dynamical core. Public procedures start with this log level.
    • log_level_verbose (a.k.a. debugout_verbose in CAM-SIMA)
      Same as the above, but for private procedures.
    • log_level_debug (a.k.a. debugout_debug in CAM-SIMA)
      Log elaborate information about the inner workings of MPAS dynamical core, which may be useful for diagnosing issues. However, the log volume may be very large.
  • Log messages that originate from CAM-SIMA side are prefixed by "MPAS Interface (N): ", where N is the MPI rank
  • Log messages that originate from MPAS side are prefixed by "MPAS Subdriver (N): ", where N is the MPI rank
  • Log messages have been improved to be more descriptive and user-friendly

Describe any changes made to the build system:

None

Describe any changes made to the namelist:

None

List any changes to the defaults for the input datasets (e.g., boundary datasets):

None

List all files eliminated and why:

None

List all files added and what they do:

None

List all existing files that have been modified, and describe the changes:

  • M src/dynamics/mpas/driver/dyn_mpas_subdriver.F90
    • Implement support for log levels in MPAS dynamical core
  • M src/dynamics/mpas/dyn_comp.F90
    • Implement support for log levels in MPAS dynamical core
  • M src/dynamics/mpas/dyn_coupling.F90
    • Implement support for log levels in MPAS dynamical core
  • M src/dynamics/mpas/dyn_grid.F90
    • Implement support for log levels in MPAS dynamical core

Regression tests:

No changes to any existing tests. All tests pass with respect to the last baseline, sima0_01_001.

* The following log levels are supported:
  * log_level_quiet (a.k.a. debugout_none in CAM-SIMA)
  * log_level_info (a.k.a. debugout_info in CAM-SIMA)
  * log_level_verbose (a.k.a. debugout_verbose in CAM-SIMA)
  * log_level_debug (a.k.a. debugout_debug in CAM-SIMA)
* Log messages that originate from CAM-SIMA side are prefixed by
  "MPAS Interface (N): ", where N is the MPI rank
* Log messages that originate from MPAS side are prefixed by
  "MPAS Subdriver (N): ", where N is the MPI rank
* Log messages have been improved to be more descriptive and user-friendly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant