mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 23:31:12 +00:00
cleaned up procedure for checking for 'obviously bad' voids; no longer filters on density contrast since this only affects edge voids anyway
This commit is contained in:
parent
93d847b158
commit
f9fc9e8990
1 changed files with 3 additions and 3 deletions
|
@ -277,7 +277,7 @@ int main(int argc, char **argv) {
|
||||||
volNorm = numPartTot/(boxLen[0]*boxLen[1]*boxLen[2]);
|
volNorm = numPartTot/(boxLen[0]*boxLen[1]*boxLen[2]);
|
||||||
printf(" VOL NORM = %f\n", volNorm);
|
printf(" VOL NORM = %f\n", volNorm);
|
||||||
|
|
||||||
printf(" CENTRAL DEN = %f\n", args.maxCentralDen_arg);
|
printf(" MAX CENTRAL DEN = %e\n", args.maxCentralDen_arg);
|
||||||
|
|
||||||
fread(&dummy, 1, 4, fp);
|
fread(&dummy, 1, 4, fp);
|
||||||
fread(temp, numPartTot, 4, fp);
|
fread(temp, numPartTot, 4, fp);
|
||||||
|
@ -823,8 +823,8 @@ int main(int argc, char **argv) {
|
||||||
// toss out voids that are obviously wrong
|
// toss out voids that are obviously wrong
|
||||||
int iGood = 0;
|
int iGood = 0;
|
||||||
for (iVoid = 0; iVoid < voids.size(); iVoid++) {
|
for (iVoid = 0; iVoid < voids.size(); iVoid++) {
|
||||||
if (voids[iVoid].densCon > 1.e4 || isnan(voids[iVoid].vol) ||
|
|
||||||
isinf(voids[iVoid].vol)) {
|
if (isnan(voids[iVoid].vol) || isinf(voids[iVoid].vol)) {
|
||||||
numWrong++;
|
numWrong++;
|
||||||
} else {
|
} else {
|
||||||
voids[iGood++] = voids[iVoid];
|
voids[iGood++] = voids[iVoid];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue