aboutsummaryrefslogtreecommitdiff
path: root/src/pattern_sim.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-01-22 13:49:48 +0100
committerThomas White <taw@physics.org>2014-01-22 13:50:08 +0100
commit4e172a34adca99d71a22aa4bcaccf0dd6a374400 (patch)
treea3c1fa59f92e9ccf5df15836fc3b0e2a9fe83fea /src/pattern_sim.c
parent364ef8cbcec43e22cac41439284eb13eb7796e84 (diff)
pattern_sim: Make spectrum type case-insensitive
Diffstat (limited to 'src/pattern_sim.c')
-rw-r--r--src/pattern_sim.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pattern_sim.c b/src/pattern_sim.c
index 7be2acfb..d852d986 100644
--- a/src/pattern_sim.c
+++ b/src/pattern_sim.c
@@ -436,9 +436,9 @@ int main(int argc, char *argv[])
STATUS("You didn't specify a spectrum type, so"
" I'm using a 'tophat' spectrum.\n");
spectrum_type = SPECTRUM_TOPHAT;
- } else if ( strcmp(spectrum_str, "tophat") == 0) {
+ } else if ( strcasecmp(spectrum_str, "tophat") == 0) {
spectrum_type = SPECTRUM_TOPHAT;
- } else if ( strcmp(spectrum_str, "SASE") == 0) {
+ } else if ( strcasecmp(spectrum_str, "sase") == 0) {
spectrum_type = SPECTRUM_SASE;
} else {
ERROR("Unrecognised spectrum type '%s'\n", spectrum_str);