Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadCalculation.java @ 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 | aeeabb580b12 |
children | 963ede7b32bb |
comparison
equal
deleted
inserted
replaced
7930:d3a4b0d5bcd8 | 7931:b4117b8adb79 |
---|---|
218 * Calculate result for the ith given epoch. | 218 * Calculate result for the ith given epoch. |
219 * @param i index of epoch (if multiple given). | 219 * @param i index of epoch (if multiple given). |
220 */ | 220 */ |
221 private SedimentLoadResult calculateEpoch(int i) { | 221 private SedimentLoadResult calculateEpoch(int i) { |
222 List<SedimentLoad> epochLoads = new ArrayList<SedimentLoad>(); | 222 List<SedimentLoad> epochLoads = new ArrayList<SedimentLoad>(); |
223 for (int j = epoch[i][0]; j < epoch[i][1]; j++) { | 223 for (int j = epoch[i][0]; j <= epoch[i][1]; j++) { |
224 epochLoads.add(SedimentLoadFactory.getLoadWithData( | 224 epochLoads.add(SedimentLoadFactory.getLoadWithData( |
225 this.river, | 225 this.river, |
226 this.yearEpoch, | 226 this.yearEpoch, |
227 this.kmLow, | 227 this.kmLow, |
228 this.kmUp, | 228 this.kmUp, |