comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadCalculation.java @ 7064:fabb5e7a3b66

Doc, comment.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 19 Sep 2013 12:52:06 +0200
parents f4d6ef50665a
children b17634649e61
comparison
equal deleted inserted replaced
7056:4713bc0cc0ee 7064:fabb5e7a3b66
211 if (sseSum != 0) { 211 if (sseSum != 0) {
212 resLoad.setSuspSediment(km, fr.getSuspSediment()/sseSum, fr.getSuspSedimentRange()); 212 resLoad.setSuspSediment(km, fr.getSuspSediment()/sseSum, fr.getSuspSedimentRange());
213 } 213 }
214 } 214 }
215 215
216 /** Calculate result for an epoch. */
216 private SedimentLoadResult calculateEpoch(int i) { 217 private SedimentLoadResult calculateEpoch(int i) {
217 List<SedimentLoad> epochLoads = new ArrayList<SedimentLoad>(); 218 List<SedimentLoad> epochLoads = new ArrayList<SedimentLoad>();
218 for (int j = epoch[i][0]; j < epoch[i][1]; j++) { 219 for (int j = epoch[i][0]; j < epoch[i][1]; j++) {
219 epochLoads.add(SedimentLoadFactory.getLoadWithData( 220 epochLoads.add(SedimentLoadFactory.getLoadWithData(
220 this.river, 221 this.river,
221 this.yearEpoch, 222 this.yearEpoch,
222 this.kmLow, 223 this.kmLow,
223 this.kmUp, 224 this.kmUp,
224 j, 225 j, //syear
225 j)); 226 j)); //eyear
226 } 227 }
227 228
228 SedimentLoad resLoad = new SedimentLoad(); 229 SedimentLoad resLoad = new SedimentLoad();
229 TDoubleArrayList kms = new TDoubleArrayList(); 230 TDoubleArrayList kms = new TDoubleArrayList();
230 231

http://dive4elements.wald.intevation.org