aboutsummaryrefslogtreecommitdiff
path: root/src/post-refinement.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-03-02 15:13:50 +0100
committerThomas White <taw@physics.org>2018-03-02 15:15:07 +0100
commit67988bb782f5e3d54444c7338b203ae3b901595d (patch)
treeb9167ce77ba357fac0c720eb599458df33f1ca66 /src/post-refinement.c
parent06bf0f4ec243686a14c51b48a6ebd19888a49a6f (diff)
Don't calculate pobs if reference reflection is weak
Diffstat (limited to 'src/post-refinement.c')
-rw-r--r--src/post-refinement.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c
index 007216b9..79ea187a 100644
--- a/src/post-refinement.c
+++ b/src/post-refinement.c
@@ -617,6 +617,9 @@ void write_specgraph(Crystal *crystal, const RefList *full,
match = find_refl(full, h, k, l);
if ( match == NULL ) continue;
+ /* Don't calculate pobs if reference reflection is weak */
+ if ( fabs(get_intensity(match)) / get_esd_intensity(match) < 3.0 ) continue;
+
corr = G * exp(B*res*res) * get_lorentz(refl);
Ipart = get_intensity(refl) * corr;
Ifull = get_intensity(match);