changeset 9092:50cfc90ac5b0

Trace added
author mschaefer
date Fri, 25 May 2018 14:27:20 +0200
parents e07a2b4606c1
children 280c5b44f219
files artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/tkhcalculation/FlowVelocityModelKmValueFinder.java
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/tkhcalculation/FlowVelocityModelKmValueFinder.java	Fri May 25 11:49:31 2018 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/tkhcalculation/FlowVelocityModelKmValueFinder.java	Fri May 25 14:27:20 2018 +0200
@@ -39,6 +39,7 @@
  * @author Matthias Schäfer
  */
 final class FlowVelocityModelKmValueFinder {
+
     /***** FIELDS *****/
 
     /**
@@ -284,6 +285,9 @@
                 this.values.get(this.values.size() - 1).addValues((double) row[1], ((double) row[2]) / 10, (double) row[3]);
             else
                 this.values.get(this.values.size() - 1).addValues((double) row[1], (double) row[2], (double) row[3]);
+            final int j = this.values.size() - 1;
+            log.trace(String.format("addKms %d km %.3f q %.0f v %.2f tau %.2f", this.values.size() - 1, this.values.get(j).getKm(), (double) row[1],
+                    (double) row[2], (double) row[3]));
         }
         return rows.size();
     }

http://dive4elements.wald.intevation.org