Index: dam engine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/DamMacroStability/MStabXmlDoc.cs =================================================================== diff -u -r773 -r785 --- dam engine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/DamMacroStability/MStabXmlDoc.cs (.../MStabXmlDoc.cs) (revision 773) +++ dam engine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/DamMacroStability/MStabXmlDoc.cs (.../MStabXmlDoc.cs) (revision 785) @@ -168,23 +168,8 @@ var waterLevel = riverLevelHigh.Value; UpliftSituation upliftSituation; failureMechanismeParamatersMStab.PLLines = PlLinesHelper.CreatePlLinesForStability( - scenario.Location, subSoilScenario, waterLevel, soilGeometry2DName, out upliftSituation); - - // // ToDo zant Move this CreateAllPLLines to CalculationHelper. riverLevelLow used for stability outwards only - // var calculator = new StabilityCalculator(failureMechanismeParamatersMStab, - // ProgramType.MStab, - // scenario.Location.ModelParametersForPLLines, - // scenario.Location.TrafficLoad, - // scenario.Location.MinimalCircleDepth, - // requiredSafetyFactor, - // "", - // null, - // scenario.Location.GaugePLLines, - // scenario.Location.Gauges, - // scenario.Location.SoilList); - // failureMechanismeParamatersMStab.PLLines = calculator.CreateAllPLLines( - // scenario.Location, surfaceLine, soilProfile, soilGeometry2DName, waterLevel, riverLevelLow); - + scenario.Location, subSoilScenario, waterLevel, soilGeometry2DName, riverLevelLow, out upliftSituation); + // Slip circle definition for Uplift Van; TODO: Combine with code in StabilityCalculation if (failureMechanismeParamatersMStab.MStabParameters.Model == MStabModelType.UpliftVan) { Index: dam engine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/Common/PlLinesHelper.cs =================================================================== diff -u -r715 -r785 --- dam engine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/Common/PlLinesHelper.cs (.../PlLinesHelper.cs) (revision 715) +++ dam engine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/Common/PlLinesHelper.cs (.../PlLinesHelper.cs) (revision 785) @@ -24,10 +24,12 @@ /// The uplift situation. /// public static PLLines CreatePlLinesForStability(Location location, SoilGeometryProbability subSoilScenario, - double waterLevel, string soilGeometry2DName, out UpliftSituation upliftSituation) + double waterLevel, string soilGeometry2DName, double waterLevelRiverLow, out UpliftSituation upliftSituation) { var plLinesCreator = new PLLinesCreator { + WaterLevelRiverLow = waterLevelRiverLow, + IsUseLowWaterLevel = !double.IsNaN(waterLevelRiverLow), WaterLevelRiverHigh = waterLevel, SurfaceLine = location.SurfaceLine, WaterLevelPolder = location.PolderLevel,