1 #ifndef ERF_SBM_CANONICAL_IDENTITY_H_
2 #define ERF_SBM_CANONICAL_IDENTITY_H_
4 #include <AMReX_REAL.H>
21 std::ostringstream out;
22 out.imbue(std::locale::classic());
23 out.setf(std::ios_base::scientific, std::ios_base::floatfield);
24 out << std::setprecision(std::numeric_limits<T>::max_digits10) << value;
29 const bool allow_unbounded_nan =
false)
31 if (allow_unbounded_nan && std::isnan(value))
return "unbounded";
@ T
Definition: ERF_IndexDefines.H:180
std::string canonical_real(const amrex::Real value, const bool allow_unbounded_nan=false)
Definition: ERF_SBMCanonicalIdentity.H:28
std::string canonical_decimal(const T value)
Definition: ERF_SBMCanonicalIdentity.H:19