changeset 4839:61ebb6fb2ac4

Fixed segments creation in calculation 4.
author Sascha L. Teichmann <teichmann@intevation.de>
date Wed, 23 Jan 2013 12:52:49 +0100
parents 01e82da3f919
children 8cd2f20b1d8c
files flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/Calculation4Access.java flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/Calculation4.java
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/Calculation4Access.java	Wed Jan 23 11:14:22 2013 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/Calculation4Access.java	Wed Jan 23 12:52:49 2013 +0100
@@ -39,6 +39,9 @@
                 log.warn("no wq_values given");
                 segments = Collections.<Segment>emptyList();
             }
+            else {
+                segments = Segment.parseSegments(input);
+            }
         }
         return segments;
     }
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/Calculation4.java	Wed Jan 23 11:14:22 2013 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/Calculation4.java	Wed Jan 23 12:52:49 2013 +0100
@@ -40,6 +40,7 @@
     }
 
     public Calculation4(Calculation4Access access) {
+        logger.debug("Calculation4Access.cnst");
         String        river    = access.getRiver();
         List<Segment> segments = access.getSegments();
         double []     range    = access.getFromToStep();

http://dive4elements.wald.intevation.org