Index: Riskeer/HeightStructures/src/Riskeer.HeightStructures.Data/GeneralHeightStructuresInput.cs
===================================================================
diff -u -r35349144a21f4e3627505605840f286b21b2d004 -r90dbca476604dcc92e6208a26729036dc499bca6
--- Riskeer/HeightStructures/src/Riskeer.HeightStructures.Data/GeneralHeightStructuresInput.cs (.../GeneralHeightStructuresInput.cs) (revision 35349144a21f4e3627505605840f286b21b2d004)
+++ Riskeer/HeightStructures/src/Riskeer.HeightStructures.Data/GeneralHeightStructuresInput.cs (.../GeneralHeightStructuresInput.cs) (revision 90dbca476604dcc92e6208a26729036dc499bca6)
@@ -45,6 +45,8 @@
{
n = new RoundedDouble(numberOfDecimalPlacesN, 2.0);
+ ApplyLengthEffectInSection = false;
+
GravitationalAcceleration = new RoundedDouble(2, 9.81);
ModelFactorOvertoppingFlow = new LogNormalDistribution(3)
@@ -85,6 +87,11 @@
n = newValue;
}
}
+
+ ///
+ /// Gets whether the length effect should be applied in the section.
+ ///
+ public bool ApplyLengthEffectInSection { get; }
///
/// Gets the gravitational acceleration.
Index: Riskeer/HeightStructures/src/Riskeer.HeightStructures.Forms/PropertyClasses/HeightStructuresFailurePathProperties.cs
===================================================================
diff -u -r26f427a7724ebe6e50c0d83fd87156df30f17e9c -r90dbca476604dcc92e6208a26729036dc499bca6
--- Riskeer/HeightStructures/src/Riskeer.HeightStructures.Forms/PropertyClasses/HeightStructuresFailurePathProperties.cs (.../HeightStructuresFailurePathProperties.cs) (revision 26f427a7724ebe6e50c0d83fd87156df30f17e9c)
+++ Riskeer/HeightStructures/src/Riskeer.HeightStructures.Forms/PropertyClasses/HeightStructuresFailurePathProperties.cs (.../HeightStructuresFailurePathProperties.cs) (revision 90dbca476604dcc92e6208a26729036dc499bca6)
@@ -94,7 +94,7 @@
{
get
{
- return false;
+ return data.GeneralInput.ApplyLengthEffectInSection;
}
}
Index: Riskeer/HeightStructures/test/Riskeer.HeightStructures.Data.Test/GeneralHeightStructuresInputTest.cs
===================================================================
diff -u -r35349144a21f4e3627505605840f286b21b2d004 -r90dbca476604dcc92e6208a26729036dc499bca6
--- Riskeer/HeightStructures/test/Riskeer.HeightStructures.Data.Test/GeneralHeightStructuresInputTest.cs (.../GeneralHeightStructuresInputTest.cs) (revision 35349144a21f4e3627505605840f286b21b2d004)
+++ Riskeer/HeightStructures/test/Riskeer.HeightStructures.Data.Test/GeneralHeightStructuresInputTest.cs (.../GeneralHeightStructuresInputTest.cs) (revision 90dbca476604dcc92e6208a26729036dc499bca6)
@@ -53,6 +53,8 @@
// Assert
Assert.AreEqual(2, generalHeightStructuresInput.N.NumberOfDecimalPlaces);
Assert.AreEqual(2.0, generalHeightStructuresInput.N, generalHeightStructuresInput.N.GetAccuracy());
+
+ Assert.IsFalse(generalHeightStructuresInput.ApplyLengthEffectInSection);
Assert.AreEqual(2, generalHeightStructuresInput.GravitationalAcceleration.NumberOfDecimalPlaces);
Assert.AreEqual(9.81, generalHeightStructuresInput.GravitationalAcceleration, generalHeightStructuresInput.GravitationalAcceleration.GetAccuracy());