Mercurial > dive4elements > river
changeset 7628:b24ce5b2141c
issue1630: Fix column calculation for bed quality values.
Respect the fact that two values exist per bed.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Mon, 02 Dec 2013 12:17:33 +0100 |
parents | 467d01a3a483 |
children | 1e509612445f |
files | artifacts/src/main/java/org/dive4elements/river/exports/minfo/BedQualityExporter.java |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/minfo/BedQualityExporter.java Mon Dec 02 12:16:50 2013 +0100 +++ b/artifacts/src/main/java/org/dive4elements/river/exports/minfo/BedQualityExporter.java Mon Dec 02 12:17:33 2013 +0100 @@ -124,10 +124,10 @@ continue; } for (int k = 0; k < beds.length; k++) { - // k + 1: shift km column. - // j * beds.length: shift periods. + // k * 2 + 1: shift km column. + // j * beds.length * 2: shift periods. // loads.length * results.length: shift bed load columns. - int ndx = (k + 1) + (j * beds.length) + (loads.length * results.length); + int ndx = (k * 2 + 1) + (j * beds.length * 2) + (loads.length * results.length); row[ndx] = beds[k].getDiameterCap(km); row[ndx + 1] = beds[k].getDiameterSub(km); }