Skip to content

Commit

Permalink
Fix SW_DOM_read(): remove redundant switch case
Browse files Browse the repository at this point in the history
- I mistakenly created two switch cases (13 and 17) for spinup mode to read user values in SW_DOM_read() with commit c72938a: I improperly resolved merge conflicts from pulling in release/devel_v8.0.0 into feature_spinup --> here, I removed the redundant switch case 17

- thanks to @niteflyunicorns for identifying this!
  • Loading branch information
dschlaep committed Feb 12, 2024
1 parent 32ae7d5 commit 864606a
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/SW_Domain.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,18 +261,6 @@ void SW_DOM_read(SW_DOMAIN* SW_Domain, LOG_INFO* LogInfo) {
case 16: // Spinup Seed
SW_Domain->SW_SpinUp.rng_seed = atoi( value );
break;
case 17: // Spinup Mode
y = atoi(value);

if (y != 1 && y != 2) {
CloseFile(&f, LogInfo);
LogError(LogInfo, LOGERROR,
"%s: Incorrect Mode (%d) for spinup"\
" Please select \"1\" or \"2\"", MyFileName, y);
return; // Exit function prematurely due to error
}
SW_Domain->SW_SpinUp.mode = atoi(value);
break;

case KEY_NOT_FOUND: // Unknown key
LogError(LogInfo, LOGWARN, "%s: Ignoring an unknown key, %s",
Expand Down

0 comments on commit 864606a

Please sign in to comment.