Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.IO/Configurations/MacroStabilityInwardsCalculationConfigurationReader.cs =================================================================== diff -u -r8d246ac6328e6e649ff6e78dfe3fac210d789ba0 -r7bdfcad00be09dbecb36fc412f7ba420ce0d6e52 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.IO/Configurations/MacroStabilityInwardsCalculationConfigurationReader.cs (.../MacroStabilityInwardsCalculationConfigurationReader.cs) (revision 8d246ac6328e6e649ff6e78dfe3fac210d789ba0) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.IO/Configurations/MacroStabilityInwardsCalculationConfigurationReader.cs (.../MacroStabilityInwardsCalculationConfigurationReader.cs) (revision 7bdfcad00be09dbecb36fc412f7ba420ce0d6e52) @@ -82,10 +82,8 @@ var configuration = new MacroStabilityInwardsCalculationConfiguration( calculationElement.Attribute(ConfigurationSchemaIdentifiers.NameAttribute).Value) { - AssessmentLevel = calculationElement.GetDoubleValueFromDescendantElement( - MacroStabilityInwardsCalculationConfigurationSchemaIdentifiers.AssessmentLevelElement), - HydraulicBoundaryLocationName = calculationElement.GetStringValueFromDescendantElement( - ConfigurationSchemaIdentifiers.HydraulicBoundaryLocationElement), + AssessmentLevel = GetAssessmentLevel(calculationElement), + HydraulicBoundaryLocationName = calculationElement.GetHydraulicBoundaryLocationName(), SurfaceLineName = calculationElement.GetStringValueFromDescendantElement( MacroStabilityInwardsCalculationConfigurationSchemaIdentifiers.SurfaceLineElement), StochasticSoilModelName = calculationElement.GetStringValueFromDescendantElement( @@ -131,6 +129,12 @@ return configuration; } + private static double? GetAssessmentLevel(XElement calculationElement) + { + return calculationElement.GetDoubleValueFromDescendantElement(MacroStabilityInwardsCalculationConfigurationSchemaIdentifiers.WaterLevelElement) + ?? calculationElement.GetDoubleValueFromDescendantElement(MacroStabilityInwardsCalculationConfigurationSchemaIdentifiers.AssessmentLevelElement); + } + /// /// Sets the minimum level phreatic line related properties to . ///