[Kinetics] Allow reactions with A = 0.0

This commit is contained in:
Ray Speth 2013-06-17 14:20:30 +00:00
parent 0f13a7159e
commit b3708cdab5

View file

@ -541,9 +541,9 @@ void getRateCoefficient(const XML_Node& kf, Kinetics& kin,
kin.thermo(kin.surfacePhaseIndex()), rdata);
}
if (coeff[0] <= 0.0 && !rules.allowNegativeA) {
if (coeff[0] < 0.0 && !rules.allowNegativeA) {
throw CanteraError("getRateCoefficient",
"negative or zero A coefficient for reaction "+int2str(rdata.number));
"negative A coefficient for reaction "+int2str(rdata.number));
}
} else if (nm == "Arrhenius_ExchangeCurrentDensity") {
vector_fp coeff(3);