aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am3
-rw-r--r--Makefile.in7
-rw-r--r--src/pattern_sim.c16
3 files changed, 4 insertions, 22 deletions
diff --git a/Makefile.am b/Makefile.am
index 63d0e291..db70f378 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -41,8 +41,7 @@ src_pattern_sim_SOURCES = src/pattern_sim.c src/diffraction.c src/utils.c \
src/image.c src/cell.c src/hdf5-file.c \
src/detector.c src/peaks.c \
src/reflist-utils.c src/beam-parameters.c \
- src/symmetry.c src/thread-pool.c src/reflist.c \
- src/geometry.c
+ src/symmetry.c src/thread-pool.c src/reflist.c
if HAVE_OPENCL
src_pattern_sim_SOURCES += src/diffraction-gpu.c src/cl-utils.c
diff --git a/Makefile.in b/Makefile.in
index 82ea4793..584d4ace 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -193,15 +193,14 @@ am__src_pattern_sim_SOURCES_DIST = src/pattern_sim.c src/diffraction.c \
src/utils.c src/image.c src/cell.c src/hdf5-file.c \
src/detector.c src/peaks.c src/reflist-utils.c \
src/beam-parameters.c src/symmetry.c src/thread-pool.c \
- src/reflist.c src/geometry.c src/diffraction-gpu.c \
- src/cl-utils.c
+ src/reflist.c src/diffraction-gpu.c src/cl-utils.c
am_src_pattern_sim_OBJECTS = src/pattern_sim.$(OBJEXT) \
src/diffraction.$(OBJEXT) src/utils.$(OBJEXT) \
src/image.$(OBJEXT) src/cell.$(OBJEXT) src/hdf5-file.$(OBJEXT) \
src/detector.$(OBJEXT) src/peaks.$(OBJEXT) \
src/reflist-utils.$(OBJEXT) src/beam-parameters.$(OBJEXT) \
src/symmetry.$(OBJEXT) src/thread-pool.$(OBJEXT) \
- src/reflist.$(OBJEXT) src/geometry.$(OBJEXT) $(am__objects_1)
+ src/reflist.$(OBJEXT) $(am__objects_1)
src_pattern_sim_OBJECTS = $(am_src_pattern_sim_OBJECTS)
src_pattern_sim_LDADD = $(LDADD)
src_pattern_sim_DEPENDENCIES = $(top_builddir)/lib/libgnu.a
@@ -635,7 +634,7 @@ src_pattern_sim_SOURCES = src/pattern_sim.c src/diffraction.c \
src/utils.c src/image.c src/cell.c src/hdf5-file.c \
src/detector.c src/peaks.c src/reflist-utils.c \
src/beam-parameters.c src/symmetry.c src/thread-pool.c \
- src/reflist.c src/geometry.c $(am__append_3)
+ src/reflist.c $(am__append_3)
@HAVE_OPENCL_TRUE@tests_gpu_sim_check_SOURCES = tests/gpu_sim_check.c src/utils.c \
@HAVE_OPENCL_TRUE@ src/diffraction.c src/diffraction-gpu.c \
@HAVE_OPENCL_TRUE@ src/thread-pool.c src/cell.c src/cl-utils.c \
diff --git a/src/pattern_sim.c b/src/pattern_sim.c
index 89fffbc5..e72c023d 100644
--- a/src/pattern_sim.c
+++ b/src/pattern_sim.c
@@ -33,7 +33,6 @@
#include "symmetry.h"
#include "reflist.h"
#include "reflist-utils.h"
-#include "geometry.h"
static void show_help(const char *s)
@@ -55,7 +54,6 @@ static void show_help(const char *s)
" -g, --geometry=<file> Get detector geometry from file.\n"
" -b, --beam=<file> Get beam parameters from file.\n"
"\n"
-" --near-bragg Output h,k,l,I near Bragg conditions.\n"
" -n, --number=<N> Generate N images. Default 1.\n"
" --no-images Do not output any HDF5 files.\n"
" -o, --output=<filename> Output HDF5 filename. Default: sim.h5.\n"
@@ -201,7 +199,6 @@ int main(int argc, char *argv[])
double *phases;
unsigned char *flags;
int config_simdetails = 0;
- int config_nearbragg = 0;
int config_randomquat = 0;
int config_noimages = 0;
int config_nonoise = 0;
@@ -232,7 +229,6 @@ int main(int argc, char *argv[])
{"help", 0, NULL, 'h'},
{"simulation-details", 0, &config_simdetails, 1},
{"gpu", 0, &config_gpu, 1},
- {"near-bragg", 0, &config_nearbragg, 1},
{"random-orientation", 0, NULL, 'r'},
{"number", 1, NULL, 'n'},
{"no-images", 0, &config_noimages, 1},
@@ -546,18 +542,6 @@ int main(int argc, char *argv[])
record_image(&image, !config_nonoise);
- if ( config_nearbragg ) {
-
- image.div = image.beam->divergence;
- image.bw = image.beam->bandwidth;
- image.profile_radius = 0.0001e9;
- image.reflections = find_intersections(&image,
- image.indexed_cell, 0);
-
- integrate_reflections(&image, 0, 0, 0);
-
- }
-
if ( powder_fn != NULL ) {
int x, y, w;