From d2a6042f7f2981e793e2c50f4a69fef408f83bc4 Mon Sep 17 00:00:00 2001 From: Harry Moffat Date: Sat, 8 May 2010 02:02:10 +0000 Subject: [PATCH] Added comments. --- Cantera/src/kinetics/InterfaceKinetics.cpp | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/Cantera/src/kinetics/InterfaceKinetics.cpp b/Cantera/src/kinetics/InterfaceKinetics.cpp index 2f5cd0cd7..4fa4ed391 100644 --- a/Cantera/src/kinetics/InterfaceKinetics.cpp +++ b/Cantera/src/kinetics/InterfaceKinetics.cpp @@ -935,11 +935,27 @@ namespace Cantera { */ void InterfaceKinetics::addReaction(const ReactionData& r) { + /* + * Install the rate coefficient for the current reaction + * in the appropriate data structure. + */ addElementaryReaction(r); - - // operations common to all reaction types + /* + * Add the reactants and products for m_ropnet;the current reaction + * to the various stoichiometric coefficient arrays. + */ installReagents(r); + /* + * Save the reaction and product groups, which are + * part of the ReactionData class, in this class. + * They aren't used for anything but reaction path + * analysis. + */ //installGroups(reactionNumber(), r.rgroups, r.pgroups); + /* + * Increase the internal number of reactions, m_ii, by one. + * increase the size of m_perturb by one as well. + */ incrementRxnCount(); m_rxneqn.push_back(r.equation);