Changes between Version 19 and Version 20 of Branches/MergeOCN/Goll


Ignore:
Timestamp:
2015-05-26T10:30:56+02:00 (9 years ago)
Author:
dgoll
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Branches/MergeOCN/Goll

    v19 v20  
    164164}}} 
    165165 
    166 == '''4. Negative biomass: stomate_growth_fun_all.f90''' == 
     166== '''5. Negative biomass: stomate_growth_fun_all.f90''' == 
    167167In case the variable "residual" is not zero and nutrient availability reduces bm_alloc_tot to a value smaller than the value of residual, the allocated biomass gets negative. 
    168168This can be fixed by correcting the biomass to be allocated by the residual before calculating nutrient limitation.  
     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}}} 
    169191 
    170192