aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-07-18 13:50:53 -0400
committerThomas White <taw@physics.org>2012-02-22 15:26:54 +0100
commitffa6f9d557e04eb12ccb9e16e4a7beca9e0b8c68 (patch)
tree0c5bb9756d33bfeefe336af3d07873a8520e2059 /src
parentef725f3fa8e146893ff6228b210d9a1dc60e05bb (diff)
process_hkl: Don't divide by counts for --max-only
Diffstat (limited to 'src')
-rw-r--r--src/process_hkl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/process_hkl.c b/src/process_hkl.c
index 76576a9b..f1c1877c 100644
--- a/src/process_hkl.c
+++ b/src/process_hkl.c
@@ -324,7 +324,8 @@ static void merge_all(FILE *fh, double **pmodel, ReflItemList **pobserved,
delete_items(items);
free(new_pattern);
- if ( !config_sum ) {
+ /* Calculate mean intensity if necessary */
+ if ( !config_sum && !config_maxonly ) {
for ( i=0; i<IDIM*IDIM*IDIM; i++ ) {
if ( counts[i] > 0 ) {
model[i] /= (double)counts[i];