diff options
author | Thomas White <taw@bitwiz.org.uk> | 2010-02-12 16:14:08 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2010-02-17 10:36:28 +0100 |
commit | bbd715163e65db08f99b197d4bd736bd35417e98 (patch) | |
tree | fc80a595dfda056dfdda9918bd1b77a1f371ee68 /src | |
parent | 46c61f3a55b59f4388977d5221827e3f6cc9db0f (diff) |
Display the cell from DirAx
Diffstat (limited to 'src')
-rw-r--r-- | src/cell.c | 2 | ||||
-rw-r--r-- | src/cell.h | 2 | ||||
-rw-r--r-- | src/dirax.c | 6 |
3 files changed, 7 insertions, 3 deletions
@@ -314,7 +314,7 @@ void cell_get_reciprocal(UnitCell *cell, } -static void cell_print(UnitCell *cell) +void cell_print(UnitCell *cell) { double asx, asy, asz; double bsx, bsy, bsz; @@ -72,6 +72,8 @@ extern void cell_get_reciprocal(UnitCell *cell, extern double resolution(UnitCell *cell, signed int h, signed int k, signed int l); +extern void cell_print(UnitCell *cell); + extern UnitCell *match_cell(UnitCell *cell, UnitCell *template); #endif /* CELL_H */ diff --git a/src/dirax.c b/src/dirax.c index 0849d750..05023584 100644 --- a/src/dirax.c +++ b/src/dirax.c @@ -98,8 +98,10 @@ static void dirax_parseline(const char *line, struct image *image) sscanf(line, "%f %f %f %f %f %f", &d, &d, &d, &cx, &cy, &cz); cell_set_cartesian_c(image->indexed_cell, cx*1e-10, cy*1e-10, cz*1e-10); - STATUS("Read a direct space unit cell from DirAx\n"); - /* FIXME: Do something */ + STATUS("--------------------\n"); + STATUS("The cell from DirAx:\n"); + cell_print(image->indexed_cell); + STATUS("--------------------\n"); image->dirax_read_cell = 0; return; } |