diff options
author | Thomas White <taw@bitwiz.org.uk> | 2010-06-05 17:03:18 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2010-06-05 17:03:18 +0200 |
commit | 509f08dc3216bdb80e04e012e916c019dea31355 (patch) | |
tree | 181bfe7d119dabaade24b17aefc26a8d0bfba72b | |
parent | 60c2e01b0faa0ff4955d9ffe1e99c7c8cffc2c5c (diff) |
pattern_sim: Fix uninitialised stuff
-rw-r--r-- | src/pattern_sim.c | 2 | ||||
-rw-r--r-- | src/peaks.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/pattern_sim.c b/src/pattern_sim.c index 05cdcf9d..8c7a7e4b 100644 --- a/src/pattern_sim.c +++ b/src/pattern_sim.c @@ -325,6 +325,8 @@ int main(int argc, char *argv[]) image.filename = NULL; image.features = NULL; image.flags = NULL; + image.f0 = 1.0; + image.f0_available = 1; #include "geometry-lcls.tmp" diff --git a/src/peaks.c b/src/peaks.c index e4853a71..72002379 100644 --- a/src/peaks.c +++ b/src/peaks.c @@ -533,7 +533,7 @@ void output_intensities(struct image *image, UnitCell *cell, printf("Orientation (wxyz): %7.5f %7.5f %7.5f %7.5f\n", image->orientation.w, image->orientation.x, image->orientation.y, image->orientation.z); - cell_get_parameters(image->indexed_cell, &a, &b, &c, &al, &be, &ga); + cell_get_parameters(cell, &a, &b, &c, &al, &be, &ga); printf("Cell parameters %7.5f %7.5f %7.5f nm, %7.5f %7.5f %7.5f deg\n", a*1.0e9, b*1.0e9, c*1.0e9, rad2deg(al), rad2deg(be), rad2deg(ga)); |