diff options
author | Thomas White <taw@physics.org> | 2015-05-19 13:53:47 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2015-05-19 14:59:10 +0200 |
commit | 7d04a29a7086b84995709605ad0e2b67e985b832 (patch) | |
tree | 3d16521e4bdca20e67efbc1bf759fc76452c5a47 | |
parent | 6d9bb7021a02efb881314bf8cbcb551e8eac4aaa (diff) |
Debugging stuff
-rw-r--r-- | src/merge.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/merge.c b/src/merge.c index 449f8a87..1595aea3 100644 --- a/src/merge.c +++ b/src/merge.c @@ -164,6 +164,12 @@ static void run_merge_job(void *vwargs, int cookie) /* Total (multiplicative) correction factor */ corr = exp(-G) * exp(B*res*res) * get_lorentz(refl) / get_partiality(refl); + if ( isnan(corr) ) { + ERROR("NaN corr:\n"); + ERROR("G = %f, B = %e\n", G, B); + ERROR("res = %e\n", res); + ERROR("p = %f\n", get_partiality(refl)); + } esd = get_esd_intensity(refl) * corr; w = 1.0; |