Index: Ringtoets/Revetment/src/Ringtoets.Revetment.Data/WaveConditionsInput.cs
===================================================================
diff -u -raa56a5d7a6ec9f083ce3bd7a65d0c5b06470fd3b -r63b0f1800d86c219732bf730d0137e7711b00b47
--- Ringtoets/Revetment/src/Ringtoets.Revetment.Data/WaveConditionsInput.cs (.../WaveConditionsInput.cs) (revision aa56a5d7a6ec9f083ce3bd7a65d0c5b06470fd3b)
+++ Ringtoets/Revetment/src/Ringtoets.Revetment.Data/WaveConditionsInput.cs (.../WaveConditionsInput.cs) (revision 63b0f1800d86c219732bf730d0137e7711b00b47)
@@ -111,7 +111,7 @@
{
if (double.IsNaN(value))
{
- orientation = new RoundedDouble(2, double.NaN);
+ orientation = value.ToPrecision(orientation.NumberOfDecimalPlaces);
return;
}
@@ -125,34 +125,6 @@
}
///
- /// Gets or sets whether needs to be taken into account.
- ///
- public bool UseBreakWater { get; set; }
-
- ///
- /// Gets the .
- ///
- public BreakWater BreakWater { get; private set; }
-
- ///
- /// Gets or sets whether the needs to be taken into account.
- ///
- public bool UseForeshore { get; set; }
-
- ///
- /// Gets the geometry of the foreshore.
- ///
- public RoundedPoint2DCollection ForeshoreGeometry
- {
- get
- {
- return foreshoreProfile != null
- ? foreshoreProfile.Geometry
- : new RoundedPoint2DCollection(2, Enumerable.Empty());
- }
- }
-
- ///
/// Gets the upper boundary based on .
///
public RoundedDouble UpperBoundaryDesignWaterLevel
@@ -284,6 +256,34 @@
}
}
+ ///
+ /// Gets or sets whether needs to be taken into account.
+ ///
+ public bool UseBreakWater { get; set; }
+
+ ///
+ /// Gets the .
+ ///
+ public BreakWater BreakWater { get; private set; }
+
+ ///
+ /// Gets or sets whether the needs to be taken into account.
+ ///
+ public bool UseForeshore { get; set; }
+
+ ///
+ /// Gets the geometry of the foreshore.
+ ///
+ public RoundedPoint2DCollection ForeshoreGeometry
+ {
+ get
+ {
+ return foreshoreProfile != null
+ ? foreshoreProfile.Geometry
+ : new RoundedPoint2DCollection(2, Enumerable.Empty());
+ }
+ }
+
private static RoundedDouble ValidateUpperBoundaryInRange(RoundedDouble boundary)
{
if (boundary > 1000)
@@ -364,7 +364,7 @@
{
if (foreshoreProfile == null)
{
- Orientation = (RoundedDouble) 0.0;
+ Orientation = (RoundedDouble) double.NaN;
UseForeshore = false;
UseBreakWater = false;
BreakWater = GetDefaultBreakWater();