17 if (!std::isfinite(tmp)) {
18 if (std::isnan(tmp)) {
30 for (
size_t i = 0; i < N; i++) {
31 if (!std::isfinite(values[i])) {
32 string message = name +
" contains non-finite elements:\n\n";
33 for (
size_t j = 0; j < N; j++) {
34 if (!std::isfinite(values[j])) {
35 message += fmt::format(
"{}[{}] = {}\n", name, j, values[j]);
Base class for exceptions thrown by Cantera classes.
This file contains definitions of constants, types and terms that are used in internal routines and a...
Definitions for the classes that are thrown when Cantera experiences an error condition (also contain...
Namespace for the Cantera kernel.
void checkFinite(const double tmp)
Check to see that a number is finite (not NaN, +Inf or -Inf)
Contains declarations for string manipulation functions within Cantera.