Added double-checking of flagged galaxies to ensure survey boundaries are respected. Python components of launchers now add their status to log files. Rearranged some warnings for broken tessellations due to guard point encounters, since it's not always a bad thing.

This commit is contained in:
Paul M. Sutter 2025-01-17 21:53:25 +08:00
parent 5d93a8a737
commit ad2d3722cc
5 changed files with 122 additions and 36 deletions

View file

@ -86,13 +86,19 @@ int main(int argc,char **argv)
}
/* Check that we got all the pairs */
bool printedError = false;
for (int i = 0; i < np; i++)
{
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
<< endl;
if (!printedError) {
cout << "WARNING! Not all particle adjancies are adding up. This is likely because some particles connected to guard particles. Ensure that your tesselation is valid." << endl;
printedError = true;
}
//cout
// << format("We didn't get all of %d's adj's; %d != %d.")
// % i % p[i].ncnt % p[i].nadj
// << endl;
p[i].nadj = p[i].ncnt;
}
}

View file

@ -310,12 +310,14 @@ int main(int argc, char *argv[]) {
}
// PMS - reset number of adjancies to not include links to border guards
/*
for (i=0; i<nvp; i++) {
int nActual = 0;
for (j = 0; j < adjs[i].nadj; j++)
if (adjs[i].adj[j] < nvp) nActual++;
adjs[i].nadj = nActual;
}
*/
/* Get the adjacencies back to their original values */