Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadCalculation.java @ 6375:2f39cf68a1dd
declare nextStep variable for future use.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 20 Jun 2013 10:09:41 +0200 |
parents | 48e92ff57f23 |
children | 8d6f23243d1d |
comparison
equal
deleted
inserted
replaced
6374:48e92ff57f23 | 6375:2f39cf68a1dd |
---|---|
290 } | 290 } |
291 if (problemThisYear) { | 291 if (problemThisYear) { |
292 logger.warn("Some problem, not calculating total load."); | 292 logger.warn("Some problem, not calculating total load."); |
293 return load; | 293 return load; |
294 } | 294 } |
295 double nextStep = 0; | |
295 for(double km : load.getKms()) { | 296 for(double km : load.getKms()) { |
296 SedimentLoadFraction fraction = load.getFraction(km); | 297 SedimentLoadFraction fraction = load.getFraction(km); |
297 double total = 0d; | 298 double total = 0d; |
298 if ((fraction.getCoarse() <= 0d && load.hasCoarse())){ | 299 if ((fraction.getCoarse() <= 0d && load.hasCoarse())){ |
299 addProblem(km, "missing.data.coarse"); | 300 addProblem(km, "missing.data.coarse"); |