Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/sq/SQRelationCalculation.java @ 3390:1c9aaef89f51
SQ relation: Out commented debug output which caused OOM errors.
flys-artifacts/trunk@5018 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 16 Jul 2012 10:05:34 +0000 |
parents | 816ceb0418b9 |
children | 56f62b5209f5 |
comparison
equal
deleted
inserted
replaced
3389:816ceb0418b9 | 3390:1c9aaef89f51 |
---|---|
36 | 36 |
37 String river = access.getRiver(); | 37 String river = access.getRiver(); |
38 Double location = access.getLocation(); | 38 Double location = access.getLocation(); |
39 DateRange [] periods = access.getPeriods(); | 39 DateRange [] periods = access.getPeriods(); |
40 Double outliers = access.getOutliers(); | 40 Double outliers = access.getOutliers(); |
41 | |
42 //river = "Rhein"; | |
41 | 43 |
42 if (river == null) { | 44 if (river == null) { |
43 // TODO: i18n | 45 // TODO: i18n |
44 addProblem("sq.missing.river"); | 46 addProblem("sq.missing.river"); |
45 } | 47 } |
107 | 109 |
108 for (DateRange period: periods) { | 110 for (DateRange period: periods) { |
109 Measurements measurements = | 111 Measurements measurements = |
110 MeasurementFactory.getMeasurements(river, location, period); | 112 MeasurementFactory.getMeasurements(river, location, period); |
111 | 113 |
114 /* | |
112 if (debug) { | 115 if (debug) { |
113 log.debug(measurements.toString()); | 116 log.debug(measurements.toString()); |
114 } | 117 } |
118 */ | |
115 | 119 |
116 SQFractionResult [] fractionResults = | 120 SQFractionResult [] fractionResults = |
117 new SQFractionResult[SQResult.NUMBER_FRACTIONS]; | 121 new SQFractionResult[SQResult.NUMBER_FRACTIONS]; |
118 | 122 |
119 for (int i = 0; i < fractionResults.length; ++i) { | 123 for (int i = 0; i < fractionResults.length; ++i) { |