aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-02-12 16:14:08 +0100
committerThomas White <taw@bitwiz.org.uk>2010-02-17 10:36:28 +0100
commitbbd715163e65db08f99b197d4bd736bd35417e98 (patch)
treefc80a595dfda056dfdda9918bd1b77a1f371ee68 /src
parent46c61f3a55b59f4388977d5221827e3f6cc9db0f (diff)
Display the cell from DirAx
Diffstat (limited to 'src')
-rw-r--r--src/cell.c2
-rw-r--r--src/cell.h2
-rw-r--r--src/dirax.c6
3 files changed, 7 insertions, 3 deletions
diff --git a/src/cell.c b/src/cell.c
index 27f6e3a3..01644238 100644
--- a/src/cell.c
+++ b/src/cell.c
@@ -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;
diff --git a/src/cell.h b/src/cell.h
index 687c7ef6..db5cab0b 100644
--- a/src/cell.h
+++ b/src/cell.h
@@ -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;
}