[Kinetics] added const version of Kinetics::reaction

This commit is contained in:
g3bk47 2016-10-15 18:09:58 +02:00 committed by Ray Speth
parent 50d0f9913f
commit e83b095c3a
2 changed files with 8 additions and 0 deletions

View file

@ -782,6 +782,8 @@ public:
* Return the Reaction object for reaction *i*.
*/
shared_ptr<Reaction> reaction(size_t i);
shared_ptr<const Reaction> reaction(size_t i) const;
//! Determine behavior when adding a new reaction that contains species not
//! defined in any of the phases associated with this kinetics manager. If

View file

@ -649,5 +649,11 @@ shared_ptr<Reaction> Kinetics::reaction(size_t i)
checkReactionIndex(i);
return m_reactions[i];
}
shared_ptr<const Reaction> Kinetics::reaction(size_t i) const
{
checkReactionIndex(i);
return m_reactions[i];
}
}