Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators/DikesDesign/SurfaceLineShoulderAdapter.cs =================================================================== diff -u -r6404 -r7077 --- DamEngine/trunk/src/Deltares.DamEngine.Calculators/DikesDesign/SurfaceLineShoulderAdapter.cs (.../SurfaceLineShoulderAdapter.cs) (revision 6404) +++ DamEngine/trunk/src/Deltares.DamEngine.Calculators/DikesDesign/SurfaceLineShoulderAdapter.cs (.../SurfaceLineShoulderAdapter.cs) (revision 7077) @@ -1,4 +1,4 @@ -// Copyright (C) Stichting Deltares 2025. All rights reserved. +// Copyright (C) Stichting Deltares 2026. All rights reserved. // // This file is part of the Dam Engine. // @@ -106,15 +106,15 @@ if (designFromDikeToe) { // for piping design, when the required new height is larger than allowed, it is an error! - if ((MaxShoulderLevel - dikeToeAtPolder.Z) < shoulderHeight) + if (MaxShoulderLevel - dikeToeAtPolder.Z < shoulderHeight) { throw new SurfaceLineAdapterException(Resources.SurfaceLineShoulderAdapterNewShoulderHeightTooLargeError); } } else { // Assure new height is less then or equal to the maximum height - shoulderHeight = Math.Min(shoulderHeight, (MaxShoulderLevel - dikeToeAtPolder.Z)); + shoulderHeight = Math.Min(shoulderHeight, MaxShoulderLevel - dikeToeAtPolder.Z); } // Find the intersection point at new shoulder height with the dike, this is where the new shoulder starts