mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 15:21:11 +00:00
Fixed duplicated name error in generateFromCatalog. Fixed numPart setup from the exact number of accepted particles
This commit is contained in:
parent
5b8a97d170
commit
393b6e756e
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue