Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/MacroStabilityInwards/MacroStabilityInwardsKernelWrapper.cs =================================================================== diff -u -r6506 -r6539 --- DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/MacroStabilityInwards/MacroStabilityInwardsKernelWrapper.cs (.../MacroStabilityInwardsKernelWrapper.cs) (revision 6506) +++ DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/MacroStabilityInwards/MacroStabilityInwardsKernelWrapper.cs (.../MacroStabilityInwardsKernelWrapper.cs) (revision 6539) @@ -288,8 +288,17 @@ } else if (designResults[0].CalculationResult != CalculationResult.Succeeded) { - // There is no reason why Bishop should not have succeeded. Therefore, no end results can be given - index = 0; + // For a design calculation, when design fails to reach required safety factor, both runs are set to fail + // but even then the worst result should be determined. + if (designResults[0].CalculationResult == CalculationResult.RunFailed && + designResults[1].CalculationResult == CalculationResult.RunFailed) + { + index = designResults[0].StabilityDesignResults.SafetyFactor <= designResults[1].StabilityDesignResults.SafetyFactor ? 0 : 1; + } + else + { + index = 0; + } } else if (designResults[1].CalculationResult == CalculationResult.NoRun) {