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

@ -334,9 +334,9 @@ void generateSurfaceMask(generateFromCatalog_info& args ,
// TEST - insert mock galaxies along spheres of survey redshift boundaries
fp = fopen("mock_sphere.txt", "w");
for (int p = 0; p < 0; p++) {
for (int q = 0; q < 0; q++) {
//for (int p = 0; p < full_mask_list.size(); p++) {
vec3 v = mask.pix2vec(full_mask_list[p]);
vec3 v = mask.pix2vec(full_mask_list[q]);
Position p;
double r = args.zMin_arg * LIGHT_SPEED;

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;
}