aboutsummaryrefslogtreecommitdiff
path: root/src/pattern_sim.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-02-05 12:21:07 +0100
committerThomas White <taw@physics.org>2010-02-05 12:21:07 +0100
commit82170d86b63a439c5857402bf5b15d27739f25b0 (patch)
tree27fd718baa6295fc622ed9c3727f8bad9f58d292 /src/pattern_sim.c
parent1374dfa38ef7bdb7c18e92d058f51b3d79895cec (diff)
Add --no-sfac option for ignoring structure factors
Diffstat (limited to 'src/pattern_sim.c')
-rw-r--r--src/pattern_sim.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pattern_sim.c b/src/pattern_sim.c
index d3056643..433a7589 100644
--- a/src/pattern_sim.c
+++ b/src/pattern_sim.c
@@ -156,6 +156,7 @@ int main(int argc, char *argv[])
int config_nowater = 0;
int config_nonoise = 0;
int config_nobloom = 0;
+ int config_nosfac = 0;
int number = 1; /* Index for the current image */
int n_images = 1; /* Generate one image by default */
int done = 0;
@@ -171,6 +172,7 @@ int main(int argc, char *argv[])
{"no-water", 0, &config_nowater, 1},
{"no-noise", 0, &config_nonoise, 1},
{"no-bloom", 0, &config_nobloom, 1},
+ {"no-sfac", 0, &config_nosfac, 1},
{0, 0, NULL, 0}
};
@@ -272,7 +274,7 @@ int main(int argc, char *argv[])
image.twotheta = NULL;
image.hdr = NULL;
- get_diffraction(&image, na, nb, nc);
+ get_diffraction(&image, na, nb, nc, config_nosfac);
if ( image.molecule == NULL ) {
ERROR("Couldn't open molecule.pdb\n");
return 1;