mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 15:21:11 +00:00
corrected ellipticity calculation
This commit is contained in:
parent
ef5384c54b
commit
cacf9dee74
1 changed files with 4 additions and 2 deletions
|
@ -616,9 +616,11 @@ int main(int argc, char **argv) {
|
|||
float c = sqrt(2.5*(gsl_vector_get(voids[iVoid].eval,0) +
|
||||
gsl_vector_get(voids[iVoid].eval,1) -
|
||||
gsl_vector_get(voids[iVoid].eval,2)));
|
||||
float ca = c/a;
|
||||
float ca;
|
||||
float cb = c/b;
|
||||
voids[iVoid].ellip = 1.0 - c/a;
|
||||
if (a < c) ca = a/c;
|
||||
if (a >= c) ca = c/a;
|
||||
voids[iVoid].ellip = fabs(1.0 - ca);
|
||||
|
||||
} // iVoid
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue