[Kinetics] Fix setupInterfaceReaction to parse coverage dependencies

This commit is contained in:
Ray Speth 2015-04-25 11:31:27 -04:00
parent a15d9c17e2
commit 550caaca9e

View file

@ -492,6 +492,16 @@ void setupInterfaceReaction(InterfaceReaction& R, const XML_Node& rxn_node)
R.is_sticking_coefficient = true;
R.sticking_species = arr["species"];
}
std::vector<XML_Node*> cov = arr.getChildren("coverage");
for (std::vector<XML_Node*>::iterator iter = cov.begin();
iter != cov.end();
++iter)
{
CoverageDependency& cdep = R.coverage_deps[(*iter)->attrib("species")];
cdep.a = getFloat(**iter, "a", "toSI");
cdep.m = getFloat(**iter, "m");
cdep.E = getFloat(**iter, "e", "actEnergy") / GasConstant;
}
setupElementaryReaction(R, rxn_node);
}