diff artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/tkhcalculation/DischargeValuesFinder.java @ 9040:5294114b1df4

Fixed/changed some FIXMEs/TODOs
author gernotbelger
date Wed, 02 May 2018 12:19:31 +0200
parents 16df9f7a9815
children
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/tkhcalculation/DischargeValuesFinder.java	Wed May 02 12:16:47 2018 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/tkhcalculation/DischargeValuesFinder.java	Wed May 02 12:19:31 2018 +0200
@@ -77,8 +77,6 @@
     public double getDischarge(final double station) {
 
         try {
-            // FIXME: check: ich dachte wir interpolieren den abfluss nicht linear?
-
             // IMPORTANT: we first try to retrieve the exact value if it is present, to avoid rounding changes due to interpolation.
             // This is important because in the WaterlevelExporter code, these values are double-compared (with '==' ...) in order
             // to find the corresponding main-value.
@@ -90,7 +88,8 @@
 
             return this.qInterpolator.value(station);
         }
-        catch (final FunctionEvaluationException e) {
+        catch (@SuppressWarnings("unused") final FunctionEvaluationException e) {
+            // ignore exception because this can/will happen regularly
             return Double.NaN;
         }
     }

http://dive4elements.wald.intevation.org