changeset 7023:a18a43764793 3.0.15

issue1235: Do not add 'other' values twice to suspended sed. values, fix range.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 16 Sep 2013 16:18:01 +0200
parents 0f99aa385d99
children c705f590684b
files artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadCalculation.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadCalculation.java	Mon Sep 16 15:11:02 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadCalculation.java	Mon Sep 16 16:18:01 2013 +0200
@@ -391,7 +391,7 @@
                     else {
                         // Geschiebe is longer.
                         // Adjust and remember other values.
-                        lastOtherRange = (Range) fraction.getSuspSedimentRange().clone();
+                        lastOtherRange = (Range) fraction.getCoarseRange().clone();
                         lastOtherRange.setStart(fraction.getSuspSedimentRange().getEnd());
                         lastOtherValue = (total - fraction.getSuspSediment());
                         lastSuspRange = null;
@@ -429,7 +429,7 @@
                         lastOtherRange = null;
                         lastSuspRange = null;
                     }
-                    fairLoad.setTotal(km, total + fraction.getSuspSediment(), totalRange);
+                    fairLoad.setTotal(km, total, totalRange);
                 }
                 else {
                     lastSuspRange = suspSedimentRange;

http://dive4elements.wald.intevation.org