comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WQCKms.java @ 678:19a3185822a4

Added error reporting to 'Wasserspiegellage' calculation. flys-artifacts/trunk@2102 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 10 Jun 2011 15:59:47 +0000
parents 8b0152363bdb
children eab5e5089d77
comparison
equal deleted inserted replaced
677:a95f34f1f39a 678:19a3185822a4
56 * @param idx The position of the triple. 56 * @param idx The position of the triple.
57 * @param dst destination array 57 * @param dst destination array
58 * 58 *
59 * @return a 4dim array of [W, Q, Kms, CW] in dst. 59 * @return a 4dim array of [W, Q, Kms, CW] in dst.
60 */ 60 */
61 @Override
61 public double[] get(int idx, double[] dst) { 62 public double[] get(int idx, double[] dst) {
62 dst = super.get(idx, dst); 63 dst = super.get(idx, dst);
63 64
64 if (dst.length < 4) { 65 if (dst.length < 4) {
65 return dst; 66 return dst;
66 } 67 }
67 68
68 if (cw != null && cw.size() > idx) { 69 if (cw != null && cw.size() > idx) {
69 dst[3] = cw.get(idx); 70 dst[3] = cw.getQuick(idx);
70 } 71 }
71 72
72 return dst; 73 return dst;
73 } 74 }
74 75

http://dive4elements.wald.intevation.org