aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-10-07 17:59:26 +0200
committerThomas White <taw@physics.org>2020-10-07 17:59:26 +0200
commit3b2772959a8ebc43ec165af317d1599ec371429f (patch)
tree235fca9bb72c2c62f79f0d613a90cd34bf10f324
parent886ae5210de0d4bf1e5e026bdf38226b992764de (diff)
asdf: Fix incorrect units conversion for cell volume
-rw-r--r--libcrystfel/src/asdf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcrystfel/src/asdf.c b/libcrystfel/src/asdf.c
index 7185172d..4858552b 100644
--- a/libcrystfel/src/asdf.c
+++ b/libcrystfel/src/asdf.c
@@ -1083,7 +1083,7 @@ int run_asdf(struct image *image, void *ipriv)
d_max = max(a, b, c) * 3 * 1e10;
- double volume = cell_get_volume(dp->template) / 1e30;
+ double volume = cell_get_volume(dp->template) * 1e30;
/* Divide volume constraints by number of lattice points per
* unit cell since asdf always finds primitive cell */