Index: Ringtoets/Piping/src/Ringtoets.Piping.IO/Importers/PipingConfigurationImporter.cs =================================================================== diff -u -r21d08a0982d604446e0ca8272f192bc33d7438f0 -r71b9d1d4d523116119303de98fdd896ed67af9e7 --- Ringtoets/Piping/src/Ringtoets.Piping.IO/Importers/PipingConfigurationImporter.cs (.../PipingConfigurationImporter.cs) (revision 21d08a0982d604446e0ca8272f192bc33d7438f0) +++ Ringtoets/Piping/src/Ringtoets.Piping.IO/Importers/PipingConfigurationImporter.cs (.../PipingConfigurationImporter.cs) (revision 71b9d1d4d523116119303de98fdd896ed67af9e7) @@ -190,6 +190,21 @@ if (soilModel != null) { pipingCalculation.InputParameters.StochasticSoilModel = soilModel; + + if (readCalculation.StochasticSoilProfile != null) + { + StochasticSoilProfile soilProfile = soilModel.StochasticSoilProfiles.FirstOrDefault(ssp => ssp.SoilProfile.Name == readCalculation.StochasticSoilProfile); + + if (soilProfile != null) + { + pipingCalculation.InputParameters.StochasticSoilProfile = soilProfile; + } + else + { + log.Warn("Ondergrondprofiel bestaat niet. Berekening overgeslagen."); + return; + } + } } else { @@ -205,9 +220,9 @@ // - Surface line X // - Entry/Exit point X // - Stochastic soil model X - // - Stochastic soil profile + // - Stochastic soil profile X // Validate the stochastic soil model crosses the surface line when set - // Validate the stochastic soil profile is part of the soil model + // Validate the stochastic soil profile is part of the soil model X } private static void ValidateCalculationGroup(ReadPipingCalculationGroup readCalculationGroup)