Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/MacroStabilityInwards/MacroStabilityInwardsKernelWrapper.cs =================================================================== diff -u -r7021 -r7023 --- DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/MacroStabilityInwards/MacroStabilityInwardsKernelWrapper.cs (.../MacroStabilityInwardsKernelWrapper.cs) (revision 7021) +++ DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/MacroStabilityInwards/MacroStabilityInwardsKernelWrapper.cs (.../MacroStabilityInwardsKernelWrapper.cs) (revision 7023) @@ -284,6 +284,7 @@ { AddDesignResult(damKernelInput, designScenario, designResults, macroStabilityOutputItem, macroStabilityOutput); } + // If no uplift therefore no UpliftVan calculation was made. So add a fictive (empty) design result. if (macroStabilityOutputItem == null && !macroStabilityOutput!.UpliftSituation.IsUplift) { @@ -545,6 +546,7 @@ { designResult.CalculationResult = CalculationResult.InvalidInputData; } + designResults.Add(designResult); } Index: DamEngine/trunk/src/Deltares.DamEngine.IntegrationTests/IntegrationTests/ShearStrengthModelsTests.cs =================================================================== diff -u -r7021 -r7023 --- DamEngine/trunk/src/Deltares.DamEngine.IntegrationTests/IntegrationTests/ShearStrengthModelsTests.cs (.../ShearStrengthModelsTests.cs) (revision 7021) +++ DamEngine/trunk/src/Deltares.DamEngine.IntegrationTests/IntegrationTests/ShearStrengthModelsTests.cs (.../ShearStrengthModelsTests.cs) (revision 7023) @@ -60,6 +60,7 @@ { Directory.Delete(calcDir, true); // delete previous results } + Directory.CreateDirectory(calcDir); const string fileName = @"TestFiles\ShearStrengthModelsTests\InputFileShearStrengthModelsComparison.xml"; @@ -115,6 +116,7 @@ { Directory.Delete(calcDir, true); // delete previous results } + Directory.CreateDirectory(calcDir); const string fileName = @"TestFiles\ShearStrengthModelsTests\InputFileInvalidSigmaTauCurveNotStartingAt0.xml"; @@ -138,11 +140,11 @@ { Assert.That(output.Results.CalculationMessages[0].MessageType, Is.EqualTo(MessageMessageType.Error)); Assert.That(output.Results.CalculationMessages[0].Message1, Is.EqualTo( - new StringBuilder() - .Append("Validation failed for location 'Comparison Mohr-Coulomb SigmaTau and SHANSEP', subsoil scenario 'SigmaTauMaterial', design scenario '1'.") - .AppendLine("The first sigma value must be 0 for sigma/tau table ") - .AppendLine("The first sigma value must be 0 for sigma/tau table ") - .ToString())); + new StringBuilder() + .Append("Validation failed for location 'Comparison Mohr-Coulomb SigmaTau and SHANSEP', subsoil scenario 'SigmaTauMaterial', design scenario '1'.") + .AppendLine("The first sigma value must be 0 for sigma/tau table ") + .AppendLine("The first sigma value must be 0 for sigma/tau table ") + .ToString())); }); } @@ -159,6 +161,7 @@ { Directory.Delete(calcDir, true); // delete previous results } + Directory.CreateDirectory(calcDir); const string fileName = @"TestFiles\ShearStrengthModelsTests\InputFileInvalidSuTableNotStartingAt0.xml"; @@ -185,11 +188,11 @@ { Assert.That(output.Results.CalculationMessages[0].MessageType, Is.EqualTo(MessageMessageType.Error)); Assert.That(output.Results.CalculationMessages[0].Message1, Is.EqualTo( - new StringBuilder() - .Append("Validation failed for location 'Comparison models (constant tau)', subsoil scenario 'SuTableCsttSu', design scenario '1'.") - .AppendLine("Su table first point must have an effective stress of 0") - .AppendLine("Su table first point must have an effective stress of 0") - .ToString())); + new StringBuilder() + .Append("Validation failed for location 'Comparison models (constant tau)', subsoil scenario 'SuTableCsttSu', design scenario '1'.") + .AppendLine("Su table first point must have an effective stress of 0") + .AppendLine("Su table first point must have an effective stress of 0") + .ToString())); }); } }