Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/Calculation4.java @ 670:8124ca1ecaaa
Berechnung 4: Added more debug output
flys-artifacts/trunk@2089 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 08 Jun 2011 18:50:40 +0000 |
parents | baea7981477a |
children | e0e39a0eb3fe |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/Calculation4.java Wed Jun 08 13:57:43 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/Calculation4.java Wed Jun 08 18:50:40 2011 +0000 @@ -93,6 +93,9 @@ logger.debug( "calculate from " + from + " to " + to + " step " + step); logger.debug("# segments: " + segments.size()); + for (Segment segment: segments) { + logger.debug(" " + segment); + } } if (segments.isEmpty()) { @@ -109,9 +112,6 @@ WQKms [] results = new WQKms[numResults]; - if (debug) { - logger.debug("after last segment -> gleichwertig"); - } for (int i = 0; i < results.length; ++i) { results[i] = new WQKms(); } @@ -225,6 +225,14 @@ : new Linear( qA, qF, anchor.values[i], free.values[i]); + + if (debug) { + logger.debug( + anchor.referencePoint + ": " + + qA + " -> " + functions[i].value(qA) + + " / " + free.referencePoint + ": " + + qF + " -> " + functions[i].value(qF)); + } } } // build transforms } // "ungleichwertiges" interval