diff options
Diffstat (limited to 'src/sfac.c')
-rw-r--r-- | src/sfac.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -491,7 +491,7 @@ void free_molecule(struct molecule *mol) double *get_reflections(struct molecule *mol, double en, double res, - unsigned int *counts, double *phases) + double *phases, ReflItemList *items) { double *reflections; double asx, asy, asz; @@ -556,7 +556,7 @@ double *get_reflections(struct molecule *mol, double en, double res, set_intensity(reflections, h, k, l, pow(cabs(F), 2.0)); if ( phases != NULL ) set_phase(phases, h, k, l, carg(F)); - set_count(counts, h, k, l, 1); + if ( items != NULL ) add_item(items, h, k, l); } progress_bar((k+INDMAX)+IDIM*(h+INDMAX), IDIM*IDIM-1, |