Closed akubaryk closed 4 years ago
I've implemented diagnostic and verbosity levels in the SWPC mediator to control the volume of output generated at runtime through NUOPC Diagnostic
and Verbosity
standard attributes, which are set in nems.configure
(see example below).
# MED #
MED_model: swpc
MED_petlist_bounds: 72 111
MED_attributes::
Verbosity = max
Diagnostic = 131072
::
Verbosity
Verbose mode is enabled by setting bit 8 (e.g. Verbosity = 256). It prints information about the imported and exported set of fields and the computed route handles to standard output.
Diagnostic
Diagnostic mode is enabled setting bit 17 (e.g. Diagnostic = 131072). It writes to the ESMF log files PET-local minimum and maximum values of imported and exported fields before (src
) and after (dst
) regridding. Note that diagnostic bits 1-16 are reserved for NUOPC standard diagnostics.
Minor changes are also included for code cleanup.
To address #27, changes from @ZhuxiaoLi66 and myself.
This includes some general source cleanup in WAM (some backup files that are not actually in the source tree), as well as general print cleanup in IPE, the mediator, and WAM. We need feedback particularly on the approach in the NEMS submodule, @rmontuoro.