Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators/DikesDesign/DesignCalculator.cs =================================================================== diff -u -r1152 -r1153 --- DamEngine/trunk/src/Deltares.DamEngine.Calculators/DikesDesign/DesignCalculator.cs (.../DesignCalculator.cs) (revision 1152) +++ DamEngine/trunk/src/Deltares.DamEngine.Calculators/DikesDesign/DesignCalculator.cs (.../DesignCalculator.cs) (revision 1153) @@ -91,13 +91,13 @@ case AnalysisType.AdaptGeometry: PerformDesignCalculation( kernelWrapper, kernelDataInput, kernelDataOutput, - damKernelInput, designScenario, calculationMessages, + damKernelInput, designScenario, calculationMessages, damProjectData.DesignCalculations); break; case AnalysisType.NoAdaption: DesignCalculatorSingle.PerformSingleCalculation( kernelWrapper, kernelDataInput, kernelDataOutput, - damKernelInput, designScenario, calculationMessages, + damKernelInput, designScenario, calculationMessages, damProjectData.DesignCalculations); break; @@ -143,10 +143,22 @@ DesignScenario designScenario, List calculationMessages, List designCalculations) { - DesignCalculatorShoulderPerPoint.PerformDesignCalculationShoulderPerPoint( - kernelWrapper, kernelDataInput, kernelDataOutput, - damKernelInput, designScenario, calculationMessages, - designCalculations); + switch (kernelWrapper.GetDesignStrategy()) + { + case DesignStrategy.ShoulderPerPoint: + DesignCalculatorShoulderPerPoint.PerformDesignCalculationShoulderPerPoint( + kernelWrapper, kernelDataInput, kernelDataOutput, + damKernelInput, designScenario, calculationMessages, + designCalculations); + break; + case DesignStrategy.NoDesignPossible: + throw new NotImplementedException("No design is possible for this failure mechanism"); + case DesignStrategy.SlopeAdaptionBeforeShoulderAdaption: + throw new NotImplementedException("SlopeAdaptionBeforeShoulderAdaption design strategy is not implemented yet."); + case DesignStrategy.OptimizedSlopeAndShoulderAdaption: + throw new NotImplementedException("OptimizedSlopeAndShoulderAdaption design strategy is not implemented yet."); + break; + } } ///