diff options
author | Thomas White <taw@physics.org> | 2010-03-04 19:04:49 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2010-03-04 19:04:49 +0100 |
commit | d8358c2158154ed14af37edb46b44f6c7b9feebb (patch) | |
tree | 992e044cbb4a4c8ce86bc5df88f72b7d96283686 /src/reflections.c | |
parent | 27491c092a9d238bf25a10b23e4588a92af071ba (diff) |
process_hkl: don't write output in results/, improve error message, output ZA with --no-analyse --zone-axis
Diffstat (limited to 'src/reflections.c')
-rw-r--r-- | src/reflections.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/reflections.c b/src/reflections.c index 93cecca9..6c26150d 100644 --- a/src/reflections.c +++ b/src/reflections.c @@ -34,7 +34,7 @@ void write_reflections(const char *filename, unsigned int *counts, } if ( fh == NULL ) { - ERROR("Couldn't open output file!\n"); + ERROR("Couldn't open output file '%s'.\n", filename); return; } @@ -45,6 +45,7 @@ void write_reflections(const char *filename, unsigned int *counts, fprintf(fh, "a %5.3f nm\n", a*1e9); fprintf(fh, "b %5.3f nm\n", b*1e9); fprintf(fh, "angle %5.3f deg\n", rad2deg(gamma)); + fprintf(fh, "scale 10\n"); } for ( h=-INDMAX; h<INDMAX; h++ ) { |