diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/pattern_sim.c | 4 |
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); |