compute-hops: bugfix rollback-threshold

Rollback threshold was not set by command line argument.

Change-Id: I68ba63cc5cd31e3af8408f83caec8b3d7bb10c78
This commit is contained in:
Lars Rademacher
2013-12-31 14:54:11 +01:00
parent 99bcd93ffb
commit 0e7ee03937

View File

@ -228,7 +228,7 @@ int main(int argc, char *argv[])
// if (strcmp(argv[9],"max")==0) {
// g_rollback_thresh = (g_cp_thresh - g_cost_cp - 5)/2;
// }
g_cost_cp = strtoul(cmd[CP_ROLLBACK_THRESH].first()->arg, NULL, 0);
g_rollback_thresh = strtoul(cmd[CP_ROLLBACK_THRESH].first()->arg, NULL, 0);
}
if (cmd[USE_CHECKPOINTS] && !(cmd[CHECKPOINT_OUTPUT_FILE].count() > 0)) {