Index: Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Service/HeightStructuresCalculationService.cs
===================================================================
diff -u -r16cb360eae0014270ebb6700054afdbbd565ae65 -rfc4f8f86955f675f94208db783c8d0624d2b2250
--- Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Service/HeightStructuresCalculationService.cs (.../HeightStructuresCalculationService.cs) (revision 16cb360eae0014270ebb6700054afdbbd565ae65)
+++ Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Service/HeightStructuresCalculationService.cs (.../HeightStructuresCalculationService.cs) (revision fc4f8f86955f675f94208db783c8d0624d2b2250)
@@ -20,6 +20,7 @@
// All rights reserved.
using System.Collections.Generic;
+using System.IO;
using System.Linq;
using Core.Common.Base.Data;
using log4net;
@@ -92,18 +93,19 @@
/// The to create input with.
/// The to create the input with for the calculation.
/// The amount of contribution for this failure mechanism in the assessment section.
- /// The directory of the HLCD file that should be used for performing the calculation.
+ /// The filepath of the HLCD file that should be used for performing the calculation.
internal void Calculate(StructuresCalculation calculation,
IAssessmentSection assessmentSection,
FailureMechanismSection failureMechanismSection,
GeneralHeightStructuresInput generalInput,
double failureMechanismContribution,
- string hlcdDirectory)
+ string hlcdFilePath)
{
var calculationName = calculation.Name;
StructuresOvertoppingCalculationInput input = CreateInput(calculation, failureMechanismSection, generalInput);
+ string hlcdDirectory = Path.GetDirectoryName(hlcdFilePath);
calculator = HydraRingCalculatorFactory.Instance.CreateStructuresOvertoppingCalculator(hlcdDirectory, assessmentSection.Id);
CalculationServiceHelper.LogCalculationBeginTime(calculationName);