mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 23:31:12 +00:00
First steps in purging the tracking of mock particles: no longer present in jovoz2
This commit is contained in:
parent
a1d0b675c7
commit
091cf5d1dc
5 changed files with 10 additions and 20 deletions
|
@ -51,9 +51,7 @@ int main(int argc,char **argv)
|
|||
double *sorter;
|
||||
int *iord;
|
||||
|
||||
int mockIndex;
|
||||
|
||||
if (argc != 8) {
|
||||
if (argc != 7) {
|
||||
printf("Wrong number of arguments.\n");
|
||||
printf("arg1: adjacency file\n");
|
||||
printf("arg2: volume file\n");
|
||||
|
@ -61,7 +59,6 @@ int main(int argc,char **argv)
|
|||
printf("arg4: output file containing zones in each void\n");
|
||||
printf("arg5: output text file\n");
|
||||
printf("arg6: Density threshold (0 for no threshold)\n");
|
||||
printf("arg7: Beginning index of mock galaxies\n\n");
|
||||
exit(0);
|
||||
}
|
||||
adjfile = argv[1];
|
||||
|
@ -73,10 +70,6 @@ int main(int argc,char **argv)
|
|||
printf("Bad density threshold.\n");
|
||||
exit(0);
|
||||
}
|
||||
if (sscanf(argv[7],"%d",&mockIndex) == 0) {
|
||||
printf("Bad mock galaxy index.\n");
|
||||
exit(0);
|
||||
}
|
||||
printf("TOLERANCE: %f\n", voltol);
|
||||
if (voltol <= 0.) {
|
||||
printf("Proceeding without a density threshold.\n");
|
||||
|
@ -91,13 +84,11 @@ int main(int argc,char **argv)
|
|||
{
|
||||
return 1;
|
||||
}
|
||||
if (mockIndex < 0)
|
||||
mockIndex = np;
|
||||
|
||||
/* Check that we got all the pairs */
|
||||
for (int i = 0; i < np; i++)
|
||||
{
|
||||
if (p[i].ncnt != p[i].nadj && i < mockIndex) {
|
||||
if (p[i].ncnt != p[i].nadj) {
|
||||
cout
|
||||
<< format("We didn't get all of %d's adj's; %d != %d.")
|
||||
% i % p[i].ncnt % p[i].nadj
|
||||
|
@ -109,7 +100,7 @@ int main(int argc,char **argv)
|
|||
/* Volumes */
|
||||
try
|
||||
{
|
||||
readVolumeFile(volfile, p, np, mockIndex);
|
||||
readVolumeFile(volfile, p, np);
|
||||
}
|
||||
catch (const FileError& e)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue