[PATCH 1 of 2] Tkh: d50 converted to mm for output

Wald Commits scm-commit at wald.intevation.org
Tue Oct 2 18:08:18 CEST 2018


# HG changeset patch
# User mschaefer
# Date 1538496442 -7200
# Node ID 144a184a414d861ec36ad359c0ee95254d1ff011
# Parent  429b623736333a38787f7056105e08e74651c202
Tkh: d50 converted to mm for output

diff -r 429b62373633 -r 144a184a414d artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/tkhcalculation/TkhCalculator.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/tkhcalculation/TkhCalculator.java	Tue Oct 02 16:41:35 2018 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/tkhcalculation/TkhCalculator.java	Tue Oct 02 18:07:22 2018 +0200
@@ -162,7 +162,7 @@
             return TkhCalculateState.NO_SOILKIND;
 
         final double d50 = getBedMeasurement(km);
-        row.putValue(SInfoResultType.d50, d50);
+        row.putValue(SInfoResultType.d50, d50 * 1000);
         if (Double.isNaN(d50))
             return TkhCalculateState.NO_D50;
 


More information about the Dive4Elements-commits mailing list