yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #05623
[Branch ~yade-dev/yade/trunk] Rev 2424: Fix compilation warning in SpherePack::particleSD
------------------------------------------------------------
revno: 2424
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
branch nick: trunk
timestamp: Thu 2010-09-02 13:58:43 +0200
message:
Fix compilation warning in SpherePack::particleSD
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-09-02 10:09:05 +0000
+++ pkg/dem/DataClass/SpherePack.cpp 2010-09-02 11:58:43 +0000
@@ -234,7 +234,7 @@
const int maxTry=1000;
Vector3r size=mx-mn;
if(periodic)(cellSize=size);
- for (int ii=0; ii<radii.size(); ii++){
+ for (unsigned int ii=0; ii<radii.size(); ii++){
Real r=radii[ii]; // select radius
for(int i=0; i<numbers[ii]; i++) { // place as many spheres as required by the psd for the selected radius into the free spot
int t;