aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/geometry.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2013-01-28 14:35:35 +0100
committerThomas White <taw@physics.org>2013-01-28 14:35:35 +0100
commit9ce39259c3d6bb1b76efbe02f84a4e10a30be13d (patch)
tree3b17eaf6f3193a92f07429b815469bf592e11e18 /libcrystfel/src/geometry.c
parent082894733e02420a25227467ee203070e4d5d684 (diff)
More changes to geometry.c
Diffstat (limited to 'libcrystfel/src/geometry.c')
-rw-r--r--libcrystfel/src/geometry.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/libcrystfel/src/geometry.c b/libcrystfel/src/geometry.c
index 02629421..9c494e2c 100644
--- a/libcrystfel/src/geometry.c
+++ b/libcrystfel/src/geometry.c
@@ -3,11 +3,11 @@
*
* Geometry of diffraction
*
- * Copyright © 2012 Deutsches Elektronen-Synchrotron DESY,
+ * Copyright © 2013 Deutsches Elektronen-Synchrotron DESY,
* a research centre of the Helmholtz Association.
*
* Authors:
- * 2010-2012 Thomas White <taw@physics.org>
+ * 2010-2013 Thomas White <taw@physics.org>
*
* This file is part of CrystFEL.
*
@@ -44,6 +44,7 @@
#include "reflist.h"
#include "reflist-utils.h"
#include "symmetry.h"
+#include "geometry.h"
static signed int locate_peak(double x, double y, double z, double k,
@@ -284,7 +285,7 @@ RefList *find_intersections(struct image *image, Crystal *cryst)
}
-RefList *select_intersections(struct image *image, UnitCell *cell)
+RefList *select_intersections(struct image *image, Crystal *cryst)
{
double ax, ay, az;
double bx, by, bz;
@@ -297,7 +298,8 @@ RefList *select_intersections(struct image *image, UnitCell *cell)
fesetround(1);
/* Cell basis vectors for this image */
- cell_get_cartesian(cell, &ax, &ay, &az, &bx, &by, &bz, &cx, &cy, &cz);
+ cell_get_cartesian(crystal_get_cell(cryst), &ax, &ay, &az,
+ &bx, &by, &bz, &cx, &cy, &cz);
list = reflist_new();
if ( list == NULL ) return NULL;