| 16 | * line 262 : problem with parenthesis ? |
| 17 | {{{ |
| 18 | WHERE ( ( biomass(:,j,ileaf) .GT. 0.0 ) .AND. & |
| 19 | ( leaf_meanage(:,j) .GT. pheno_crit%min_leaf_age_for_senescence(j) ) .AND. & |
| 20 | ( moiavail_week(:,j) .LT. moiavail_crit(:) ) .OR. & |
| 21 | ( ( t2m_month(:) .LT. t_crit(:) ) .AND. ( t2m_week(:) .LT. t2m_month(:)))) |
| 22 | }}} |
| 23 | It should be |
| 24 | {{{ |
| 25 | WHERE ( ( biomass(:,j,ileaf) .GT. 0.0 ) .AND. & |
| 26 | ( leaf_meanage(:,j) .GT. pheno_crit%min_leaf_age_for_senescence(j) ) .AND. & |
| 27 | (( moiavail_week(:,j) .LT. moiavail_crit(:) ) .OR. & |
| 28 | ( ( t2m_month(:) .LT. t_crit(:) ) .AND. ( t2m_week(:) .LT. t2m_month(:))))) |
| 29 | }}} |
| 30 | * line 316 : suppression of |
| 31 | {{{ |
| 32 | WHERE ( leaf_meanage(:,j) .LT. pheno_crit%min_leaf_age_for_senescence(j)) |
| 33 | turnover_time(:,j)= pheno_crit%max_turnover_time(j) |
| 34 | ENDWHERE |
| 35 | }}} |
| 36 | * line 360 : test "where (senescence(:,j))" should be a test on type of pheno == 'crop' |
| 37 | and test "if (natural(j))" should be a "else" statement. |
| 38 | =>because it may create a bug in case of crop pft base on a 'mixed' phenology |
| 39 | => No action done == no flag 'senescence' and 'not(natural)' |