Fixed duplicated name error in generateFromCatalog. Fixed numPart setup from the exact number of accepted particles

This commit is contained in:
Guilhem Lavaux 2013-02-27 12:59:28 -06:00
parent 5b8a97d170
commit 393b6e756e
2 changed files with 3 additions and 3 deletions

View file

@ -74,7 +74,7 @@ void SimulationLoader::basicPreprocessing(SimuData *d,
}
filteredCopy(d->Id, accepted, d->NumPart);
filteredCopy(d->type, accepted, d->NumPart);
d->NumPart = accepted;
d->NumPart = numAccepted;
delete[] accepted;
}