Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/Common/PlLinesHelper.cs =================================================================== diff -u -r4053 -r4223 --- DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/Common/PlLinesHelper.cs (.../PlLinesHelper.cs) (revision 4053) +++ DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/Common/PlLinesHelper.cs (.../PlLinesHelper.cs) (revision 4223) @@ -116,10 +116,10 @@ IsUseLowWaterLevel = (waterLevelRiverLow != null), WaterLevelRiverHigh = waterLevel, SurfaceLine = location.SurfaceLine, - WaterLevelPolder = location.Scenarios[0].PolderLevel, - HeadInPlLine2 = location.Scenarios[0].HeadPl2, - HeadInPlLine3 = location.Scenarios[0].HeadPl3, - HeadInPlLine4 = location.Scenarios[0].HeadPl4, + WaterLevelPolder = location.CurrentScenario.PolderLevel, + HeadInPlLine2 = location.CurrentScenario.HeadPl2, + HeadInPlLine3 = location.CurrentScenario.HeadPl3, + HeadInPlLine4 = location.CurrentScenario.HeadPl4, ModelParametersForPlLines = location.ModelParametersForPlLines, SoilProfile = subSoilScenario.SoilProfile1D, SoilProfileType = subSoilScenario.SoilProfileType, @@ -166,10 +166,10 @@ { WaterLevelRiverHigh = waterLevel, SurfaceLine = location.SurfaceLine, - WaterLevelPolder = location.Scenarios[0].PolderLevel, - HeadInPlLine2 = location.Scenarios[0].HeadPl2, - HeadInPlLine3 = location.Scenarios[0].HeadPl3, - HeadInPlLine4 = location.Scenarios[0].HeadPl4, + WaterLevelPolder = location.CurrentScenario.PolderLevel, + HeadInPlLine2 = location.CurrentScenario.HeadPl2, + HeadInPlLine3 = location.CurrentScenario.HeadPl3, + HeadInPlLine4 = location.CurrentScenario.HeadPl4, ModelParametersForPlLines = location.ModelParametersForPlLines, SoilProfile = soilProfile, GaugePlLines = null, // TODO: Operational