Do not override command when using 'resume'

This commit is contained in:
Ian Jauslin 2023-11-03 18:02:12 -04:00
parent 209ba06cbf
commit 6c12e47105
1 changed files with 3 additions and 2 deletions

View File

@ -175,8 +175,9 @@ int main (
return(ret);
}
// reread arguments (to allow overrides from the command line)
read_args(argc, argv, &param_str, &command, &nthreads, &savefile_str, &utfile_str, &resumefile_str);
// reread arguments (to allow overrides from the command line, but do not override the command)
unsigned int dummy_command;
read_args(argc, argv, &param_str, &dummy_command, &nthreads, &savefile_str, &utfile_str, &resumefile_str);
// reread params
read_params(param_str, &parameters, &initfile_str, &drivingfile_str);
}