aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2009-10-14 18:31:11 +0200
committerThomas White <taw@bitwiz.org.uk>2009-10-14 18:31:11 +0200
commitc50cff49d786b877c3eb6cbf61313880121cec9e (patch)
tree063b1ec2616857e5c79fe0ef370b896c22de62a5 /src
parent69b33e88a4ebecc5bc6e2dae8b35643f26cdb22d (diff)
Neaten output of reciprocal unit cell
Diffstat (limited to 'src')
-rw-r--r--src/cell.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/cell.c b/src/cell.c
index 81638016..caba187e 100644
--- a/src/cell.c
+++ b/src/cell.c
@@ -206,7 +206,10 @@ void cell_get_reciprocal(UnitCell *cell,
*bsz = gsl_matrix_get(inv, 2, 1);
*csz = gsl_matrix_get(inv, 2, 2);
- printf("a* = %f %f %f\n", *asx/1e9, *asy/1e9, *asz/1e9);
- printf("b* = %f %f %f\n", *bsx/1e9, *bsy/1e9, *bsz/1e9);
- printf("c* = %f %f %f\n", *csx/1e9, *csy/1e9, *csz/1e9);
+ printf("a* = %+8.5f %+8.5f %+8.5f nm^-1\n",
+ *asx/1e9, *asy/1e9, *asz/1e9);
+ printf("b* = %+8.5f %+8.5f %+8.5f nm^-1\n",
+ *bsx/1e9, *bsy/1e9, *bsz/1e9);
+ printf("c* = %+8.5f %+8.5f %+8.5f nm^-1\n",
+ *csx/1e9, *csy/1e9, *csz/1e9);
}