Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/KernelWrappers/MacroStabilityInwards/MacroStabilityInwardsKernelWrapperTests.cs =================================================================== diff -u -r3307 -r3323 --- DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/KernelWrappers/MacroStabilityInwards/MacroStabilityInwardsKernelWrapperTests.cs (.../MacroStabilityInwardsKernelWrapperTests.cs) (revision 3307) +++ DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/KernelWrappers/MacroStabilityInwards/MacroStabilityInwardsKernelWrapperTests.cs (.../MacroStabilityInwardsKernelWrapperTests.cs) (revision 3323) @@ -29,6 +29,7 @@ using Deltares.DamEngine.Data.Design; using Deltares.DamEngine.Data.General; using Deltares.DamEngine.Data.General.Results; +using Deltares.DamEngine.Data.Geotechnics; using Deltares.DamEngine.Data.Standard.Calculation; using Deltares.DamEngine.Interface; using Deltares.DamEngine.Io; @@ -333,16 +334,18 @@ location.SurfaceLine.CharacteristicPoints.GetGeometryPoint(CharacteristicPointType.DitchPolderSide).X = 62.5; location.SurfaceLine.Geometry.SyncCalcPoints(); + SoilProfile1D soilProfile = DamEngineDataTestFactory.CreateSoilProfile1D(location.SoilList); + SetWaterpressureInterpolationModel(soilProfile.Layers); + // This test is based on a 1D profile, to be combined with the surface line. var subSoilScenario = new SoilGeometryProbability(); subSoilScenario.SoilProfileType = SoilProfileType.ProfileType1D; subSoilScenario.StiFileName = ""; subSoilScenario.FullStiFileName = ""; subSoilScenario.SoilProfile2D = null; subSoilScenario.SegmentFailureMechanismType = SegmentFailureMechanismType.Stability; + subSoilScenario.SoilProfile1D = soilProfile; - subSoilScenario.SoilProfile1D = DamEngineDataTestFactory.CreateSoilProfile1D(location.SoilList); - var damKernelInput = new DamKernelInput { Location = location, @@ -368,5 +371,12 @@ return damKernelInput; } + private static void SetWaterpressureInterpolationModel(IEnumerable layers) + { + foreach (SoilLayer1D layer in layers) + { + layer.WaterpressureInterpolationModel = WaterpressureInterpolationModel.Hydrostatic; + } + } } }