diff options
author | Thomas White <taw@physics.org> | 2011-11-22 18:20:10 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:41 +0100 |
commit | 50b0746fe6c1abed98c6cb4b13268c65cb2fd0a4 (patch) | |
tree | 1a7c0ceef53626c8c82e4e5933b001d8d4c6a114 /src | |
parent | ce861440cef2801a67cd7925fcef88faeecdccda (diff) |
partial_sim: Add debug output
Diffstat (limited to 'src')
-rw-r--r-- | src/partial_sim.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/partial_sim.c b/src/partial_sim.c index 779aebc8..fc4a400a 100644 --- a/src/partial_sim.c +++ b/src/partial_sim.c @@ -123,6 +123,9 @@ static void calculate_partials(RefList *partial, double osf, if ( (bin < NBINS) && (bin>=0) ) { p_hist[bin] += p; n_ref[bin]++; + } else { + STATUS("Reflection out of histogram range: %e %i %f\n", + resolution(cell, h, k, l), bin, p); } Ip = gaussian_noise(Ip, 100.0); |