Skip to content

Commit

Permalink
Fix use of 'scale' and 'OneWayFlow' options in ReactionPathDiagram
Browse files Browse the repository at this point in the history
  • Loading branch information
speth committed Jan 27, 2017
1 parent 5fcbfde commit eef5540
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/kinetics/ReactionPath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,12 @@ void ReactionPathDiagram::exportToDot(ostream& s)
}
}
} else {
for (size_t i = 0; i < nPaths(); i++) {
flmax = std::max(path(i)->flow(), flmax);
if (scale < 0) {
for (size_t i = 0; i < nPaths(); i++) {
flmax = std::max(path(i)->flow(), flmax);
}
} else {
flmax = scale;
}

for (size_t i = 0; i < nPaths(); i++) {
Expand Down

0 comments on commit eef5540

Please sign in to comment.