Skip to content

Commit

Permalink
Fix backwards compatibility with the reorderTasks option.
Browse files Browse the repository at this point in the history
  • Loading branch information
morrone committed Jan 9, 2012
1 parent 8e06f07 commit 02d3ab6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/parse_options.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,18 @@ void DecodeDirective(char *line, IOR_param_t *params)
params->writeFile = atoi(value);
} else if (strcasecmp(option, "fileperproc") == 0) {
params->filePerProc = atoi(value);
} else if (strcasecmp(option, "reordertasksconstant") == 0) {
params->reorderTasks = atoi(value);
} else if (strcasecmp(option, "taskpernodeoffset") == 0) {
params->taskPerNodeOffset = atoi(value);
} else if (strcasecmp(option, "reordertasksconstant") == 0) {
params->reorderTasks = atoi(value);
} else if (strcasecmp(option, "reordertasksrandom") == 0) {
params->reorderTasksRandom = atoi(value);
} else if (strcasecmp(option, "reordertasksrandomSeed") == 0) {
params->reorderTasksRandomSeed = atoi(value);
} else if (strcasecmp(option, "reordertasks") == 0) {
/* Backwards compatibility for the "reorderTasks" option.
MUST follow the other longer reordertasks checks. */
params->reorderTasks = atoi(value);
} else if (strcasecmp(option, "checkwrite") == 0) {
params->checkWrite = atoi(value);
} else if (strcasecmp(option, "checkread") == 0) {
Expand Down

0 comments on commit 02d3ab6

Please sign in to comment.