aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/asdf.c
diff options
context:
space:
mode:
authorAlexandra Tolstikova <alexandra.tolstikova@desy.de>2015-02-11 16:18:18 +0100
committerAlexandra Tolstikova <alexandra.tolstikova@desy.de>2015-02-11 16:18:18 +0100
commit21b67e8dc422ee5f437bf2e31c5616982fc41c98 (patch)
tree4df32d02e3ad6f5cb9c6b35256d30fa6c7309627 /libcrystfel/src/asdf.c
parenta095923e5ee59201c43e3722903bae8745e40bf3 (diff)
Move cell_get_volume from asdf.c to cell_utils.c
Diffstat (limited to 'libcrystfel/src/asdf.c')
-rw-r--r--libcrystfel/src/asdf.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/libcrystfel/src/asdf.c b/libcrystfel/src/asdf.c
index 28afe82d..0b890ef8 100644
--- a/libcrystfel/src/asdf.c
+++ b/libcrystfel/src/asdf.c
@@ -995,33 +995,6 @@ static int index_refls(gsl_vector **reflections, int N_reflections,
}
-double cell_get_volume(UnitCell *cell)
-{
- double asx, asy, asz;
- double bsx, bsy, bsz;
- double csx, csy, csz;
- struct rvec aCb;
- double volume;
-
- if ( cell_get_reciprocal(cell, &asx, &asy, &asz,
- &bsx, &bsy, &bsz,
- &csx, &csy, &csz) ) {
- ERROR("Couldn't get cell cartesian.\n");
- return 0;
- }
-
- /* "a" cross "b" */
- aCb.u = asy*bsz - asz*bsy;
- aCb.v = - (asx*bsz - asz*bsx);
- aCb.w = asx*bsy - asy*bsx;
-
- /* "a cross b" dot "c" */
- volume = (aCb.u*csx + aCb.v*csy + aCb.w*csz)/1e30;
-
- return 1/volume;
-}
-
-
int run_asdf(struct image *image, IndexingPrivate *ipriv)
{
int i, j;