Mercurial > dive4elements > river
changeset 7462:906ed0b1f3f1
Fix for flys/issue1654: Divide through denisity, do not multiply.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Wed, 30 Oct 2013 11:55:10 +0100 |
parents | 2733b4aae74b |
children | 52c364813cb1 |
files | artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadCalculation.java |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadCalculation.java Tue Oct 29 19:46:41 2013 +0100 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadCalculation.java Wed Oct 30 11:55:10 2013 +0100 @@ -522,7 +522,7 @@ SedimentDensityFactory.getSedimentDensity(river, kmLow, kmUp, year); for (double km: load.getKms()) { - double dens = density.getDensity(km, year); + double dens = 1d/density.getDensity(km, year); SedimentLoadFraction fraction = load.getFraction(km); double coarse = fraction.getCoarse(); double fineMiddle = fraction.getFineMiddle();