| 169 | {{{ |
| 170 | ! Move the unallocated carbon back into the labile pool |
| 171 | biomass(ipts,j,ilabile,icarbon) = & |
| 172 | biomass(ipts,j,ilabile,icarbon) + residual(ipts,j) |
| 173 | |
| 174 | ENDIF |
| 175 | |
| 176 | !DSGdebug_05 |
| 177 | ! correct the biomass to be allocated by the residual |
| 178 | ! this has to be done here because we need the actual biomass to be |
| 179 | ! allocated to compute the nutrient demands |
| 180 | bm_alloc_tot(ipts,j) = bm_alloc_tot(ipts,j) - residual(ipts,j) |
| 181 | !DSGdebug_05 |
| 182 | |
| 183 | |
| 184 | }}} |
| 185 | {{{ |
| 186 | !DSGdebug_05 |
| 187 | ! bm_alloc(:,j,k,icarbon) = f_alloc(:,j,k) * (bm_alloc_tot(:,j) - residual(:,j)) |
| 188 | bm_alloc(:,j,k,icarbon) = f_alloc(:,j,k) * bm_alloc_tot(:,j) ! residual was already removed from bm_alloc_tot |
| 189 | !DSGdebug_05 |
| 190 | }}} |