From 02d3ab685cb29722b3c61d2fc1a4fe7062a30851 Mon Sep 17 00:00:00 2001 From: "Christopher J. Morrone" Date: Sun, 8 Jan 2012 13:21:20 -0800 Subject: [PATCH] Fix backwards compatibility with the reorderTasks option. --- src/parse_options.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/parse_options.c b/src/parse_options.c index 8dbd861..938cc55 100644 --- a/src/parse_options.c +++ b/src/parse_options.c @@ -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) {