aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2015-06-24 16:43:00 +0200
committerThomas White <taw@physics.org>2015-06-24 17:24:19 +0200
commitbfb2044c589bbc5dcf94450cbaca1acbef1033ea (patch)
tree619c8d0f685ae48f4367584827c9f39805e620e1 /libcrystfel
parentecdec99762ffe6068fe9e048026ad32ecec63f5f (diff)
Whitespace
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/cell-utils.c8
-rw-r--r--libcrystfel/src/detector.c1
2 files changed, 5 insertions, 4 deletions
diff --git a/libcrystfel/src/cell-utils.c b/libcrystfel/src/cell-utils.c
index 75419c99..764646dd 100644
--- a/libcrystfel/src/cell-utils.c
+++ b/libcrystfel/src/cell-utils.c
@@ -1586,21 +1586,21 @@ double cell_get_volume(UnitCell *cell)
double csx, csy, csz;
struct rvec aCb;
double rec_volume;
-
+
if ( cell_get_reciprocal(cell, &asx, &asy, &asz,
&bsx, &bsy, &bsz,
&csx, &csy, &csz) ) {
ERROR("Couldn't get reciprocal cell.\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" */
rec_volume = (aCb.u*csx + aCb.v*csy + aCb.w*csz)/1e30;
-
+
return 1/rec_volume;
}
diff --git a/libcrystfel/src/detector.c b/libcrystfel/src/detector.c
index 7979315b..41b63997 100644
--- a/libcrystfel/src/detector.c
+++ b/libcrystfel/src/detector.c
@@ -1634,6 +1634,7 @@ out:
free(rgc_defl[rgci]->name);
free(rgc_defl[rgci]->rgs);
free(rgc_defl[rgci]);
+
}
free(rgc_defl);