------------------------------------------------------------
revno: 1966
committer: Bruno Chareyre <bchare...@r1arduina>
branch nick: trunk
timestamp: Wed 2010-01-13 17:52:27 +0100
message:
  - Fix size range in makeCloud. It was generating an interval twice smaller 
than expected.
modified:
  pkg/dem/DataClass/SpherePack.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/dem/DataClass/SpherePack.cpp'
--- pkg/dem/DataClass/SpherePack.cpp	2010-01-05 22:36:42 +0000
+++ pkg/dem/DataClass/SpherePack.cpp	2010-01-13 16:52:27 +0000
@@ -89,7 +89,7 @@
 	if(periodic)(cellSize=size);
 	for(int i=0; (i<num) || (num<0); i++) {
 		int t;
-		Real r=(rnd()-.5)*rRelFuzz*rMean+rMean; 
+		Real r=2*(rnd()-.5)*rRelFuzz*rMean+rMean; 
 		for(t=0; t<maxTry; ++t){
 			Vector3r c;
 			if(!periodic) { for(int axis=0; axis<3; axis++) c[axis]=mn[axis]+r+(size[axis]-2*r)*rnd(); }

_______________________________________________
Mailing list: https://launchpad.net/~yade-dev
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to