Changes between Version 50 and Version 51 of Branches/MergeOCN/Goll


Ignore:
Timestamp:
2015-06-15T13:11:51+02:00 (9 years ago)
Author:
dgoll
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Branches/MergeOCN/Goll

    v50 v51  
    501501}}} 
    502502=== 11. Mass conservation issue: stomate_turnover.f90 === 
    503 The mass of biomass and circ_class_biomass starts to diverge after leaf fall in stomate_turnover.f90. I fixed this by removing repetitions in a big; I couldn't locate the precise error in the original code. 
    504 {{{ 
     503The mass of biomass and circ_class_biomass starts to diverge after leaf fall in stomate_turnover.f90. 
     504I rewrote the code in a more fail-safe format and thereby fixed the bug. I don't know where the error is in the original piece of code. 
     505 
     506{{{ 
     507       !! 4.3 Loop over leaf age classes 
     508       DO ilage = 1, nleafages 
     509              
     510          turnover_rate(:) = zero 
     511 
     512          WHERE ( leaf_age(:,ivm,ilage) .GT. leaf_age_crit(:,ivm) / deux) 
     513 
     514             turnover_rate(:) =  MIN( 0.99_r_std, dt / ( leaf_age_crit(:,ivm) * & 
     515                  ( leaf_age_crit(:,ivm) / leaf_age(:,ivm,ilage) )**quatre ) ) 
     516              
     517          ENDWHERE 
     518                                  
     519          IF (is_tree(ivm)) THEN 
     520 
    505521!DSGdebug_13             ! Stand level turnover (gC m-2) 
    506522!DSGdebug_13             ! Leaves 
     
    549565!DSGdebug_13 
    550566 
    551  
    552 }}} 
    553 by  
    554 {{{ 
    555    IF (is_tree(ivm)) THEN 
    556567             !DSGsimplify 
    557568             DO ielem = 1,nelements 
     
    617628             ENDDO 
    618629             !DSGsimplify 
    619  
     630!DSGdebug_13 
    620631}}} 
    621632