aboutsummaryrefslogtreecommitdiff
path: root/src/process_hkl.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-02-22 10:24:35 +0100
committerThomas White <taw@physics.org>2010-02-22 10:25:02 +0100
commit3132451eb2a3c88202078177f84c9c8fc96372fe (patch)
tree08104e9c2df2c3a8fe98a1f97dd358fd5fc22535 /src/process_hkl.c
parentcc0db0054d76474e55393c05806f715a0e2f6d08 (diff)
Tidy some things up:
s convention detector geometry comments, help messages
Diffstat (limited to 'src/process_hkl.c')
-rw-r--r--src/process_hkl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/process_hkl.c b/src/process_hkl.c
index 0a4db33d..12427a1a 100644
--- a/src/process_hkl.c
+++ b/src/process_hkl.c
@@ -78,7 +78,7 @@ static void write_RvsQ(const char *name, double *ref, double *trueref,
for ( h=-INDMAX; h<INDMAX; h++ ) {
for ( k=-INDMAX; k<INDMAX; k++ ) {
for ( l=-INDMAX; l<INDMAX; l++ ) {
- double s = resolution(cell, h, k, l);
+ double s = 2.0*resolution(cell, h, k, l);
if ( (lookup_count(counts, h, k, l) > 0) && (s > smax) ) {
smax = s;
}
@@ -105,7 +105,7 @@ static void write_RvsQ(const char *name, double *ref, double *trueref,
if ( (h==0) && (k==0) && (l==0) ) continue;
c = lookup_count(counts, h, k, l);
- s = resolution(cell, h, k, l);
+ s = 2.0*resolution(cell, h, k, l);
if ((s>=sbracket) && (s<sbracket+smax/RVQDV) && (c>0)) {
double obs, calc, obsi;