diff options
author | Thomas White <taw@physics.org> | 2010-10-11 18:10:03 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:02 +0100 |
commit | 29f669dcbd11af84edaff1c2bb417a20bed2b1ba (patch) | |
tree | c0ef01861bd9859ba107050371f5f3fa33f0bcbc /src/peaks.c | |
parent | 30ec3665f1b79b314aecbe3a8f5afbfcf3adfa99 (diff) |
Avoid confusion
Diffstat (limited to 'src/peaks.c')
-rw-r--r-- | src/peaks.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/peaks.c b/src/peaks.c index 9c172e73..313af7a9 100644 --- a/src/peaks.c +++ b/src/peaks.c @@ -569,13 +569,13 @@ int peak_sanity_check(struct image *image, UnitCell *cell, double ax, ay, az; double bx, by, bz; double cx, cy, cz; - double alen, blen, clen; + double aslen, bslen, cslen; /* "Borrow" direction values to get reciprocal lengths */ cell_get_reciprocal(cell, &ax, &ay, &az, &bx, &by, &bz, &cx, &cy, &cz); - alen = modulus(ax, ay, az); - blen = modulus(bx, by, bz); - clen = modulus(cx, cy, cz); + aslen = modulus(ax, ay, az); + bslen = modulus(bx, by, bz); + cslen = modulus(cx, cy, cz); cell_get_cartesian(cell, &ax, &ay, &az, &bx, &by, &bz, &cx, &cy, &cz); @@ -607,8 +607,8 @@ int peak_sanity_check(struct image *image, UnitCell *cell, if ( circular_domain ) { /* Circular integration domain */ - dist = sqrt(pow(dh*alen, 2.0) + pow(dk*blen, 2.0) - + pow(dl*clen, 2.0)); + dist = sqrt(pow(dh*aslen, 2.0) + pow(dk*bslen, 2.0) + + pow(dl*cslen, 2.0)); if ( dist <= domain_r ) n_sane++; } else { |