Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/tkhcalculation/TkhCalculator.java @ 8954:183f42641ab6
Fixed: flowd depth calculation without transport bodies heights did not work any more
author | gernotbelger |
---|---|
date | Mon, 19 Mar 2018 14:13:37 +0100 |
parents | a4f1ac81f26d |
children | 45f1ad66560e |
comparison
equal
deleted
inserted
replaced
8953:c40db8e8dcae | 8954:183f42641ab6 |
---|---|
120 } | 120 } |
121 | 121 |
122 private SoilKind getSoilKind(final double km) { | 122 private SoilKind getSoilKind(final double km) { |
123 | 123 |
124 try { | 124 try { |
125 if (this.soilKindFinder == null) | |
126 return null; | |
127 | |
125 return this.soilKindFinder.findSoilKind(km); | 128 return this.soilKindFinder.findSoilKind(km); |
126 } | 129 } |
127 catch (final ArgumentOutsideDomainException e) { | 130 catch (final ArgumentOutsideDomainException e) { |
128 // FIXME: cumulate problems to one message? | 131 // FIXME: cumulate problems to one message? |
129 final String message = Resources.getMsg(this.context.getMeta(), "sinfo_calc_flow_depth.warning.missingSoilKind", null, this.problemLabel); | 132 final String message = Resources.getMsg(this.context.getMeta(), "sinfo_calc_flow_depth.warning.missingSoilKind", null, this.problemLabel); |