From aec12416e6af499306fd7579ec897b7d03e0f251 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 12 Jan 2010 14:57:57 +0100 Subject: Read the unit cell the right way round --- src/cell.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/cell.c') 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); } -- cgit v1.2.3