aboutsummaryrefslogtreecommitdiff
path: root/src/hrs-scaling.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-06-24 11:41:30 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:30 +0100
commit45c407fe626f98eb8d44209f8e2b7e553ae77fb0 (patch)
tree3addb31678f54b5ebc0093860264e719df66367f /src/hrs-scaling.c
parent4a15541c3875cb4dca578fb2d7d253c34491be4e (diff)
Back out and abort refinement if things look bad
Diffstat (limited to 'src/hrs-scaling.c')
-rw-r--r--src/hrs-scaling.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/hrs-scaling.c b/src/hrs-scaling.c
index 5e7593f5..cbae682c 100644
--- a/src/hrs-scaling.c
+++ b/src/hrs-scaling.c
@@ -401,6 +401,10 @@ static RefList *lsq_intensities(struct image *images, int n,
double G;
Reflection *refl;
+ /* Don't scale intensities from this image if
+ * post refinement failed on the last step. */
+ if ( images[m].pr_dud ) continue;
+
G = images[m].osf;
for ( refl = find_refl(images[m].reflections,