diff options
author | Thomas White <taw@physics.org> | 2019-05-03 10:24:12 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2019-05-07 16:00:38 +0200 |
commit | 6d5dd6eda5f344563b87da86112a9605a463d298 (patch) | |
tree | b41eaaef8b73b8e5e4e5b934aea50d713658e3a2 /src | |
parent | 50a3cb06809bae0f56e5063e5e051a6d04502b99 (diff) |
Move spectrum type enum to pattern_sim.c
Diffstat (limited to 'src')
-rw-r--r-- | src/pattern_sim.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/pattern_sim.c b/src/pattern_sim.c index 5b25100e..5ee53514 100644 --- a/src/pattern_sim.c +++ b/src/pattern_sim.c @@ -58,6 +58,13 @@ #include "stream.h" +enum spectrum_type { + SPECTRUM_TOPHAT, /**< A top hat distribution */ + SPECTRUM_SASE, /**< A simulated SASE spectrum */ + SPECTRUM_TWOCOLOUR, /**< A spectrum containing two peaks */ + SPECTRUM_FROMFILE /**< An arbitrary spectrum read from a file */ +}; + static void show_help(const char *s) { printf("Syntax: %s [options]\n\n", s); @@ -370,7 +377,7 @@ int main(int argc, char *argv[]) char *spectrum_str = NULL; char *spectrum_fn = NULL; GradientMethod grad; - SpectrumType spectrum_type; + enum spectrum_type spectrum_type; int ndone = 0; /* Number of simulations done (images or not) */ int number = 1; /* Number used for filename of image */ int n_images = 1; /* Generate one image by default */ |