Author: echatellier Date: 2012-10-23 11:26:22 +0200 (Tue, 23 Oct 2012) New Revision: 300 Url: http://forge.codelutin.com/repositories/revision/isis-fish-data/300 Log: Fix commented sumover dim Modified: trunk/scripts/SiMatrix.java Modified: trunk/scripts/SiMatrix.java =================================================================== --- trunk/scripts/SiMatrix.java 2012-09-26 08:46:33 UTC (rev 299) +++ trunk/scripts/SiMatrix.java 2012-10-23 09:26:22 UTC (rev 300) @@ -1620,7 +1620,7 @@ // beforeOrEquals sert a bien prendre Decembre aussi MatrixND catchPerStrategyTemp = resManager.getMatrix(loopstep, pop, ResultName.MATRIX_CATCH_PER_STRATEGY_MET_PER_ZONE_POP); - if (catchPerStrategy == null){ + if (catchPerStrategy == null) { catchPerStrategy = catchPerStrategyTemp.clone(); // On clone la matrice car si on fait les operations sur celle contenue dans le cache on la modifie et donc on recupere des resultats faux. } else { @@ -1645,7 +1645,8 @@ Mgroup = naturalDeathRatePop.getValue(group); //log.info("Mgroup= " + Mgroup + "Year=" + step.getYear()); - MatrixND abundancePopJan = resManager.getMatrix(new TimeStep(12*step.getYear()), pop, ResultName.MATRIX_ABUNDANCE); // Le timestep 0 correspond a janvier de la premiere annee et les annees sont numerotees a partir de zero abundancePopJan = abundancePopJan.sumOverDim(1); // somme sur Zone + MatrixND abundancePopJan = resManager.getMatrix(new TimeStep(12*step.getYear()), pop, ResultName.MATRIX_ABUNDANCE); // Le timestep 0 correspond a janvier de la premiere annee et les annees sont numerotees a partir de zero + abundancePopJan = abundancePopJan.sumOverDim(1); // somme sur Zone abundancePopJan = abundancePopJan.reduce(); NgroupJan = abundancePopJan.getValue(group); //log.info("NgroupJan = " + NgroupJan + "Year=" + step.getYear());
participants (1)
-
echatellier@users.forge.codelutin.com