Index: DamClients/DamLive/trunk/src/Deltares.Dam.Application.Live/DamEngineRunner.cs =================================================================== diff -u -r1666 -r1670 --- DamClients/DamLive/trunk/src/Deltares.Dam.Application.Live/DamEngineRunner.cs (.../DamEngineRunner.cs) (revision 1666) +++ DamClients/DamLive/trunk/src/Deltares.Dam.Application.Live/DamEngineRunner.cs (.../DamEngineRunner.cs) (revision 1670) @@ -1,9 +1,26 @@ -using System; -using System.Collections.Generic; +// Copyright (C) Stichting Deltares 2018. All rights reserved. +// +// This file is part of the application DAM - Live. +// +// DAM - UI is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// All names, logos, and references to "Deltares" are registered trademarks of +// Stichting Deltares and remain full property of Stichting Deltares at all times. +// All rights reserved. + +using System; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using System.Xml.Linq; using Deltares.Dam.Application.Live.Properties; using Deltares.Dam.Data; @@ -14,7 +31,6 @@ using Deltares.DamEngine.Io.XmlInput; using Deltares.DamEngine.Io.XmlOutput; using Deltares.Standard.Application; -using Deltares.Standard.Language; using Deltares.Standard.Logging; namespace Deltares.Dam.Application.Live @@ -177,9 +193,17 @@ DamProjectData.DamProjectCalculationSpecification.CurrentSpecification.FailureMechanismSystemType = FailureMechanismSystemType.StabilityInside; DamProjectData.DamProjectCalculationSpecification.CurrentSpecification.FailureMechanismeParamatersMStab.MStabParameters = CalculationParameters.MStabParameters; + foreach (var location in DamProjectData.Locations) + { + location.StabilityZoneType = CalculationParameters.MStabParameters.ZonesType; + } CallDamEngine(); OutputTimeSeriesCollection.Series.AddRange(DamProjectData.OutputTimeSerieCollection.Series); } + else + { + throw new NotImplementedException(string.Format("Only failuremechanism Macrostability is implemented")); + } } private void CallDamEngine()