Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators/DikesDesign/SurfaceLineAdapter.cs =================================================================== diff -u -r6245 -r6401 --- DamEngine/trunk/src/Deltares.DamEngine.Calculators/DikesDesign/SurfaceLineAdapter.cs (.../SurfaceLineAdapter.cs) (revision 6245) +++ DamEngine/trunk/src/Deltares.DamEngine.Calculators/DikesDesign/SurfaceLineAdapter.cs (.../SurfaceLineAdapter.cs) (revision 6401) @@ -27,7 +27,6 @@ using Deltares.DamEngine.Data.Geometry; using Deltares.DamEngine.Data.Geotechnics; using Deltares.DamEngine.Data.Standard; -using MathNet.Numerics; namespace Deltares.DamEngine.Calculators.DikesDesign; @@ -326,10 +325,10 @@ // TODO: #the Following code is not correct; you should also look at the setting of Location.UseNewMinDistanceDikeToeStartDitch // First determine all coordinates - if (distanceToNewToe.IsSmaller(Location.NewMinDistanceDikeToeStartDitch, GeometryConstants.Tolerance) && + if (distanceToNewToe.IsLessThan(Location.NewMinDistanceDikeToeStartDitch, GeometryConstants.Tolerance) && !distanceToNewToe.IsNearEqual(ditchDefinition.Value.DistanceFromToe, GeometryConstants.Tolerance)) { - // Ditch needs to be moved as it is less then the minimum required distance from the new toe + // Ditch needs to be moved as it is less than the minimum required distance from the new toe xDitchDikeSide = dikeToeAtPolder.X + Location.NewMinDistanceDikeToeStartDitch; if (Location.UseNewDitchDefinition) {