changeset 747:65dcb5891206

ATWriter: Fixed array size to construct spline with stricly increasing values. flys-artifacts/trunk@2251 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 27 Jun 2011 13:58:03 +0000
parents 6af7f385555f
children 30be4b71c36c
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/exports/ATWriter.java
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Mon Jun 27 10:24:54 2011 +0000
+++ b/flys-artifacts/ChangeLog	Mon Jun 27 13:58:03 2011 +0000
@@ -1,3 +1,9 @@
+2011-06-27  Sascha L. Teichmann <sascha.teichmann@intevation.de>
+
+	* src/main/java/de/intevation/flys/exports/ATWriter.java: Array
+	  for constructing the spline was too large leading to non-increasing
+	  values.
+
 2011-06-27  Sascha L. Teichmann <sascha.teichmann@intevation.de>
 
 	Fix for flys/issue150
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/ATWriter.java	Mon Jun 27 10:24:54 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/ATWriter.java	Mon Jun 27 13:58:03 2011 +0000
@@ -49,7 +49,7 @@
             return;
         }
 
-        double [] ws = new double[maxIndex+1];
+        double [] ws = new double[maxIndex];
         double [] qs = new double[ws.length];
 
         for (int i = 0; i < ws.length; ++i) {

http://dive4elements.wald.intevation.org