aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2009-11-12 18:50:14 +0100
committerThomas White <taw@physics.org>2009-11-12 18:50:14 +0100
commit857cc8c991a5ee4e717d01822da271ae34f5adaa (patch)
tree891d9f6e63370871726fe78d23d8b6e3796d92fc /src/main.c
parentc9a551b872ae4eb16a606d46a7cf118af24f75f5 (diff)
Add 'detector' module
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index ee02d340..c101fc87 100644
--- a/src/main.c
+++ b/src/main.c
@@ -23,6 +23,7 @@
#include "cell.h"
#include "utils.h"
#include "hdf5-file.h"
+#include "detector.h"
/* Crystal size in metres */
@@ -80,9 +81,10 @@ int main(int argc, char *argv[])
image.data = NULL;
get_diffraction(&image, cell);
+ record_image(&image);
/* Write the output file */
- hdf5_write("results/sim.h5", image.sfacs, image.width, image.height);
+ hdf5_write("results/sim.h5", image.data, image.width, image.height);
return 0;
}