aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/cell.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-06-17 11:17:33 +0200
committerThomas White <taw@physics.org>2019-06-19 10:56:40 +0200
commit6ff483dc7730979f7a888b2dec6ac702dcbecf55 (patch)
tree9fe4fe4a001a9726c1362f2378fe61d9f21ce252 /libcrystfel/src/cell.c
parentc5ab9ad56d759ee6c22ed46dc4831196cbf98b12 (diff)
Const-cleanliness
Diffstat (limited to 'libcrystfel/src/cell.c')
-rw-r--r--libcrystfel/src/cell.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libcrystfel/src/cell.c b/libcrystfel/src/cell.c
index 250da801..6b1d58c7 100644
--- a/libcrystfel/src/cell.c
+++ b/libcrystfel/src/cell.c
@@ -293,10 +293,10 @@ void cell_set_unique_axis(UnitCell *cell, char unique_axis)
/************************* Getter helper functions ****************************/
-static int cell_crystallographic_to_cartesian(UnitCell *cell,
- double *ax, double *ay, double *az,
- double *bx, double *by, double *bz,
- double *cx, double *cy, double *cz)
+static int cell_crystallographic_to_cartesian(const UnitCell *cell,
+ double *ax, double *ay, double *az,
+ double *bx, double *by, double *bz,
+ double *cx, double *cy, double *cz)
{
double tmp, V, cosalphastar, cstar;
@@ -415,7 +415,7 @@ static int cell_invert(double ax, double ay, double az,
/********************************** Getters ***********************************/
-int cell_get_parameters(UnitCell *cell, double *a, double *b, double *c,
+int cell_get_parameters(const UnitCell *cell, double *a, double *b, double *c,
double *alpha, double *beta, double *gamma)
{
double ax, ay, az, bx, by, bz, cx, cy, cz;
@@ -478,7 +478,7 @@ int cell_get_parameters(UnitCell *cell, double *a, double *b, double *c,
}
-int cell_get_cartesian(UnitCell *cell,
+int cell_get_cartesian(const UnitCell *cell,
double *ax, double *ay, double *az,
double *bx, double *by, double *bz,
double *cx, double *cy, double *cz)
@@ -519,7 +519,7 @@ int cell_get_cartesian(UnitCell *cell,
}
-int cell_get_reciprocal(UnitCell *cell,
+int cell_get_reciprocal(const UnitCell *cell,
double *asx, double *asy, double *asz,
double *bsx, double *bsy, double *bsz,
double *csx, double *csy, double *csz)