mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 23:31:12 +00:00
Reset the number generator before rerunning the preprocessor
This commit is contained in:
parent
5cf7a94538
commit
7e121e5b5d
2 changed files with 4 additions and 0 deletions
|
@ -592,6 +592,9 @@ int main(int argc, char **argv)
|
||||||
else
|
else
|
||||||
makeBoxFromSimulation(loader, simuOut, metricOperation, args_info);
|
makeBoxFromSimulation(loader, simuOut, metricOperation, args_info);
|
||||||
|
|
||||||
|
// Reset the random number generator
|
||||||
|
gsl_rng_set(rng, args_info.subsample_seed_arg);
|
||||||
|
|
||||||
long loaded = 0;
|
long loaded = 0;
|
||||||
for (int nf = 0; nf < loader->num_files(); nf++)
|
for (int nf = 0; nf < loader->num_files(); nf++)
|
||||||
{
|
{
|
||||||
|
|
|
@ -97,6 +97,7 @@ public:
|
||||||
filteredCopy(d->Id, accepted, d->NumPart);
|
filteredCopy(d->Id, accepted, d->NumPart);
|
||||||
filteredCopy(d->type, accepted, d->NumPart);
|
filteredCopy(d->type, accepted, d->NumPart);
|
||||||
delete[] accepted;
|
delete[] accepted;
|
||||||
|
d->NumPart = numAccepted;
|
||||||
|
|
||||||
return d;
|
return d;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue