[Kinetics] added const version of Kinetics::reaction
This commit is contained in:
parent
50d0f9913f
commit
e83b095c3a
2 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue