diff options
author | Thomas White <taw@bitwiz.org.uk> | 2010-06-05 20:02:22 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2010-06-05 20:02:22 +0200 |
commit | 8ead809d4fb09047e7c146d405dbc0e97103ec3c (patch) | |
tree | d05b218def2ebffb0460905ca8214ca53735d819 /src/process_hkl.c | |
parent | 509f08dc3216bdb80e04e012e916c019dea31355 (diff) |
pattern_sim: Implement phased gradients
Diffstat (limited to 'src/process_hkl.c')
-rw-r--r-- | src/process_hkl.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/process_hkl.c b/src/process_hkl.c index 7c42cd3e..306ee49f 100644 --- a/src/process_hkl.c +++ b/src/process_hkl.c @@ -176,7 +176,7 @@ static void process_reflections(double *ref, unsigned int *counts, if ( do_zoneaxis ) { char name[64]; snprintf(name, 63, "ZA-%u.dat", n_patterns); - write_reflections(name, counts, ref, 1, cell, 1); + write_reflections(name, counts, ref, NULL, 1, cell, 1); } fh = fopen("results/convergence.dat", "a"); @@ -323,7 +323,7 @@ int main(int argc, char *argv[]) if ( intfile != NULL ) { truecounts = new_list_count(); STATUS("Comparing against '%s'\n", intfile); - trueref = read_reflections(intfile, truecounts); + trueref = read_reflections(intfile, truecounts, NULL); free(intfile); } else { trueref = NULL; @@ -457,13 +457,14 @@ int main(int argc, char *argv[]) } if ( output != NULL ) { - write_reflections(output, model_counts, model, 0, cell, 1); + write_reflections(output, model_counts, model, NULL, + 0, cell, 1); } if ( config_zoneaxis ) { char name[64]; snprintf(name, 63, "ZA-%u.dat", n_patterns); - write_reflections(name, model_counts, model, 1, cell, 10); + write_reflections(name, model_counts, model, NULL, 1, cell, 10); } STATUS("There were %u patterns.\n", n_patterns); |