mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-05 07:41:11 +00:00
removed assertion that particle IDs are less than number of particles
This commit is contained in:
parent
db6e80a343
commit
69aa5b2676
1 changed files with 6 additions and 3 deletions
|
@ -370,7 +370,7 @@ void buildBox(SimuData *simu, long num_targets, long loaded,
|
||||||
for (uint32_t i = 0; i < num_targets; i++, loaded++)
|
for (uint32_t i = 0; i < num_targets; i++, loaded++)
|
||||||
{
|
{
|
||||||
long pid = particle_id[loaded];
|
long pid = particle_id[loaded];
|
||||||
assert(pid < simu->NumPart);
|
//assert(pid < simu->NumPart);
|
||||||
assert(loaded < boxed->NumPart);
|
assert(loaded < boxed->NumPart);
|
||||||
|
|
||||||
for (int j = 0; j < 3; j++)
|
for (int j = 0; j < 3; j++)
|
||||||
|
@ -713,6 +713,9 @@ int main(int argc, char **argv)
|
||||||
args_info.output_arg);
|
args_info.output_arg);
|
||||||
delete preselector;
|
delete preselector;
|
||||||
|
|
||||||
printf("Done!\n");
|
double subsample = 1.0;
|
||||||
|
if (args_info.subsample_given) subsample = args_info.subsample_arg;
|
||||||
|
if (args_info.resubsample_given) subsample = args_info.resubsample_arg;
|
||||||
|
printf("Done! %5.2e\n", subsample);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue