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) {