140 inline void debuglog(
const std::string& msg,
int loglevel)
157 template <
typename... Args>
159 if (
sizeof...(args) == 0) {
178 template <
typename... Args>
186 void writeline(
char repeat,
size_t count,
187 bool endl_after=
true,
bool endl_before=
false);
190 void warn_deprecated(
const std::string& method,
const std::string& extra=
"");
196 void _warn_user(
const std::string& method,
const std::string& extra);
205 template <
typename... Args>
206 void warn_user(
const std::string& method,
const std::string& msg,
207 const Args&... args) {
208 if (
sizeof...(args) == 0) {
211 _warn_user(method, fmt::format(msg, args...));
232 doublereal
toSI(
const std::string& unit);
242 XML_Node*
get_XML_File(
const std::string& file,
int debug = 0);
269 XML_Node*
get_XML_Node(
const std::string& file_ID, XML_Node* root);
295 const std::string& file_ID,
300 inline T
clip(
const T& value,
const T& lower,
const T& upper)
302 return std::max(lower, std::min(upper, value));
306 template <
typename T>
int sign(T x) {
307 return (T(0) < x) - (x < T(0));
This file contains definitions of terms that are used in internal routines and are unlikely to need m...
Wrapper for either system-installed or local headers for fmt.
void writelog(const std::string &fmt, const Args &... args)
Write a formatted message to the screen.
void writelogf(const char *fmt, const Args &... args)
Write a formatted message to the screen.
Namespace for the Cantera kernel.
Versions 6.2.0 and 6.2.1 of fmtlib do not include this define before they include windows....