[PATCH] Include last year of epoch in calculation

Wald Commits scm-commit at wald.intevation.org
Thu Jun 12 19:43:08 CEST 2014


# HG changeset patch
# User "Tom Gottfried <tom at intevation.de>"
# Date 1402594982 -7200
# Node ID b4117b8adb7933eea15e8f64099a8c88109944a6
# Parent  d3a4b0d5bcd89645a4fa17299b59f04eba0a3fe4
Include last year of epoch in calculation.

diff -r d3a4b0d5bcd8 -r b4117b8adb79 artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadCalculation.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadCalculation.java	Thu Jun 12 19:16:30 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadCalculation.java	Thu Jun 12 19:43:02 2014 +0200
@@ -220,7 +220,7 @@
      */
     private SedimentLoadResult calculateEpoch(int i) {
         List<SedimentLoad> epochLoads = new ArrayList<SedimentLoad>();
-        for (int j = epoch[i][0]; j < epoch[i][1]; j++) {
+        for (int j = epoch[i][0]; j <= epoch[i][1]; j++) {
             epochLoads.add(SedimentLoadFactory.getLoadWithData(
                 this.river,
                 this.yearEpoch,


More information about the Dive4Elements-commits mailing list