From f67d9113dbc1033315d028dd75e9b05510f85d58 Mon Sep 17 00:00:00 2001 From: Ingmar Schoegl Date: Sun, 3 Nov 2019 19:00:41 -0600 Subject: [PATCH] [Kinetics] issue warning for zero T2 Troe coefficient --- src/kinetics/Falloff.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/kinetics/Falloff.cpp b/src/kinetics/Falloff.cpp index 011ac713a..3332bb1cc 100644 --- a/src/kinetics/Falloff.cpp +++ b/src/kinetics/Falloff.cpp @@ -8,6 +8,7 @@ #include "cantera/base/stringUtils.h" #include "cantera/base/ctexceptions.h" +#include "cantera/base/global.h" #include "cantera/kinetics/Falloff.h" namespace Cantera @@ -43,6 +44,9 @@ void Troe::init(const vector_fp& c) } if (c.size() == 4) { + if (std::abs(c[3]) < SmallNumber) { + warn_user("Troe::init", "Zero T2 value is suppressed."); + } m_t2 = c[3]; } }