Commit 509f08dc authored by Thomas White's avatar Thomas White
Browse files

pattern_sim: Fix uninitialised stuff

parent 60c2e01b
......@@ -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"
......@@ -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));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment