aboutsummaryrefslogtreecommitdiff
path: root/src/sfac.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-03-29 16:15:57 +0200
committerThomas White <taw@physics.org>2010-03-29 16:15:57 +0200
commit2f515b4fe79633279baf989191fc3c1e04f56175 (patch)
tree74483273fb22ab4907cc844a160380031e8a1318 /src/sfac.c
parente2b7964688457b12fa171ec1d8c6c5e7670f0e96 (diff)
get_hkl: Only *save* reflections out to a certain resolution
Diffstat (limited to 'src/sfac.c')
-rw-r--r--src/sfac.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sfac.c b/src/sfac.c
index dcb49110..3d39fa42 100644
--- a/src/sfac.c
+++ b/src/sfac.c
@@ -490,7 +490,8 @@ void free_molecule(struct molecule *mol)
}
-double *get_reflections(struct molecule *mol, double en, double res)
+double *get_reflections(struct molecule *mol, double en, double res,
+ unsigned int *counts)
{
double *reflections;
double asx, asy, asz;
@@ -553,6 +554,7 @@ double *get_reflections(struct molecule *mol, double en, double res)
}
set_intensity(reflections, h, k, l, pow(cabs(F), 2.0));
+ set_count(counts, h, k, l, 1);
}
progress_bar((k+INDMAX)+IDIM*(h+INDMAX), IDIM*IDIM-1,