aboutsummaryrefslogtreecommitdiff
path: root/src/partialator.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2013-08-15 10:41:47 +0200
committerThomas White <taw@physics.org>2013-09-13 14:31:31 +0200
commit620d8f4c8a9e1805594a9240550f383b27368543 (patch)
tree55c9478ce68096bf8ca638f1e9d99a1b9c81ab95 /src/partialator.c
parentf56ec1433c41a23fd2f476069876477961bfc0c6 (diff)
Stop PR when mean change in partiality is small
Diffstat (limited to 'src/partialator.c')
-rw-r--r--src/partialator.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/partialator.c b/src/partialator.c
index ad6d9a49..97d2b689 100644
--- a/src/partialator.c
+++ b/src/partialator.c
@@ -607,13 +607,15 @@ int main(int argc, char *argv[])
RefList *as;
int n_gained = 0;
int n_lost = 0;
+ double mean_p_change = 0.0;
cryst = images[i].crystals[j];
crystal_set_image(cryst, &images[i]);
/* Now it's safe to do the following */
update_partialities_2(cryst, pmodel,
- &n_gained, &n_lost);
+ &n_gained, &n_lost,
+ &mean_p_change);
assert(n_gained == 0); /* That'd just be silly */
as = crystal_get_reflections(cryst);
nobs += select_scalable_reflections(as, reference);