Index: Ringtoets/Revetment/src/Ringtoets.Revetment.Data/WaveConditionsInput.cs
===================================================================
diff -u -r275811c8e133cba03f636224f40a9536a733fb1f -r752b8000ca808d85710d985c6c9b69dee1a05ae0
--- Ringtoets/Revetment/src/Ringtoets.Revetment.Data/WaveConditionsInput.cs (.../WaveConditionsInput.cs) (revision 275811c8e133cba03f636224f40a9536a733fb1f)
+++ Ringtoets/Revetment/src/Ringtoets.Revetment.Data/WaveConditionsInput.cs (.../WaveConditionsInput.cs) (revision 752b8000ca808d85710d985c6c9b69dee1a05ae0)
@@ -110,6 +110,19 @@
}
///
+ /// Gets the upper boundary based on .
+ ///
+ public RoundedDouble UpperBoundaryDesignWaterLevel
+ {
+ get
+ {
+ return new RoundedDouble(2, HydraulicBoundaryLocation != null && !double.IsNaN(HydraulicBoundaryLocation.DesignWaterLevel)
+ ? HydraulicBoundaryLocation.DesignWaterLevel - designWaterLevelSubstraction
+ : double.NaN);
+ }
+ }
+
+ ///
/// Gets or sets the lower boundary of the revetment.
///
/// Thrown when value is larger than or equal to .
@@ -251,18 +264,11 @@
}
}
- private double DetermineUpperWaterLevel()
- {
- return HydraulicBoundaryLocation != null && !double.IsNaN(HydraulicBoundaryLocation.DesignWaterLevel)
- ? HydraulicBoundaryLocation.DesignWaterLevel - designWaterLevelSubstraction
- : double.NaN;
- }
-
private IEnumerable DetermineWaterLevels()
{
var waterLevels = new List();
- var upperBoundary = new RoundedDouble(2, Math.Min(DetermineUpperWaterLevel(),
+ var upperBoundary = new RoundedDouble(2, Math.Min(UpperBoundaryDesignWaterLevel,
Math.Min(UpperBoundaryRevetment,
!double.IsNaN(UpperBoundaryWaterLevels)
? UpperBoundaryWaterLevels