aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2013-05-31 22:15:23 -0700
committerThomas White <taw@bitwiz.org.uk>2013-05-31 22:15:23 -0700
commit1dd57e8b9529e0defddfb4692efaa78f6313b405 (patch)
treeb2c3aa977fbf40c3efc74f60b31fc941aa69a8f3
parent455089a0cccf9ef619084f0802f58b91aa325ea3 (diff)
Initialise box offsets to zero
-rw-r--r--libcrystfel/src/integration.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libcrystfel/src/integration.c b/libcrystfel/src/integration.c
index caf1bbe9..a991d6ed 100644
--- a/libcrystfel/src/integration.c
+++ b/libcrystfel/src/integration.c
@@ -1151,6 +1151,8 @@ static void measure_all_intensities(IntegrationMethod meth, RefList *list,
r = center_and_check_box(&ic, bx, &saturated);
} else {
r = check_box(&ic, bx, &saturated);
+ bx->offs_fs = 0.0;
+ bx->offs_ss = 0.0;
}
if ( r ) {
delete_box(&ic, bx);
@@ -1593,6 +1595,8 @@ static void integrate_rings(IntegrationMethod meth, Crystal *cr,
r = center_and_check_box(&ic, bx, &saturated);
} else {
r = check_box(&ic, bx, &saturated);
+ bx->offs_fs = 0.0;
+ bx->offs_ss = 0.0;
}
if ( r ) {
delete_box(&ic, bx);