From 9ce39259c3d6bb1b76efbe02f84a4e10a30be13d Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 28 Jan 2013 14:35:35 +0100 Subject: More changes to geometry.c --- libcrystfel/src/geometry.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'libcrystfel/src/geometry.c') 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 + * 2010-2013 Thomas White * * 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; -- cgit v1.2.3