changeset 7931:b4117b8adb79

Include last year of epoch in calculation.
author "Tom Gottfried <tom@intevation.de>"
date Thu, 12 Jun 2014 19:43:02 +0200
parents d3a4b0d5bcd8
children b1393f96c153
files artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadCalculation.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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,

http://dive4elements.wald.intevation.org