Index: DamEngine/trunk/doc/Dam Engine - Functional Design/DAM Engine - Functional Design.pdf =================================================================== diff -u -r2674 -r2797 Binary files differ Index: DamEngine/trunk/doc/Dam Engine - Functional Design/REQDataGenerationWater.tex =================================================================== diff -u -r2756 -r2797 --- DamEngine/trunk/doc/Dam Engine - Functional Design/REQDataGenerationWater.tex (.../REQDataGenerationWater.tex) (revision 2756) +++ DamEngine/trunk/doc/Dam Engine - Functional Design/REQDataGenerationWater.tex (.../REQDataGenerationWater.tex) (revision 2797) @@ -64,8 +64,7 @@ When the waterlevel is higher then Z Dike top at river calculating can not be made: message is given. -The determination of the intersection of the water level with the outer slope (point A in \autoref{tab:OffsetRRD})is made between the characteristic points Dike toe at river and Dike crest at river. So if the surfacelevel left of the Dike toe at river is above the phreatic line the eventual intersections are ignored. -If there is no intersection between the phreatic line and the surface line because the water level (high and low) is lower than the minimum Z value of the surface line, then the phreatic line is horizontal until the X = X dike toe at river. From there the phreatic line goes to next available offset points Dike top at river (B) etc. +The determination of the intersection of the water level with the outer slope (point A in \autoref{tab:OffsetRRD})is made between the characteristic points Dike toe at river and Dike crest at river. So if the water level (high and low!) is not between or on Dike toe at river and Dike crest at river, an error must be given.\\ \subsection {ExpertKnowledgeLineairDike} Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/Sensors/SensorPLLineCreatorTest.cs =================================================================== diff -u -r2791 -r2797 --- DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/Sensors/SensorPLLineCreatorTest.cs (.../SensorPLLineCreatorTest.cs) (revision 2791) +++ DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/Sensors/SensorPLLineCreatorTest.cs (.../SensorPLLineCreatorTest.cs) (revision 2797) @@ -280,7 +280,7 @@ Assert.AreEqual(expectedEndPoint, lastPoint.Z); } - [TestCase(0.0)] + [TestCase(-0.001)] [TestCase(-10.0)] [TestCase(10.0)] public void CreatePlLine_Pl1WithIllegalWaterLevel_Throws(double riverLevel) @@ -333,7 +333,7 @@ { Assert.That(() => creator.CreatePlLine(), Throws.TypeOf(typeof(SurfaceLineException)).With.Message.Contains("should NOT be higher than surface line")); } - if (riverLevel <= 0) + if (riverLevel < 0) { Assert.That(() => creator.CreatePlLine(), Throws.TypeOf(typeof(SurfaceLineException)).With.Message