| 386 | == Mass conservation issue: stomate_turnover.f90 === |
| 387 | The fraction of nitrogen recycled is calculated wrong when updating circ_class_biomass (*,ilabile,introgen). This can be fixed by: |
| 388 | {{{ |
| 389 | !nitrogen |
| 390 | circ_class_biomass(:,ivm,icirc,ileaf,initrogen) = circ_class_biomass(:,ivm,icirc,ileaf,initrogen) * & |
| 391 | (un - leaf_frac(:,ivm,ilage) * turnover_rate(:)) |
| 392 | circ_class_biomass(:,ivm,icirc,iroot,initrogen) = circ_class_biomass(:,ivm,icirc,iroot,initrogen) * & |
| 393 | (un - leaf_frac(:,ivm,ilage) * turnover_rate(:)) |
| 394 | circ_class_biomass(:,ivm,icirc,ifruit,initrogen) = circ_class_biomass(:,ivm,icirc,ifruit,initrogen) * & |
| 395 | (un - leaf_frac(:,ivm,ilage) * turnover_rate(:)) |
| 396 | |
| 397 | ! add the recycled nutrients to labile pool: |
| 398 | circ_class_biomass(:,ivm,icirc,ilabile,initrogen) = & |
| 399 | circ_class_biomass(:,ivm,icirc,ilabile,initrogen) & |
| 400 | + circ_class_biomass(:,ivm,icirc,ileaf,initrogen) * & ! add from leaves |
| 401 | !DSGdebug_12 (un - leaf_frac(:,ivm,ilage) * turnover_rate(:) * recycle_leaf) & |
| 402 | ( leaf_frac(:,ivm,ilage) * turnover_rate(:) * recycle_leaf) & |
| 403 | + circ_class_biomass(:,ivm,icirc,iroot,initrogen) * & ! add from roots |
| 404 | !DSGdebug_12 (un - leaf_frac(:,ivm,ilage) * turnover_rate(:) * recycle_root) |
| 405 | ( leaf_frac(:,ivm,ilage) * turnover_rate(:) * recycle_root) |
| 406 | |
| 407 | }}} |
| 408 | |
| 409 | |
| 410 | {{{ |
| 411 | !nitrogen |
| 412 | circ_class_biomass(:,ivm,icirc,ileaf,initrogen) = circ_class_biomass(:,ivm,icirc,ileaf,initrogen) * & |
| 413 | (un - leaf_frac(:,ivm,ilage) * turnover_rate(:)) |
| 414 | circ_class_biomass(:,ivm,icirc,iroot,initrogen) = circ_class_biomass(:,ivm,icirc,iroot,initrogen) * & |
| 415 | (un - leaf_frac(:,ivm,ilage) * turnover_rate(:)) |
| 416 | circ_class_biomass(:,ivm,icirc,ifruit,initrogen) = circ_class_biomass(:,ivm,icirc,ifruit,initrogen) * & |
| 417 | (un - leaf_frac(:,ivm,ilage) * turnover_rate(:)) |
| 418 | |
| 419 | ! add the recycled nutrients to labile pool: |
| 420 | circ_class_biomass(:,ivm,icirc,ilabile,initrogen) = & |
| 421 | circ_class_biomass(:,ivm,icirc,ilabile,initrogen) & |
| 422 | + circ_class_biomass(:,ivm,icirc,ileaf,initrogen) * & ! add from leaves |
| 423 | !DSGdebug_12 (un - leaf_frac(:,ivm,ilage) * turnover_rate(:) * recycle_leaf) & |
| 424 | ( leaf_frac(:,ivm,ilage) * turnover_rate(:) * recycle_leaf) & |
| 425 | + circ_class_biomass(:,ivm,icirc,iroot,initrogen) * & ! add from roots |
| 426 | !DSGdebug_12 (un - leaf_frac(:,ivm,ilage) * turnover_rate(:) * recycle_root) |
| 427 | ( leaf_frac(:,ivm,ilage) * turnover_rate(:) * recycle_root) |
| 428 | }}} |
| 429 | |
| 430 | |