Index: DamEngine/branches/DamEngine 19.3/src/Deltares.DamEngine.Calculators/DikesDesign/SurfaceLineAdapter.cs
===================================================================
diff -u -r3736 -r3737
--- DamEngine/branches/DamEngine 19.3/src/Deltares.DamEngine.Calculators/DikesDesign/SurfaceLineAdapter.cs (.../DamEngine 19.3 wrong/src/Deltares.DamEngine.Calculators/DikesDesign/SurfaceLineAdapter.cs) (revision 3736)
+++ DamEngine/branches/DamEngine 19.3/src/Deltares.DamEngine.Calculators/DikesDesign/SurfaceLineAdapter.cs (.../DamEngine 19.3/src/Deltares.DamEngine.Calculators/DikesDesign/SurfaceLineAdapter.cs) (revision 3737)
@@ -67,22 +67,19 @@
protected double trafficLoadWidth;
protected bool hasTrafficLoad;
protected bool isTrafficLoadOnCrest = false;
- protected double polderLevel;
const double offset = 100.0;
///
/// Constructor
///
///
///
- ///
- protected SurfaceLineAdapter(SurfaceLine2 surfaceLine, Location location, double scenarioPolderLevel)
+ protected SurfaceLineAdapter(SurfaceLine2 surfaceLine, Location location)
{
ThrowWhenSurfaceLineIsNull(surfaceLine);
ThrowWhenSurfaceLineDoesNotSatisfyToSpecification(surfaceLine);
this.surfaceLine = surfaceLine.FullDeepClone();
- Location = location;
- polderLevel = scenarioPolderLevel;
+ this.Location = location;
RetainTrafficLoad();
}
@@ -415,7 +412,7 @@
res.XAtDike = xDitchDike;
res.ZAtDike = surfaceLine.Geometry.GetZatX(res.XAtDike);
// Depth of the ditch is defined towards PolderLevel
- res.ZBottom = polderLevel - Location.NewDepthDitch;
+ res.ZBottom = Location.PolderLevel - Location.NewDepthDitch;
res.XBottomAtDike = xDitchDike + (res.ZAtDike - res.ZBottom)*Location.NewSlopeAngleDitch;
res.XBottomAtPolder = res.XBottomAtDike + Location.NewWidthDitchBottom;
var line = new Line