aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-11-18 14:09:22 +0100
committerThomas White <taw@physics.org>2014-11-18 14:09:22 +0100
commite24735836de763cc00ede79673d494687a0a4882 (patch)
tree550187d63a009f73f36a6c2fceb72424d0718531 /src
parenta989242a824d9852caf1d0f3bc99d3a45ee21a88 (diff)
pattern_sim: State where the intensities came from
Diffstat (limited to 'src')
-rw-r--r--src/pattern_sim.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/pattern_sim.c b/src/pattern_sim.c
index 908f61dc..aa3192d8 100644
--- a/src/pattern_sim.c
+++ b/src/pattern_sim.c
@@ -592,7 +592,6 @@ int main(int argc, char *argv[])
ERROR("Problem reading input file %s\n", intfile);
return 1;
}
- free(intfile);
if ( grad == GRADIENT_PHASED ) {
phases = phases_from_list(reflections);
@@ -683,7 +682,11 @@ int main(int argc, char *argv[])
STATUS(" Crystal size: 8 unit cells along "
"each of a, b and c\n");
}
-
+ if ( intfile == NULL ) {
+ STATUS(" Full intensities: all equal");
+ } else {
+ STATUS(" Full intensities: from %s\n", intfile);
+ }
do {
int na, nb, nc;
@@ -874,6 +877,7 @@ skip:
}
free(image.det->panels);
+ free(intfile);
free(image.det);
free(powder->data);
free(powder);