Skip to content

Commit

Permalink
[Doc] Update docstring for Kinetics::checkDuplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
speth committed Jan 27, 2017
1 parent c982f50 commit 2678b57
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions include/cantera/kinetics/Kinetics.h
Original file line number Diff line number Diff line change
Expand Up @@ -846,12 +846,15 @@ class Kinetics
return true;
}

//! Check for duplicate reactions.
/**
* If `throw_err` is true, then an exception will be thrown if any unmarked
* duplicate reactions are found. Otherwise, the indices of the first pair
* of duplicate reactions found will be returned. If no duplicate reactions
* are found, returns `(npos, npos)`.
//! Check for unmarked duplicate reactions and unmatched marked duplicates
/**
* If `throw_err` is true, then an exception will be thrown if either any
* unmarked duplicate reactions are found, or if any marked duplicate
* reactions do not have a matching duplicate reaction. If `throw_err` is
* false, the indices of the first pair of duplicate reactions found will be
* returned, or the index of the unmatched duplicate will be returned as
* both elements of the pair. If no unmarked duplicates or unmatched marked
* duplicate reactions are found, returns `(npos, npos)`.
*/
virtual std::pair<size_t, size_t> checkDuplicates(bool throw_err=true) const;

Expand Down

0 comments on commit 2678b57

Please sign in to comment.