From db036445d0a99fb68e5e7da131ab056b02a5b90c Mon Sep 17 00:00:00 2001 From: Dimitri Baron Date: Wed, 30 Oct 2024 14:30:56 +0100 Subject: [PATCH] #431 Update following DYN-2455 (following Part. 4) Signed-off-by: Dimitri Baron --- sources/Launcher/DYNComputeLoadVariationLauncher.cpp | 2 +- sources/Launcher/DYNMarginCalculationLauncher.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sources/Launcher/DYNComputeLoadVariationLauncher.cpp b/sources/Launcher/DYNComputeLoadVariationLauncher.cpp index e6dd30a9..67343af8 100644 --- a/sources/Launcher/DYNComputeLoadVariationLauncher.cpp +++ b/sources/Launcher/DYNComputeLoadVariationLauncher.cpp @@ -71,7 +71,7 @@ ComputeLoadVariationLauncher::launch() { boost::shared_ptr simulation = createAndInitSimulation(workingDir, job, params, result, inputs_); if (simulation) { - boost::shared_ptr modelMulti = boost::dynamic_pointer_cast(simulation->getModel()); + std::shared_ptr modelMulti = std::dynamic_pointer_cast(simulation->getModel()); auto subModels = modelMulti->findSubModelByLib(createAbsolutePath(std::string("DYNModelVariationArea") + DYN::sharedLibraryExtension(), DDBDir)); double duration = 0; for (unsigned int i=0; i < subModels.size(); i++) { diff --git a/sources/Launcher/DYNMarginCalculationLauncher.cpp b/sources/Launcher/DYNMarginCalculationLauncher.cpp index 0c4e315a..198fe337 100644 --- a/sources/Launcher/DYNMarginCalculationLauncher.cpp +++ b/sources/Launcher/DYNMarginCalculationLauncher.cpp @@ -627,7 +627,7 @@ MarginCalculationLauncher::launchScenario(const MultiVariantInputs& inputs, cons simulation->setTimelineOutputFile(""); simulation->setConstraintsOutputFile(""); // The event time should be adapted (the list of events models supported currently corresponds to events really used) - boost::shared_ptr modelMulti = boost::dynamic_pointer_cast(simulation->getModel()); + std::shared_ptr modelMulti = std::dynamic_pointer_cast(simulation->getModel()); std::string DDBDir = getEnvVar("DYNAWO_DDB_DIR"); decltype(modelMulti->findSubModelByLib("")) subModels; auto addSubModelsByLib = [&](const std::string& libName) { @@ -820,7 +820,7 @@ MarginCalculationLauncher::launchLoadIncrease(const boost::shared_ptr simulation = createAndInitSimulation(workingDir, job, params, result, inputs_); if (simulation) { - boost::shared_ptr modelMulti = boost::dynamic_pointer_cast(simulation->getModel()); + std::shared_ptr modelMulti = std::dynamic_pointer_cast(simulation->getModel()); std::string DDBDir = getMandatoryEnvVar("DYNAWO_DDB_DIR"); auto subModels = modelMulti->findSubModelByLib(createAbsolutePath(std::string("DYNModelVariationArea") + DYN::sharedLibraryExtension(), DDBDir)); for (std::vector >::const_iterator it = subModels.begin(); it != subModels.end(); ++it) {