From e80945a30dc4606e54baa58d2ef069747bb5caa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Omn=C3=A8s?= Date: Thu, 5 Dec 2024 10:01:05 +0100 Subject: [PATCH] Fix launch studies with empty solver (#2523) By default, the "solver" field is empty. So the command line looks like this ``` antares-solver --progress "029 Pumped storage" --solver= ``` which is invalid. Unless the user provides a solver, don't append "--solver=" at the end of the command line. --- src/ui/simulator/application/study.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ui/simulator/application/study.cpp b/src/ui/simulator/application/study.cpp index c19ea5a1f8..ab4e65e472 100644 --- a/src/ui/simulator/application/study.cpp +++ b/src/ui/simulator/application/study.cpp @@ -1207,7 +1207,10 @@ void RunSimulationOnTheStudy(Data::Study::Ptr study, cmd << " --parallel"; // add solver name for ortools - cmd << " --solver=" << solverName; + if (!solverName.empty()) + { + cmd << " --solver=" << solverName; + } // Go go go ! logs.debug() << "running " << cmd;