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/process_hkl.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/process_hkl.c')
-rw-r--r-- | src/process_hkl.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/process_hkl.c b/src/process_hkl.c index abb4422f..d110695b 100644 --- a/src/process_hkl.c +++ b/src/process_hkl.c @@ -161,13 +161,13 @@ static void process_reflections(double *ref, double *trueref, if ( do_rvsq ) { /* Record graph of R against q for this N */ char name[64]; - snprintf(name, 63, "results/R_vs_q-%u.dat", n_patterns); + snprintf(name, 63, "R_vs_q-%u.dat", n_patterns); write_RvsQ(name, ref, trueref, counts, scale, cell); } if ( do_zoneaxis ) { char name[64]; - snprintf(name, 63, "results/ZA-%u.dat", n_patterns); + snprintf(name, 63, "ZA-%u.dat", n_patterns); write_reflections(name, counts, ref, 1, cell); } @@ -342,6 +342,14 @@ int main(int argc, char *argv[]) write_reflections(output, counts, ref, 0, cell); } + if ( config_zoneaxis ) { + char name[64]; + UnitCell *cell = NULL; + if ( mol != NULL ) cell = mol->cell; + snprintf(name, 63, "ZA-%u.dat", n_patterns); + write_reflections(name, counts, ref, 1, cell); + } + STATUS("There were %u patterns.\n", n_patterns); return 0; |