diff options
author | Thomas White <taw@physics.org> | 2013-08-01 16:07:42 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2013-08-01 16:07:42 +0200 |
commit | 0d9370a585d27aedd2cdf0d3b082be1cfca8e5e8 (patch) | |
tree | 3ac4128b6431b37407c799916702b69b1bdb8d04 /src/post-refinement.c | |
parent | 3e5e03210ed8588666f9ede00b9907524f27634d (diff) |
Count filtered eigenvalues
Diffstat (limited to 'src/post-refinement.c')
-rw-r--r-- | src/post-refinement.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c index 3716d728..c444ae31 100644 --- a/src/post-refinement.c +++ b/src/post-refinement.c @@ -321,6 +321,7 @@ static void check_eigen(gsl_vector *e_val) const int n = e_val->size; const double max_condition = 1e6; const int verbose = 0; + int n_filt = 0; if ( verbose ) STATUS("Eigenvalues:\n"); vmin = +INFINITY; @@ -336,6 +337,7 @@ static void check_eigen(gsl_vector *e_val) double val = gsl_vector_get(e_val, i); if ( val < vmax/max_condition ) { gsl_vector_set(e_val, i, 0.0); + n_filt++; } } @@ -350,6 +352,7 @@ static void check_eigen(gsl_vector *e_val) if ( verbose ) { STATUS("Condition number: %e / %e = %5.2f\n", vmax, vmin, vmax/vmin); + STATUS("%i out of %i eigenvalues filtered.\n", n_filt, n); } } |