[Kinetics] issue warning for zero T2 Troe coefficient
This commit is contained in:
parent
2fdbce42b2
commit
f67d9113db
1 changed files with 4 additions and 0 deletions
|
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue