diff options
author | Thomas White <taw@physics.org> | 2014-03-21 16:50:43 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2014-03-24 12:05:55 +0100 |
commit | 774b310375715d665586aaa16d0aca7faf9a561f (patch) | |
tree | c4f343078d9e100bb37203f1ca1c731c7a055c06 /src | |
parent | 8c40793e3b648d6c0709b0e080ab523db69fabe0 (diff) |
partial_sim: Update documentation
Diffstat (limited to 'src')
-rw-r--r-- | src/partial_sim.c | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/partial_sim.c b/src/partial_sim.c index e35c7ef2..bbcc5a63 100644 --- a/src/partial_sim.c +++ b/src/partial_sim.c @@ -230,11 +230,9 @@ static void show_help(const char *s) " -n <n> Simulate <n> patterns. Default: 2.\n" " -r, --save-random=<file> Save randomly generated intensities to file.\n" " --pgraph=<file> Save a histogram of partiality values to file.\n" -" -c, --cnoise=<val> Add random noise, with a flat distribution, to the\n" -" reciprocal lattice vector components given in the\n" -" stream, with maximum error +/- <val> percent.\n" -" --osf-stddev=<val> Set the standard deviation of the scaling factors.\n" -" --full-stddev=<val> Set the standard deviation of the randomly\n" +" -c, --cnoise=<val> Amount of reciprocal space cell noise, in percent.\n" +" --osf-stddev=<val> Standard deviation of the scaling factors.\n" +" --full-stddev=<val> Standard deviation of the randomly\n" " generated full intensities, if not using -i.\n" " --noise-stddev=<val> Set the standard deviation of the noise.\n" "\n" @@ -470,14 +468,14 @@ int main(int argc, char *argv[]) show_help(argv[0]); return 0; - case 'o' : - output_file = strdup(optarg); - break; - case 'i' : input_file = strdup(optarg); break; + case 'o' : + output_file = strdup(optarg); + break; + case 'b' : beamfile = strdup(optarg); break; @@ -579,6 +577,11 @@ int main(int argc, char *argv[]) return 1; } + if ( (n_threads > 1) && (image_prefix != NULL) ) { + ERROR("Option \"--images\" is incompatible with \"-j\".\n"); + return 1; + } + /* Load beam */ if ( beamfile == NULL ) { ERROR("You need to provide a beam parameters file.\n"); |