Index: DamClients/DamUI/trunk/src/Dam/Deltares.Dam.Tests/LocationTest.cs =================================================================== diff -u -r5515 -r5518 --- DamClients/DamUI/trunk/src/Dam/Deltares.Dam.Tests/LocationTest.cs (.../LocationTest.cs) (revision 5515) +++ DamClients/DamUI/trunk/src/Dam/Deltares.Dam.Tests/LocationTest.cs (.../LocationTest.cs) (revision 5518) @@ -112,7 +112,7 @@ string header = LocalizationManager.GetTranslatedText(typeof(Location), "IntrusionVerticalWaterPressure"); string selectedModel = LocalizationManager.GetTranslatedText(typeof(Location), model.ToString()); - string message = string.Format(LocalizationManager.GetTranslatedText(typeof(Location), expectedWarning), [header, selectedModel]); + string message = string.Format(LocalizationManager.GetTranslatedText(typeof(Location), expectedWarning), header, selectedModel); Assert.That(validationResults[0].Text, Is.EqualTo(message)); }); } Index: DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/Location.cs =================================================================== diff -u -r5514 -r5518 --- DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/Location.cs (.../Location.cs) (revision 5514) +++ DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/Location.cs (.../Location.cs) (revision 5518) @@ -27,6 +27,7 @@ using System.Linq; using System.Xml.Serialization; using Deltares.Dam.Data.Sensors; +using Deltares.DamEngine.Data.Standard; using Deltares.Geographic; using Deltares.Geometry; using Deltares.Geotechnics.Converter; @@ -1751,15 +1752,15 @@ { return new[] { - new ValidationResult(ValidationResultType.Warning, String.Format(LocalizationManager.GetTranslatedText(this, "UseOfPenetrationLengthWithoutSemiTimeDependentModel"), [header, selectedModel]), this, "PenetrationLength", "AssignMinValue", this) + new ValidationResult(ValidationResultType.Warning, String.Format(LocalizationManager.GetTranslatedText(this, "UseOfPenetrationLengthWithoutSemiTimeDependentModel"), header, selectedModel), this, "PenetrationLength", "AssignMinValue", this) }; } - if ((PenetrationLength == 0) && (IntrusionVerticalWaterPressure == IntrusionVerticalWaterPressureType.SemiTimeDependent)) + if (PenetrationLength.IsLessThanOrEqualTo(0, 1e-6) && (IntrusionVerticalWaterPressure == IntrusionVerticalWaterPressureType.SemiTimeDependent)) { return new[] { - new ValidationResult(ValidationResultType.Warning, String.Format(LocalizationManager.GetTranslatedText(this, "UseOfSemiTimeDependentModelWithoutPenetrationLength"), [header, selectedModel]), this) + new ValidationResult(ValidationResultType.Warning, String.Format(LocalizationManager.GetTranslatedText(this, "UseOfSemiTimeDependentModelWithoutPenetrationLength"), header, selectedModel), this) }; }