diff --git a/src/libs/antares/study/parameters/adq-patch-params.cpp b/src/libs/antares/study/parameters/adq-patch-params.cpp index 1322488561..2ab45e6fa6 100644 --- a/src/libs/antares/study/parameters/adq-patch-params.cpp +++ b/src/libs/antares/study/parameters/adq-patch-params.cpp @@ -176,13 +176,12 @@ bool AdqPatchParams::checkAdqPatchParams(const StudyMode studyMode, checkAdqPatchStudyModeEconomyOnly(studyMode); checkAdqPatchContainsAdqPatchArea(areas); checkAdqPatchIncludeHurdleCost(includeHurdleCostParameters); - checkAdqPatchDisabledLocalMatching(); return true; } // Adequacy Patch can only be used with Economy Study/Simulation Mode. -void AdqPatchParams::checkAdqPatchStudyModeEconomyOnly(const StudyMode studyMode) const +void AdqPatchParams::checkAdqPatchSimulationModeEconomyOnly(const StudyMode studyMode) const { if (studyMode != StudyMode::stdmEconomy) throw Error::IncompatibleStudyModeForAdqPatch(); diff --git a/src/tests/src/solver/optimisation/adequacy_patch.cpp b/src/tests/src/solver/optimisation/adequacy_patch.cpp index bb72a1a8bc..44a0935ab1 100644 --- a/src/tests/src/solver/optimisation/adequacy_patch.cpp +++ b/src/tests/src/solver/optimisation/adequacy_patch.cpp @@ -502,7 +502,6 @@ BOOST_AUTO_TEST_CASE(check_valid_adq_param) auto p = createParams(); BOOST_CHECK_NO_THROW(p.checkAdqPatchStudyModeEconomyOnly(Antares::Data::stdmEconomy)); BOOST_CHECK_NO_THROW(p.checkAdqPatchIncludeHurdleCost(true)); - BOOST_CHECK_NO_THROW(p.checkAdqPatchDisabledLocalMatching()); } BOOST_AUTO_TEST_CASE(check_adq_param_wrong_mode)