diff options
-rw-r--r-- | src/process_hkl.c | 3 |
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]; |