|
ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
|
Radiation module diagnostic output and CSV logging. More...
#include <string>#include <fstream>#include <limits>#include <AMReX.H>#include <AMReX_REAL.H>

Go to the source code of this file.
Classes | |
| class | RadiationDiagnostics |
| CSV logger and debug-print manager for radiation module. More... | |
Radiation module diagnostic output and CSV logging.
Follows the debug-print and diagnostic-output conventions established in the ERF-SLUCM branch (see Source/UrbanCanopy/ERF_UCMDiagnostics.H for reference pattern).
All debug prints use the bracketed-tag prefix format: [RAD][ClassName::function] step={nstep} time={time} ...
Tags:
Debug prints only emit when erf.radiation.v >= 1 (default 0). However, RADIATION_DIAG: lines always print (required for RegTest scripts).
All host-side debug output is guarded by amrex::ParallelDescriptor::IOProcessor(), matching the UCMDiagnostics pattern.
The RadiationDiagnostics class appends rows to a CSV file containing simulation-level radiation quantities (e.g., surface SW/LW, TOA fluxes). RegTest check scripts parse the RADIATION_DIAG: prefix to extract values.