aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-02-28 10:53:11 +0100
committerThomas White <taw@physics.org>2019-03-11 16:49:37 +0100
commit2dad9da2661389cf5c34a49e933dab20bd6d943c (patch)
tree127a0a0e9d6a32adff3a52f51011ae20be71dee5 /libcrystfel
parentb8c79e07d8d84990122d56a053d822232590a9d5 (diff)
Fix tolerances (again)
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/cell-utils.c12
-rw-r--r--libcrystfel/src/cell-utils.h2
2 files changed, 7 insertions, 7 deletions
diff --git a/libcrystfel/src/cell-utils.c b/libcrystfel/src/cell-utils.c
index da1e6fd5..a21ae570 100644
--- a/libcrystfel/src/cell-utils.c
+++ b/libcrystfel/src/cell-utils.c
@@ -3,13 +3,13 @@
*
* Unit Cell utility functions
*
- * Copyright © 2012-2017 Deutsches Elektronen-Synchrotron DESY,
+ * Copyright © 2012-2019 Deutsches Elektronen-Synchrotron DESY,
* a research centre of the Helmholtz Association.
* Copyright © 2012 Lorenzo Galli
*
* Authors:
- * 2009-2012,2014-2017 Thomas White <taw@physics.org>
- * 2012 Lorenzo Galli
+ * 2009-2019 Thomas White <taw@physics.org>
+ * 2012 Lorenzo Galli
*
* This file is part of CrystFEL.
*
@@ -1647,9 +1647,9 @@ int compare_cell_parameters(UnitCell *cell1, UnitCell *cell2,
cell_get_parameters(cell1, &a1, &b1, &c1, &al1, &be1, &ga1);
cell_get_parameters(cell2, &a2, &b2, &c2, &al2, &be2, &ga2);
- if ( !within_tolerance(a1, a2, ltl) ) return 0;
- if ( !within_tolerance(b1, b2, ltl) ) return 0;
- if ( !within_tolerance(c1, c2, ltl) ) return 0;
+ if ( !within_tolerance(a1, a2, ltl*100.0) ) return 0;
+ if ( !within_tolerance(b1, b2, ltl*100.0) ) return 0;
+ if ( !within_tolerance(c1, c2, ltl*100.0) ) return 0;
if ( fabs(al1-al2) > atl ) return 0;
if ( fabs(be1-be2) > atl ) return 0;
if ( fabs(ga1-ga2) > atl ) return 0;
diff --git a/libcrystfel/src/cell-utils.h b/libcrystfel/src/cell-utils.h
index 1a4f3bcc..a1a6fd46 100644
--- a/libcrystfel/src/cell-utils.h
+++ b/libcrystfel/src/cell-utils.h
@@ -3,7 +3,7 @@
*
* Unit Cell utility functions
*
- * Copyright © 2012-2018 Deutsches Elektronen-Synchrotron DESY,
+ * Copyright © 2012-2019 Deutsches Elektronen-Synchrotron DESY,
* a research centre of the Helmholtz Association.
* Copyright © 2012 Lorenzo Galli
*