Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/Common/SoilProfile2DHelper.cs =================================================================== diff -u -r5836 -r5919 --- DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/Common/SoilProfile2DHelper.cs (.../SoilProfile2DHelper.cs) (revision 5836) +++ DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/Common/SoilProfile2DHelper.cs (.../SoilProfile2DHelper.cs) (revision 5919) @@ -80,6 +80,9 @@ return true; } + // The inner loops are removed otherwise in case of "Aquitard inner loop in aquifer" the method + // IsAtLeastOneIsolatedInBetweenAquiferPresent will return True because the number of aquifers in the first crossSection + // cutting the inner loop is higher than in the previousCrossSection outside the inner loop. SoilProfile2D soilProfileWithoutInnerLoops = CreateSoilProfileWithoutInnerLoops(soilProfile); double[] xCoordinates = DetermineAllXCoordinatesOfSoilProfile(soilProfileWithoutInnerLoops); var previousCount = 0;