[PATCH 2 of 3] Do not handle the impossible

Wald Commits scm-commit at wald.intevation.org
Mon Sep 1 10:46:15 CEST 2014


# HG changeset patch
# User "Tom Gottfried <tom at intevation.de>"
# Date 1409558993 -7200
# Node ID 363b82ecf29fda1aca0f4d2f6f8b58c0c45ab70f
# Parent  8567017394430210f7782f436d823f730ea87cd8
Do not handle the impossible.

diff -r 856701739443 -r 363b82ecf29f artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadDataCalculation.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadDataCalculation.java	Mon Sep 01 09:43:55 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadDataCalculation.java	Mon Sep 01 10:09:53 2014 +0200
@@ -281,8 +281,6 @@
                 sldr.addFraction(sldrf);
             }
 
-            // Do not give single year twice
-            if (min == max) break;
         }
         // TODO: Generate messages for missing fractions.
         return new CalculationResult(sldr, this);


More information about the Dive4Elements-commits mailing list