[PATCH 4 of 4] issue1465: Adjust to new use of NaN instead of 0
Wald Commits
scm-commit at wald.intevation.org
Fri Sep 13 16:01:30 CEST 2013
# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1379081410 -7200
# Node ID 56891f61e534b4e2ce14e6bb045a7db48a979cc0
# Parent 998a9710007e5709e2a0b415d1b5af097851b4db
issue1465: Adjust to new use of NaN instead of 0.
diff -r 998a9710007e -r 56891f61e534 artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadFraction.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadFraction.java Fri Sep 13 16:07:46 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadFraction.java Fri Sep 13 16:10:10 2013 +0200
@@ -213,11 +213,11 @@
/** Returns true if all fraction needed for total calculation are set. */
public boolean isComplete() {
return
- getCoarse() != 0d &&
- getFineMiddle() != 0d &&
- getSand() != 0d &&
- getSuspSand() != 0d &&
- getSuspSediment() != 0d;
+ getCoarse() != Double.NaN &&
+ getFineMiddle() != Double.NaN &&
+ getSand() != Double.NaN &&
+ getSuspSand() != Double.NaN &&
+ getSuspSediment() != Double.NaN;
}
}
// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :
More information about the Dive4elements-commits
mailing list