Index: Ringtoets/Revetment/src/Ringtoets.Revetment.Data/WaveConditionsInput.cs =================================================================== diff -u -rd2b9feaf8aceaa9a96d0e6e19fd6fbbee8987ca6 -re4313e642aa3af2d1f1ced4c397c421579cfb36d --- Ringtoets/Revetment/src/Ringtoets.Revetment.Data/WaveConditionsInput.cs (.../WaveConditionsInput.cs) (revision d2b9feaf8aceaa9a96d0e6e19fd6fbbee8987ca6) +++ Ringtoets/Revetment/src/Ringtoets.Revetment.Data/WaveConditionsInput.cs (.../WaveConditionsInput.cs) (revision e4313e642aa3af2d1f1ced4c397c421579cfb36d) @@ -66,6 +66,18 @@ public HydraulicBoundaryLocation HydraulicBoundaryLocation { get; set; } /// + /// Gets the assessment level from the current hydraulic boundary location, or if there is no + /// location selected. + /// + public RoundedDouble AssessmentLevel + { + get + { + return HydraulicBoundaryLocation != null ? HydraulicBoundaryLocation.DesignWaterLevel : new RoundedDouble(2, double.NaN); + } + } + + /// /// Gets or sets the foreshore profile. /// public ForeshoreProfile ForeshoreProfile @@ -116,9 +128,7 @@ { get { - return new RoundedDouble(2, HydraulicBoundaryLocation != null && !double.IsNaN(HydraulicBoundaryLocation.DesignWaterLevel) - ? HydraulicBoundaryLocation.DesignWaterLevel - designWaterLevelSubstraction - : double.NaN); + return new RoundedDouble(2, AssessmentLevel - designWaterLevelSubstraction); } }