Index: Ringtoets/Revetment/src/Ringtoets.Revetment.Service/WaveConditionsCalculationServiceBase.cs =================================================================== diff -u -r02d0e67121f748ae6d69ab9f68643d2f5e62f800 -r25d6b191a8ffd5dce434ddd07650aa1b9a76e699 --- Ringtoets/Revetment/src/Ringtoets.Revetment.Service/WaveConditionsCalculationServiceBase.cs (.../WaveConditionsCalculationServiceBase.cs) (revision 02d0e67121f748ae6d69ab9f68643d2f5e62f800) +++ Ringtoets/Revetment/src/Ringtoets.Revetment.Service/WaveConditionsCalculationServiceBase.cs (.../WaveConditionsCalculationServiceBase.cs) (revision 25d6b191a8ffd5dce434ddd07650aa1b9a76e699) @@ -111,7 +111,7 @@ /// The 'c' factor decided on failure mechanism level. /// The norm to use as the target. /// The id of the assessment section for which calculations are performed. - /// The filepath of the hydraulic boundary database. + /// The filepath of the hydraulic boundary database. /// An of . protected IEnumerable CalculateWaveConditions(string calculationName, WaveConditionsInput waveConditionsInput, @@ -120,7 +120,7 @@ RoundedDouble c, double norm, string ringId, - string hlcdFilePath) + string hrdFilePath) { var outputs = new List(); @@ -139,7 +139,7 @@ c, norm, waveConditionsInput, - Path.GetDirectoryName(hlcdFilePath), + hrdFilePath, ringId, calculationName); @@ -196,7 +196,7 @@ /// The 'c' factor decided on failure mechanism level. /// The norm to use as the target. /// The input that is different per calculation. - /// The directory of the hydraulic boundary database. + /// The path which points to the hydraulic boundary database file. /// The id of the assessment section for which calculations are performed. /// The name used for logging. /// A if the calculation was succesful; or null if it was canceled. @@ -206,12 +206,13 @@ RoundedDouble c, double norm, WaveConditionsInput input, - string hlcdDirectory, + string hydraulicBoundaryDatabaseFilePath, string ringId, string name) { + string hlcdDirectory = Path.GetDirectoryName(hydraulicBoundaryDatabaseFilePath); calculator = HydraRingCalculatorFactory.Instance.CreateWaveConditionsCosineCalculator(hlcdDirectory, ringId); - WaveConditionsCosineCalculationInput calculationInput = CreateInput(waterLevel, a, b, c, norm, input); + WaveConditionsCosineCalculationInput calculationInput = CreateInput(waterLevel, a, b, c, norm, input, hydraulicBoundaryDatabaseFilePath); var exceptionThrown = false; try @@ -277,18 +278,24 @@ RoundedDouble b, RoundedDouble c, double norm, - WaveConditionsInput input) + WaveConditionsInput input, + string hydraulicBoundaryDatabaseFilePath) { - return new WaveConditionsCosineCalculationInput(1, - input.Orientation, - input.HydraulicBoundaryLocation.Id, - norm, - HydraRingInputParser.ParseForeshore(input), - HydraRingInputParser.ParseBreakWater(input), - waterLevel, - a, - b, - c); + var waveConditionsCosineCalculationInput = new WaveConditionsCosineCalculationInput( + 1, + input.Orientation, + input.HydraulicBoundaryLocation.Id, + norm, + HydraRingInputParser.ParseForeshore(input), + HydraRingInputParser.ParseBreakWater(input), + waterLevel, + a, + b, + c); + + HydraRingSettingsDatabaseHelper.AssignSettingsFromDatabase(waveConditionsCosineCalculationInput, hydraulicBoundaryDatabaseFilePath); + + return waveConditionsCosineCalculationInput; } private static string ValidateWaveConditionsInput(WaveConditionsInput input, string designWaterLevelName)