ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_SBMRepresentation.H
Go to the documentation of this file.
1 #ifndef ERF_SBM_REPRESENTATION_H_
2 #define ERF_SBM_REPRESENTATION_H_
3 
4 #include "ERF_SpectralGrid.H"
5 
6 namespace erf_sbm {
7 
8 /** Stable scientific identities selected from a population's stored moments. */
10  const char* representation;
11  const char* reconstruction;
12  const char* packet_remap;
13 };
14 
15 [[nodiscard]] constexpr RepresentationIdentity
16 representation_identity (const MomentMode mode) noexcept
17 {
18  switch (mode) {
20  return {"fixed-pivot-1m-v1", "fixed-pivot-delta-v1", "fixed-pivot-two-center-v1"};
22  return {"interval-2m-v1", "mean-delta-2m-v1", "actual-mass-interval-v1"};
23  }
24  return {"invalid-representation", "invalid-reconstruction", "invalid-packet-remap"};
25 }
26 
27 } // namespace erf_sbm
28 
29 #endif
Definition: ERF.H:108
constexpr RepresentationIdentity representation_identity(const MomentMode mode) noexcept
Definition: ERF_SBMRepresentation.H:16
MomentMode
Definition: ERF_SpectralGrid.H:19
Definition: ERF_SBMRepresentation.H:9
const char * representation
Definition: ERF_SBMRepresentation.H:10
const char * reconstruction
Definition: ERF_SBMRepresentation.H:11
const char * packet_remap
Definition: ERF_SBMRepresentation.H:12