← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-dev/yade/trunk] Rev 2615: Fix : mistake in prev. commit while cleaning cylinder code.

 

------------------------------------------------------------
revno: 2615
committer: Bruno Chareyre <bruno.chareyre@xxxxxxxxxxx>
branch nick: yade
timestamp: Wed 2010-12-15 12:30:40 +0100
message:
  Fix : mistake in prev. commit while cleaning cylinder code.
modified:
  pkg/common/Cylinder.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 'pkg/common/Cylinder.cpp'
--- pkg/common/Cylinder.cpp	2010-12-15 10:11:41 +0000
+++ pkg/common/Cylinder.cpp	2010-12-15 11:30:40 +0000
@@ -97,6 +97,7 @@
 					scm=YADE_PTR_CAST<CylScGeom>(c->geom);
 // 					scm->duplicate = intr;
 					scm->isDuplicate = true;
+					scm->trueInt = cylinderSt->chains[cylinderSt->chainNumber][cylinderSt->rank-1];
 					isNew = false;
 					return true;}
 			} else scm->isDuplicate=true;
@@ -114,6 +115,7 @@
 				c->phys = intr->phys;
 				scm=YADE_PTR_CAST<CylScGeom>(c->geom);
 // 				scm->duplicate = intr;
+				scm->trueInt = cylinderSt->chains[cylinderSt->chainNumber][cylinderSt->rank+1];
 				scm->isDuplicate = true;
 				isNew = false;
 				return true;