aboutsummaryrefslogtreecommitdiff
path: root/src/pattern_sim.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-02-11 12:37:03 -0800
committerThomas White <taw@physics.org>2012-02-22 15:27:14 +0100
commitaab9901f18326214746402650179a13f22770118 (patch)
tree445663c658cd5a1cb58304145c3878ce31126a0a /src/pattern_sim.c
parent91ffa38ff55e08ed7faf60b2e6b1c8ba27e89f5c (diff)
Make find_projected_peaks() behave like find_intersections()
Also make sure output_intensities() deals only with integration
Diffstat (limited to 'src/pattern_sim.c')
-rw-r--r--src/pattern_sim.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/pattern_sim.c b/src/pattern_sim.c
index 90425328..326ce362 100644
--- a/src/pattern_sim.c
+++ b/src/pattern_sim.c
@@ -564,10 +564,17 @@ int main(int argc, char *argv[])
record_image(&image, !config_nonoise);
if ( config_nearbragg ) {
- find_projected_peaks(&image, cell, 0, 0.1);
- output_intensities(&image, cell, NULL, 0, 0, stdout,
- 0, 0.1);
- reflist_free(image.reflections);
+
+ RefList *reflections;
+
+ reflections = find_projected_peaks(&image, cell,
+ 0, 0.1);
+
+ output_intensities(&image, cell, reflections, NULL,
+ 0, 0, stdout);
+
+ reflist_free(reflections);
+
}
if ( powder_fn != NULL ) {