yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #04136
[Branch ~yade-dev/yade/trunk] Rev 2181: (Remove unnecessary aseerts in InteractionContainer.)
------------------------------------------------------------
revno: 2181
committer: Václav Šmilauer <eudoxos@xxxxxxxx>
branch nick: trunk
timestamp: Mon 2010-04-26 00:08:06 +0200
message:
(Remove unnecessary aseerts in InteractionContainer.)
modified:
core/InteractionContainer.cpp
--
lp:yade
https://code.launchpad.net/~yade-dev/yade/trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription
=== modified file 'core/InteractionContainer.cpp'
--- core/InteractionContainer.cpp 2010-04-25 22:07:12 +0000
+++ core/InteractionContainer.cpp 2010-04-25 22:08:06 +0000
@@ -22,9 +22,9 @@
// inserted element maps id2->currSize; currSize will be incremented immediately
if(!vecmap[id1].insert(pair<body_id_t,size_t>(id2,currSize)).second) return false; // id1,id2 pair already present
- assert(intrs.size()==currSize);
+ //assert(intrs.size()==currSize);
intrs.resize(++currSize); // currSize updated
- assert(intrs.size()==currSize);
+ //assert(intrs.size()==currSize);
intrs[currSize-1]=i; // assign last element
@@ -68,10 +68,10 @@
if (id1>id2) swap(id1,id2);
vecmap[id1][id2]=iid;
}
- assert(intrs.size()==currSize);
+ //assert(intrs.size()==currSize);
// in either case, last element can be removed now
intrs.resize(--currSize); // currSize updated
- assert(intrs.size()==currSize);
+ //assert(intrs.size()==currSize);
return true;
}