[PATCH 2 of 2] Doc

Wald Commits scm-commit at wald.intevation.org
Tue Sep 17 11:35:04 CEST 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1379411144 -7200
# Node ID 7ee382b3f839befb4e29c50b37182887f00d1af3
# Parent  6205fe683ac7fbc67084368421e8b02c9132de9f
Doc.

diff -r 6205fe683ac7 -r 7ee382b3f839 artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadCalculation.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadCalculation.java	Tue Sep 17 09:43:27 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadCalculation.java	Tue Sep 17 11:45:44 2013 +0200
@@ -128,7 +128,12 @@
     }
 
     /**
-     * @param[out] resLoad resulting SedimentLoad
+     * Take Loads and build average of all fractions at given km.
+     * The average fractions value is set in resLoad.
+     *
+     * @param km km at which to build fractions average.
+     * @param epochLoads the loads to build average over.
+     * @param[out] resLoad resulting SedimentLoad.
      */
     private void calculateEpochKm(
         List<SedimentLoad> epochLoads,
@@ -176,7 +181,7 @@
         }
 
         SedimentLoadFraction fr = resLoad.getFraction(km);
-        // Prevent divisions by zero, the fraction defaults to 0d.
+        // Prevent divisions by zero.
         if (cSum != 0) {
             resLoad.setCoarse(km, fr.getCoarse()/cSum, fr.getCoarseRange());
         }


More information about the Dive4elements-commits mailing list