yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #12729
[Branch ~yade-pkg/yade/git-trunk] Rev 3903: Fix bug in MatchMaker.
------------------------------------------------------------
revno: 3903
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
timestamp: Mon 2016-06-13 09:37:27 +0200
message:
Fix bug in MatchMaker.
Typo in max-min function.
modified:
pkg/common/MatchMaker.cpp
--
lp:yade
https://code.launchpad.net/~yade-pkg/yade/git-trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== modified file 'pkg/common/MatchMaker.cpp'
--- pkg/common/MatchMaker.cpp 2016-05-31 19:10:52 +0000
+++ pkg/common/MatchMaker.cpp 2016-06-13 07:37:27 +0000
@@ -6,7 +6,7 @@
Real MatchMaker::operator()(int id1, int id2, Real val1, Real val2) const {
const int minId = std::min(id1, id2);
- const int maxId = std::max(id2, id2);
+ const int maxId = std::max(id1, id2);
const auto foundMatchItem = matchSet.find (std::make_pair(minId, maxId));