Changes between Version 3 and Version 4 of Branches/MergeOCN/Peng


Ignore:
Timestamp:
2015-05-06T13:28:38+02:00 (9 years ago)
Author:
speng
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Branches/MergeOCN/Peng

    v3 v4  
    66 
    77   line 4972, soiltext ---> soilbulk 
     8 
     9 
    810   line 4975, soiltext ---> soilph 
    911 
    10122. corrected bug as ticket#109 
    1113 
     143. corrected bug for "carbon"initialization, actually, this variable should contain a element dimension in the calculation, at least icarbon and initrogen. So it is better to rename this variable as ele_pools... 
     15 
     16in stomate_io.f90 
     17 
     18{{{ 
     19 
     20 232 !!!!pssdebugok#1+++ 
     21 233     REAL(r_std), DIMENSION(npts,ncarb,nvm,nelements), INTENT(out)       :: carbon                  !! som pool: active, slow, or passive, surface 
     22 234                                                                                                    !! for carbon and nitrogen (gC/m**2) 
     23 235 !!!!pssdebugok#1--- 
     24 236 !    REAL(r_std), DIMENSION(npts,ncarb,nvm), INTENT(out)                 :: carbon                  !! carbon pool: active, slow, or passive, 
     25 237 !                                                                                                   !! (gC/m**2) 
     26 
     27}}} 
     28  
     294. leaching only have iammonium and initrate, other gas (inox, initrous) for leaching should be zero; 
     30 
     31in stomate_soilcarbon.f90 
     32 
     33debug: initiate leaching(:,:,:) = 0 
     34 
     35 
     36{{{ 
     37 654 !!!!pssdebug++++ 
     38 655     leaching(:,:,:) = 0 
     39 656 !!!!pssdebug---- 
     40 
     41}}} 
     42 
     43For denitrification calculation, there is no leaching(:,m,inox) and leaching(:,m,initrous) calculation before. I think we do not need to minus leaching for this two species here.  
     44 
     45{{{ 
     461079 !!!!pssdebugok+          ! 
     471080           ! NO consumption 
     481081           denitrification(:,m,i_nh4_to_no) = MIN(soil_n_min(:,m,inox), & 
     491082                anvf(:,m) * ( mu_no(:) / Y_no + M_no * soil_n_min(:,m,inox) / sum_n(:)) * bact(:,m) * & 
     501083                24. * dt ) 
     511084           ! 
     521085           ! N2O consumption 
     531086           denitrification(:,m,i_nh4_to_n2o) = MIN(soil_n_min(:,m,initrous), & 
     541087                anvf(:,m) * ( mu_n2o(:) / Y_n2o + M_n2o * soil_n_min(:,m,initrous) / sum_n(:)) * bact(:,m) * & 
     551088                24. * dt ) 
     561089 !!!!pssdebugok-   
     571090 !!!!pssdebug          ! NO consumption 
     581091 !!!!pssdebug          denitrification(:,m,i_nh4_to_no) = MIN(soil_n_min(:,m,inox)-leaching(:,m,inox), & 
     591092 !!!!pssdebug               anvf(:,m) * ( mu_no(:) / Y_no + M_no * soil_n_min(:,m,inox) / sum_n(:)) * bact(:,m) * & 
     601093 !!!!pssdebug               24. * dt )         
     611094 !!!!pssdebug          ! 
     621095 !!!!pssdebug          ! N2O consumption 
     631096 !!!!pssdebug          denitrification(:,m,i_nh4_to_n2o) = MIN(soil_n_min(:,m,initrous)-leaching(:,m,initrous), & 
     641097 !!!!pssdebug               anvf(:,m) * ( mu_n2o(:) / Y_n2o + M_n2o * soil_n_min(:,m,initrous) / sum_n(:)) * bact(:,m) * & 
     651098 !!!!pssdebug               24. * dt ) 
     66 
     67}}} 
     68 
     695. nitrogen demand problem