Skip to content

Commit

Permalink
#327 avoid crash when the init step is failing
Browse files Browse the repository at this point in the history
closes #327

Signed-off-by: Florentine Rosiere <[email protected]>
  • Loading branch information
rosiereflo authored and gaouizer committed Nov 7, 2024
1 parent 7cf7f48 commit 9051b1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sources/Launcher/DYNSystematicAnalysisLauncher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,11 @@ SystematicAnalysisLauncher::launchScenario(const boost::shared_ptr<Scenario>& sc
SimulationResult result;
result.setScenarioId(scenario->getId());
boost::shared_ptr<DYN::Simulation> simulation = createAndInitSimulation(workingDir, job, params, result, inputs_);
simulation->setTimelineOutputFile("");
simulation->setConstraintsOutputFile("");
simulation->setLostEquipmentsOutputFile("");

if (simulation) {
simulation->setTimelineOutputFile("");
simulation->setConstraintsOutputFile("");
simulation->setLostEquipmentsOutputFile("");
simulate(simulation, result);
}

Expand Down

0 comments on commit 9051b1a

Please sign in to comment.