From 6c12e47105b218e3bfecae4f8541833e913cdfe9 Mon Sep 17 00:00:00 2001 From: Ian Jauslin Date: Fri, 3 Nov 2023 18:02:12 -0400 Subject: [PATCH] Do not override command when using 'resume' --- src/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index fe3b77a..5066c47 100644 --- a/src/main.c +++ b/src/main.c @@ -175,8 +175,9 @@ int main ( return(ret); } - // reread arguments (to allow overrides from the command line) - read_args(argc, argv, ¶m_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, ¶m_str, &dummy_command, &nthreads, &savefile_str, &utfile_str, &resumefile_str); // reread params read_params(param_str, ¶meters, &initfile_str, &drivingfile_str); }