Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepth/FlowDepthCalculation.java @ 8980:b194fa64506a
SINFO - show results themes according to spec, either raw data or floating mean values.
Some improvements to error handling and handling of empty results.
author | gernotbelger |
---|---|
date | Thu, 05 Apr 2018 18:30:34 +0200 |
parents | 45f1ad66560e |
children | 2ed3824a3d53 |
comparison
equal
deleted
inserted
replaced
8979:951a4af24a09 | 8980:b194fa64506a |
---|---|
64 | 64 |
65 final FlowDepthCalculationResults results = new FlowDepthCalculationResults(calcModeLabel, user, riverInfo, calcRange, useTkh); | 65 final FlowDepthCalculationResults results = new FlowDepthCalculationResults(calcModeLabel, user, riverInfo, calcRange, useTkh); |
66 | 66 |
67 for (final WstSoundingIdPair diffPair : diffPairs) { | 67 for (final WstSoundingIdPair diffPair : diffPairs) { |
68 final FlowDepthCalculationResult result = calculateResult(calcRange, diffPair, problems, infoProvider, useTkh); | 68 final FlowDepthCalculationResult result = calculateResult(calcRange, diffPair, problems, infoProvider, useTkh); |
69 if (result != null) | 69 results.addResult(result, problems); |
70 results.addResult(result); | |
71 } | 70 } |
72 | 71 |
73 return new CalculationResult(results, problems); | 72 return new CalculationResult(results, problems); |
74 } | 73 } |
75 | 74 |