ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_RadiationDiagnostics.H File Reference

Radiation module diagnostic output and CSV logging. More...

#include <string>
#include <fstream>
#include <limits>
#include <AMReX.H>
#include <AMReX_REAL.H>
Include dependency graph for ERF_RadiationDiagnostics.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  RadiationDiagnostics
 CSV logger and debug-print manager for radiation module. More...
 

Detailed Description

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).

TAGGED DEBUG FORMAT:

All debug prints use the bracketed-tag prefix format: [RAD][ClassName::function] step={nstep} time={time} ...

Tags:

  • [RAD] — module tag (parallel to [UCM])
  • [ClassName::function] — call-site tag for grepability

VERBOSITY CONTROL:

Debug prints only emit when erf.radiation.v >= 1 (default 0). However, RADIATION_DIAG: lines always print (required for RegTest scripts).

MPI SAFETY:

All host-side debug output is guarded by amrex::ParallelDescriptor::IOProcessor(), matching the UCMDiagnostics pattern.

CSV OUTPUT:

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.