Index: Ringtoets/Common/src/Ringtoets.Common.Service/DesignWaterLevelCalculationService.cs
===================================================================
diff -u -r84db6d79354723db5626dbb9ff7361d2a70d66d1 -rae74507edbfc4fe632ba5f964a147aff630dfe6e
--- Ringtoets/Common/src/Ringtoets.Common.Service/DesignWaterLevelCalculationService.cs (.../DesignWaterLevelCalculationService.cs) (revision 84db6d79354723db5626dbb9ff7361d2a70d66d1)
+++ Ringtoets/Common/src/Ringtoets.Common.Service/DesignWaterLevelCalculationService.cs (.../DesignWaterLevelCalculationService.cs) (revision ae74507edbfc4fe632ba5f964a147aff630dfe6e)
@@ -118,7 +118,7 @@
if (string.IsNullOrEmpty(calculator.LastErrorFileContent))
{
hydraulicBoundaryLocation.DesignWaterLevelOutput = CreateHydraulicBoundaryLocationOutput(
- messageProvider, hydraulicBoundaryLocation.Name, calculationInput.Beta, norm);
+ messageProvider, hydraulicBoundaryLocation.Name, calculationInput.Beta, norm, calculator.Converged);
}
}
catch (HydraRingCalculationException)
@@ -172,17 +172,18 @@
/// A .
/// Thrown when
/// or the calculated propability falls outside the [0.0, 1.0] range and is not .
- private HydraulicBoundaryLocationOutput CreateHydraulicBoundaryLocationOutput(ICalculationMessageProvider messageProvider,
- string hydraulicBoundaryLocationName,
- double targetReliability,
- double targetProbability)
+ private HydraulicBoundaryLocationOutput CreateHydraulicBoundaryLocationOutput(
+ ICalculationMessageProvider messageProvider,
+ string hydraulicBoundaryLocationName,
+ double targetReliability,
+ double targetProbability,
+ bool? calculatorConverged)
{
var designWaterLevel = calculator.DesignWaterLevel;
var reliability = calculator.ReliabilityIndex;
var probability = StatisticsConverter.ReliabilityToProbability(reliability);
- CalculationConvergence converged = RingtoetsCommonDataCalculationService.GetCalculationConvergence(
- calculator.ReliabilityIndex, targetProbability);
+ CalculationConvergence converged = RingtoetsCommonDataCalculationService.GetCalculationConvergence(calculatorConverged);
if (converged != CalculationConvergence.CalculatedConverged)
{