aboutsummaryrefslogtreecommitdiff
path: root/src/im-sandbox.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2013-01-10 13:49:11 +0100
committerThomas White <taw@physics.org>2013-01-10 15:13:18 +0100
commita1e0854a972a988a7153df04f74dcee3ff9e75b9 (patch)
tree5621bd3af2387822a3feb6094b44b5b870841de5 /src/im-sandbox.c
parent10a8969c10ac739aa2aa3de826f6bf2aa9940262 (diff)
indexamajig: Add --integrate-found
Diffstat (limited to 'src/im-sandbox.c')
-rw-r--r--src/im-sandbox.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/im-sandbox.c b/src/im-sandbox.c
index 32bcba15..c8cceb2b 100644
--- a/src/im-sandbox.c
+++ b/src/im-sandbox.c
@@ -301,9 +301,17 @@ static void process_image(const struct index_args *iargs,
iargs->config_insane, iargs->tols);
if ( image.indexed_cell != NULL ) {
+
pargs->indexable = 1;
- image.reflections = find_intersections(&image,
- image.indexed_cell);
+
+ if ( iargs->integrate_found ) {
+ image.reflections = select_intersections(&image,
+ image.indexed_cell);
+ } else {
+ image.reflections = find_intersections(&image,
+ image.indexed_cell);
+ }
+
if (image.reflections != NULL) {
integrate_reflections(&image,
iargs->config_closer,
@@ -314,6 +322,7 @@ static void process_image(const struct index_args *iargs,
iargs->ir_out,
iargs->integrate_saturated);
}
+
} else {
image.reflections = NULL;
}