aboutsummaryrefslogtreecommitdiff
path: root/src/cell.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2009-12-04 11:54:33 +0100
committerThomas White <taw@physics.org>2009-12-04 12:01:32 +0100
commitfe414fa905261a11b1af2055c1e871d2d7f826f2 (patch)
tree777ca510fc8e38aa3fccfec3e30bea79d01c7735 /src/cell.c
parent8e6c782d1728d730b94634bc8919d55e8376ce20 (diff)
Add --zone-axis option
Diffstat (limited to 'src/cell.c')
-rw-r--r--src/cell.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/cell.c b/src/cell.c
index 49eb4b49..6d4cc93b 100644
--- a/src/cell.c
+++ b/src/cell.c
@@ -115,6 +115,22 @@ void cell_set_parameters(UnitCell *cell, double a, double b, double c,
}
+void cell_get_parameters(UnitCell *cell, double *a, double *b, double *c,
+ double *alpha, double *beta, double *gamma)
+{
+ if ( !cell ) return;
+
+ *a = cell->a;
+ *b = cell->b;
+ *c = cell->c;
+ *alpha = cell->alpha;
+ *beta = cell->beta;
+ *gamma = cell->gamma;
+
+ cell_update_cartesian(cell);
+}
+
+
void cell_set_cartesian(UnitCell *cell,
double ax, double ay, double az,
double bx, double by, double bz,