Index: Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Service/DuneErosionBoundaryCalculationService.cs
===================================================================
diff -u -rb0e228408016f88b94ac63d6896e5bc7668a75c1 -r9b2125ce148137d1b6103557707d81f4771be6bf
--- Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Service/DuneErosionBoundaryCalculationService.cs (.../DuneErosionBoundaryCalculationService.cs) (revision b0e228408016f88b94ac63d6896e5bc7668a75c1)
+++ Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Service/DuneErosionBoundaryCalculationService.cs (.../DuneErosionBoundaryCalculationService.cs) (revision 9b2125ce148137d1b6103557707d81f4771be6bf)
@@ -96,14 +96,14 @@
///
/// The that holds information required
/// to perform the calculation.
+ /// The to perform.
/// The norm to use during the calculation.
/// The path which points to the hydraulic
/// boundary database file.
/// The preprocessor directory.
/// Preprocessing is disabled when equals .
- /// Thrown when ,
- /// or
- /// is null.
+ /// Thrown when or
+ /// is null.
/// Thrown when:
///
/// - The contains invalid characters.
@@ -121,6 +121,7 @@
/// Thrown when an error occurs while performing
/// the calculation.
public void Calculate(DuneLocation duneLocation,
+ DuneLocationCalculation duneLocationCalculation,
double norm,
string hydraulicBoundaryDatabaseFilePath,
string preprocessorDirectory)
@@ -130,6 +131,11 @@
throw new ArgumentNullException(nameof(duneLocation));
}
+ if (duneLocationCalculation == null)
+ {
+ throw new ArgumentNullException(nameof(duneLocationCalculation));
+ }
+
string hlcdDirectory = Path.GetDirectoryName(hydraulicBoundaryDatabaseFilePath);
string duneLocationName = duneLocation.Name;
@@ -149,7 +155,7 @@
if (string.IsNullOrEmpty(calculator.LastErrorFileContent))
{
- duneLocation.Calculation.Output = CreateDuneLocationOutput(duneLocationName, calculationInput.Beta, norm);
+ duneLocationCalculation.Output = CreateDuneLocationOutput(duneLocationName, calculationInput.Beta, norm);
}
}
catch (HydraRingCalculationException)