Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators/DikesDesign/DesignCalculator.cs =================================================================== diff -u -r4053 -r4221 --- DamEngine/trunk/src/Deltares.DamEngine.Calculators/DikesDesign/DesignCalculator.cs (.../DesignCalculator.cs) (revision 4053) +++ DamEngine/trunk/src/Deltares.DamEngine.Calculators/DikesDesign/DesignCalculator.cs (.../DesignCalculator.cs) (revision 4221) @@ -270,7 +270,6 @@ try { orgLocationSurfaceLine = AdaptSurfaceLineWhenNeededForDesign(location, designScenario, analysisType, damKernelInput); - PrepareResult prepareResult = kernelWrapper.Prepare(damKernelInput, 0, out kernelDataInput, out kernelDataOutput); @@ -380,6 +379,7 @@ private void SynchronizeScenarioDataWithLocationData(DesignScenario designScenario, Location location) { // Synchronize PlLine parameters + location.CurrentScenario = designScenario; location.PlLineOffsetBelowDikeToeAtPolder = designScenario.PlLineOffsetBelowDikeToeAtPolder; location.PlLineOffsetBelowDikeTopAtPolder = designScenario.PlLineOffsetBelowDikeTopAtPolder; location.PlLineOffsetBelowDikeTopAtRiver = designScenario.PlLineOffsetBelowDikeTopAtRiver; Index: DamEngine/trunk/src/Deltares.DamEngine.Data/General/Location.cs =================================================================== diff -u -r4052 -r4221 --- DamEngine/trunk/src/Deltares.DamEngine.Data/General/Location.cs (.../Location.cs) (revision 4052) +++ DamEngine/trunk/src/Deltares.DamEngine.Data/General/Location.cs (.../Location.cs) (revision 4221) @@ -439,6 +439,14 @@ public List Scenarios { get; } = new List(); /// + /// Gets or sets the current scenario. + /// + /// + /// The current scenario. + /// + public DesignScenario CurrentScenario { get; set; } + + /// /// Gets or sets the type of the dam project. /// ///