--- trunk/gadget/stockmemberfunctions.cc 2014/02/10 17:09:07 1 +++ trunk/gadget/stockmemberfunctions.cc 2015/04/30 17:32:47 4 @@ -100,7 +100,6 @@ ((StockPredator*)predator)->getMaxConsumption(area)); else grower->calcGrowth(area, Area, TimeInfo); - int inarea = this->areaNum(area); if (grower->getFixedWeights()) { //Weights at length are fixed to the value in the input file @@ -114,9 +113,11 @@ //New weights at length are calculated grower->implementGrowth(area, tmpPopulation[inarea], LgrpDiv); if (doesmature && maturity->isMaturationStep(TimeInfo)) - Alkeys[inarea].Grow(grower->getLengthIncrease(area), grower->getWeightIncrease(area), maturity, area); + { + Alkeys[inarea].Grow(grower->getLengthIncrease(area), grower->getWeightIncrease(area), maturity, area); + } else - Alkeys[inarea].Grow(grower->getLengthIncrease(area), grower->getWeightIncrease(area)); + Alkeys[inarea].Grow(grower->getLengthIncrease(area), grower->getWeightIncrease(area)); } if (istagged && tagAlkeys.numTagExperiments() > 0) { @@ -125,6 +126,8 @@ else tagAlkeys[inarea].Grow(grower->getLengthIncrease(area), Alkeys[inarea]); } + + } //-----------------------------------------------------------------------