Mercurial > dive4elements > river
changeset 3642:83c0735092a3
FixA: Increase Q max about 5% if storing as AT file.
flys-artifacts/trunk@5362 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 05 Sep 2012 08:23:56 +0000 |
parents | 1dc904370a64 |
children | 171db4d5d3cb |
files | flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixATWriter.java |
diffstat | 2 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog Tue Sep 04 17:32:37 2012 +0000 +++ b/flys-artifacts/ChangeLog Wed Sep 05 08:23:56 2012 +0000 @@ -1,3 +1,8 @@ +2012-09-05 Sascha L. Teichmann <sascha.teichmann@intevation.de> + + * src/main/java/de/intevation/flys/exports/fixings/FixATWriter.java: + Increase Q max about 5% (as it should be). + 2012-09-04 Sascha L. Teichmann <sascha.teichmann@intevation.de> Fix for issue687
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixATWriter.java Tue Sep 04 17:32:37 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixATWriter.java Wed Sep 05 08:23:56 2012 +0000 @@ -68,6 +68,9 @@ de.intevation.flys.artifacts.math.Function funcInst = function.instantiate(coeffs); + // Increase Q max about 5%. + qMax[0] += Math.abs(qMax[0])*0.05; + double wMax = funcInst.value(qMax[0]); if (Double.isNaN(wMax) || wMax < 0d) {