diff options
author | Thomas White <taw@bitwiz.org.uk> | 2009-10-23 12:00:29 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2009-10-23 12:00:29 +0200 |
commit | f09b0fc4da61d107dffc0d45489b769326fd8a08 (patch) | |
tree | 02ebe57032f0db9e68078c6ed08d413aa8c7b323 /src/main.c | |
parent | 2600c19c6d9b994de1cb2d5e634571a55434c707 (diff) |
Restructuring ready for new simulation method
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 19 |
1 files changed, 1 insertions, 18 deletions
@@ -85,24 +85,7 @@ int main(int argc, char *argv[]) memset(image.data, 0, 512*512*2); image.tilt = deg2rad(t); - /* Calculate reflections */ - get_reflections(&image, cell, 1.0/CRYSTAL_SIZE); - - /* Construct the image */ - nrefl = image_feature_count(image.rflist); - for ( i=0; i<nrefl; i++ ) { - - struct imagefeature *f; - int x, y; - - f = image_get_feature(image.rflist, i); - - x = f->x; - y = f->y; /* Discards digits after the decimal point */ - - image.data[y*image.width+x] = 1; - - } + get_diffraction(&image, cell); /* Write the output file */ snprintf(filename, 32, "simulated-%.0f.h5", t); |