aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pattern_sim.c2
-rw-r--r--src/peaks.c2
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));