Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/MacroStabilityCommon/MacroStabilityIo/FillMacroStabilityWrapperInputFromEngine.cs =================================================================== diff -u -r3362 -r3515 --- DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/MacroStabilityCommon/MacroStabilityIo/FillMacroStabilityWrapperInputFromEngine.cs (.../FillMacroStabilityWrapperInputFromEngine.cs) (revision 3362) +++ DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/MacroStabilityCommon/MacroStabilityIo/FillMacroStabilityWrapperInputFromEngine.cs (.../FillMacroStabilityWrapperInputFromEngine.cs) (revision 3515) @@ -68,21 +68,21 @@ { soilsDictionary.Clear(); var macroStabilityInput = new KernelMacroStabilityInput(); - macroStabilityInput.StabilityModel = new StabilityInput(); // ToDo check whether this is needed. - macroStabilityInput.PreprocessingInput = new PreprocessingInput(); // ToDo check whether this is needed. + macroStabilityInput.StabilityModel = new StabilityInput(); + macroStabilityInput.PreprocessingInput = new PreprocessingInput(); macroStabilityInput.StabilityModel.UpliftVanCalculationGrid = new KernelUpliftVanCalculationGrid(); failureMechanismParametersMStab.MStabParameters.Model = MStabModelType.UpliftVan; TransferStabilityModelProperties(failureMechanismParametersMStab, macroStabilityInput.StabilityModel); TransferSoils(damKernelInput.Location.SoilList, macroStabilityInput.StabilityModel.Soils); - macroStabilityInput.StabilityModel.ConstructionStages.Add(new ConstructionStage()); // ToDo check whether this is needed. + macroStabilityInput.StabilityModel.ConstructionStages.Add(new ConstructionStage()); var lastStage = macroStabilityInput.StabilityModel.ConstructionStages.Last(); - lastStage.SoilProfile = new MacroStability.CSharpWrapper.Input.SoilProfile(); // ToDo check whether this is needed. - lastStage.PreconsolidationStresses = new List(); // ToDo check whether this is needed. + lastStage.SoilProfile = new MacroStability.CSharpWrapper.Input.SoilProfile(); + lastStage.PreconsolidationStresses = new List(); TransferSoilProfile(damKernelInput.SubSoilScenario.SoilProfile2D, lastStage.SoilProfile, lastStage.PreconsolidationStresses); - macroStabilityInput.PreprocessingInput.PreConstructionStages.Add(new PreConstructionStage()); // ToDo check whether this is needed. + macroStabilityInput.PreprocessingInput.PreConstructionStages.Add(new PreConstructionStage()); var preConstructionLastStage = macroStabilityInput.PreprocessingInput.PreConstructionStages.Last(); preConstructionLastStage.SurfaceLine = new SurfaceLine(); TransferSurfaceLine(damKernelInput.Location.SurfaceLine, preConstructionLastStage.SurfaceLine); @@ -101,7 +101,7 @@ preprocessingSearchAreaConditions); TransferUpliftVanCalculationGrid(UpliftVanCalculationGrid, macroStabilityInput.StabilityModel.UpliftVanCalculationGrid, preprocessingSearchAreaConditions.AutoTangentLines); - lastStage.UniformLoads = new List(); // ToDo check whether this is needed. + lastStage.UniformLoads = new List(); TransferUniformLoads(TrafficLoad, lastStage.UniformLoads); return macroStabilityInput; } Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/MacroStabilityInwards/MacroStabilityInwardsKernelWrapper.cs =================================================================== diff -u -r3510 -r3515 --- DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/MacroStabilityInwards/MacroStabilityInwardsKernelWrapper.cs (.../MacroStabilityInwardsKernelWrapper.cs) (revision 3510) +++ DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/MacroStabilityInwards/MacroStabilityInwardsKernelWrapper.cs (.../MacroStabilityInwardsKernelWrapper.cs) (revision 3515) @@ -322,12 +322,17 @@ { var calculationPath = Path.GetDirectoryName(fileNameForCalculation); var projectName = Path.GetFileName(fileNameForCalculation); + var fileNameForCalculationAsStix = Path.ChangeExtension(fileNameForCalculation, ".stix"); StixWriter.FillInfo("DAM Engine", calculationPath, projectName, true); StixWriter.FillCalculatedDualCircle(macroStabilityOutputItem.ActiveCenterPoint.X, macroStabilityOutputItem.ActiveCenterPoint.Z, macroStabilityOutputItem.ActiveCenterPointRadius, macroStabilityOutputItem.PassiveCenterPoint.X, macroStabilityOutputItem.PassiveCenterPoint.Z); - StixWriter.WriteStixFile(Path.ChangeExtension(fileNameForCalculation, ".stix"), input.Input); + if (File.Exists(fileNameForCalculationAsStix)) + { + File.Delete(fileNameForCalculationAsStix); + } + StixWriter.WriteStixFile(fileNameForCalculationAsStix, input.Input); } } }