yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #03050
[Branch ~yade-dev/yade/trunk] Rev 1966: - Fix size range in makeCloud. It was generating an interval twice smaller than expected.
------------------------------------------------------------
revno: 1966
committer: Bruno Chareyre <bchareyre@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(); }