aboutsummaryrefslogtreecommitdiff
path: root/src/process_hkl.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2009-12-02 14:55:27 +0100
committerThomas White <taw@physics.org>2009-12-02 15:03:01 +0100
commitd30508aa7b57b17601c487a7761f1e4a2505a54a (patch)
tree9c8e946dbc803149c364e654655097bea6e9c3fd /src/process_hkl.c
parent701693dd0501413469cca71b36885ce62ca2ea37 (diff)
Tidy-up
Diffstat (limited to 'src/process_hkl.c')
-rw-r--r--src/process_hkl.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/process_hkl.c b/src/process_hkl.c
index 62315981..9007d26c 100644
--- a/src/process_hkl.c
+++ b/src/process_hkl.c
@@ -298,12 +298,14 @@ int main(int argc, char *argv[])
do {
char line[1024];
- int h, k, l, intensity;
+ signed int h, k, l, intensity;
int r;
rval = fgets(line, 1023, fh);
if ( strncmp(line, "New pattern", 11) == 0 ) {
+
n_patterns++;
+
if ( n_patterns % config_every == 0 ) {
process_reflections(ref, trueref, counts,
n_patterns, mol->cell,
@@ -317,6 +319,8 @@ int main(int argc, char *argv[])
r = sscanf(line, "%i %i %i %i", &h, &k, &l, &intensity);
if ( r != 4 ) continue;
+ if ( (h==0) && (k==0) && (l==0) ) continue;
+
//if ( (abs(h)>3) || (abs(k)>3) || (abs(l)>3) ) continue;
if ( !config_maxonly ) {