Commit e5ef2c59 authored by jclamber's avatar jclamber

fix bug when selecting range of particles with step

git-svn-id: http://svn.oamp.fr/repos/unsio/trunk@117 ce2cc22f-6084-46ce-a062-084b172ee5dc
parent fb729575
......@@ -87,8 +87,8 @@ bool UserSelection::setSelection(const std::string _sel,
for (int j=pov[i].first; j<=pov[i].last; j++) {
indx2[ptr].i = indx[j].i;
indx2[ptr].p = indx[j].p;
assert(indx2[ptr].i!=-1);
assert(indx[j].p == (int) i);
//assert(indx2[ptr].i!=-1);
//assert(indx[j].p == (int) i);
assert(ptr<nbody);
ptr++;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment