aboutsummaryrefslogtreecommitdiff
path: root/src/cell.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-01-12 14:57:57 +0100
committerThomas White <taw@physics.org>2010-01-12 14:57:57 +0100
commitaec12416e6af499306fd7579ec897b7d03e0f251 (patch)
tree46d1aea008149167aa83a9ed5c40c7b949efc36c /src/cell.c
parentf15a2bd9185819365e3d84f878d1225822a93e3e (diff)
Read the unit cell the right way round
Diffstat (limited to 'src/cell.c')
-rw-r--r--src/cell.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cell.c b/src/cell.c
index 94c013d1..447bd133 100644
--- a/src/cell.c
+++ b/src/cell.c
@@ -146,31 +146,31 @@ void cell_set_cartesian(UnitCell *cell,
}
-void cell_set_cartesian_x(UnitCell *cell, double ax, double bx, double cx)
+void cell_set_cartesian_a(UnitCell *cell, double ax, double ay, double az)
{
if ( !cell ) return;
- cell->ax = ax; cell->bx = bx; cell->cx = cx;
+ cell->ax = ax; cell->ay = ay; cell->az = az;
cell_update_crystallographic(cell);
}
-void cell_set_cartesian_y(UnitCell *cell, double ay, double by, double cy)
+void cell_set_cartesian_b(UnitCell *cell, double bx, double by, double bz)
{
if ( !cell ) return;
- cell->ay = ay; cell->by = by; cell->cy = cy;
+ cell->bx = bx; cell->by = by; cell->bz = bz;
cell_update_crystallographic(cell);
}
-void cell_set_cartesian_z(UnitCell *cell, double az, double bz, double cz)
+void cell_set_cartesian_c(UnitCell *cell, double cx, double cy, double cz)
{
if ( !cell ) return;
- cell->az = az; cell->bz = bz; cell->cz = cz;
+ cell->cx = cx; cell->cy = cy; cell->cz = cz;
cell_update_crystallographic(cell);
}