From bd06b56f2c40fc971df70bea3ba342fec8f8ae9c Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 14 Jul 2021 15:58:55 +0200 Subject: PinkIndexer: replace long formula with modulus() --- libcrystfel/src/indexers/pinkindexer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libcrystfel') diff --git a/libcrystfel/src/indexers/pinkindexer.c b/libcrystfel/src/indexers/pinkindexer.c index 7522aad1..929c209b 100644 --- a/libcrystfel/src/indexers/pinkindexer.c +++ b/libcrystfel/src/indexers/pinkindexer.c @@ -229,8 +229,7 @@ void *pinkIndexer_prepare(IndexingMethod *indm, float reflectionRadius_1_per_A; if (pinkIndexer_opts->reflectionRadius < 0) { - reflectionRadius_1_per_A = 0.02 - * sqrt(lattice.ax * lattice.ax + lattice.ay * lattice.ay + lattice.az * lattice.az); + reflectionRadius_1_per_A = 0.02 * modulus(lattice.ax, lattice.ay, lattice.az); } else { reflectionRadius_1_per_A = pinkIndexer_opts->reflectionRadius * 1e10; /* m^-1 to A^-1*/ -- cgit v1.2.3