diff options
author | Thomas White <taw@bitwiz.org.uk> | 2009-10-14 18:31:11 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2009-10-14 18:31:11 +0200 |
commit | c50cff49d786b877c3eb6cbf61313880121cec9e (patch) | |
tree | 063b1ec2616857e5c79fe0ef370b896c22de62a5 /src | |
parent | 69b33e88a4ebecc5bc6e2dae8b35643f26cdb22d (diff) |
Neaten output of reciprocal unit cell
Diffstat (limited to 'src')
-rw-r--r-- | src/cell.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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); } |