aboutsummaryrefslogtreecommitdiff
path: root/src/process_hkl.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2009-12-04 12:00:18 +0100
committerThomas White <taw@physics.org>2009-12-04 12:01:37 +0100
commit5598807a938f9eea3f3663f770f598b6ece8edbc (patch)
tree9098fb01e4965123522b5441565d025bdb87586a /src/process_hkl.c
parent60e446b6cc757512b7271c4480b50d87ecdfe607 (diff)
Fix counting of patterns
Diffstat (limited to 'src/process_hkl.c')
-rw-r--r--src/process_hkl.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/process_hkl.c b/src/process_hkl.c
index 0cb784bf..aed9856e 100644
--- a/src/process_hkl.c
+++ b/src/process_hkl.c
@@ -339,7 +339,10 @@ int main(int argc, char *argv[])
rval = fgets(line, 1023, fh);
if ( strncmp(line, "New pattern", 11) == 0 ) {
- n_patterns++;
+ if ( n_patterns == 0 ) {
+ n_patterns++;
+ continue;
+ }
if ( n_patterns % config_every == 0 ) {
process_reflections(ref, trueref, counts,
@@ -350,6 +353,7 @@ int main(int argc, char *argv[])
if ( n_patterns == config_stopafter ) break;
+ n_patterns++;
}
r = sscanf(line, "%i %i %i %i", &h, &k, &l, &intensity);
@@ -357,8 +361,6 @@ int main(int argc, char *argv[])
if ( (h==0) && (k==0) && (l==0) ) continue;
- //if ( (abs(h)>3) || (abs(k)>3) || (abs(l)>3) ) continue;
-
if ( !config_maxonly ) {
integrate_intensity(ref, h, k, l, intensity);
integrate_count(counts, h, k, l, 1);