Ignore:
Timestamp:
2011-07-18T11:42:45+02:00 (13 years ago)
Author:
didier.solyga
Message:

Synchronize intersurf.f90 and slowproc.f90 with the revisions 314 and 317 of the trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ORCHIDEE_EXT/ORCHIDEE/src_sechiba/slowproc.f90

    r311 r326  
    703703       ! to be in sechiba when teststomate will have disapeared. 
    704704!MM Problem here with dpu which depends on soil type 
    705     DO jv = 1, nbdl-1 
     705    DO l = 1, nbdl-1 
    706706       ! first 2.0 is dpu  
    707707       ! second 2.0 is average 
    708        diaglev(jv) = dpu_cste/(2**(nbdl-1) -1) * ( ( 2**(jv-1) -1) + ( 2**(jv) -1) ) / 2.0 
     708       diaglev(l) = dpu_cste/(2**(nbdl-1) -1) * ( ( 2**(l-1) -1) + ( 2**(l) -1) ) / 2.0 
    709709    ENDDO 
    710710    diaglev(nbdl) = dpu_cste 
     
    25792579             ! conservation : 
    25802580             rapport = ( sum_veg - sumvAnthro ) / ( sum_veg - sumvAnthro_old ) 
    2581              veget_next(ib,1) = veget_last(ib,1) * rapport 
    2582              DO jv = 2, nvm 
    2583                 IF ( .NOT. natural(jv) ) THEN 
     2581             DO jv = 1, nvm 
     2582                IF ( natural(jv) ) THEN 
    25842583                   veget_next(ib,jv) = veget_last(ib,jv) * rapport 
    25852584                ENDIF 
    25862585             ENDDO 
    25872586             ! test 
    2588              IF ( ABS( SUM(veget_next(ib,:)) - sum_veg ) > EPSILON(un) ) THEN 
     2587             IF ( ABS( SUM(veget_next(ib,:)) - sum_veg ) > 10*EPSILON(un) ) THEN 
    25892588                WRITE(numout,*) "No conservation of sum of veget for point ",ib,",(",lalo(ib,1),",",lalo(ib,2),")"  
    25902589                WRITE(numout,*) "last sum of veget ",sum_veg," new sum of veget ",SUM(veget_next(ib,:))," error : ",& 
    25912590                     &                         SUM(veget_next(ib,:)) - sum_veg 
    2592                 WRITE(numout,*) "Anthropic modificaztions : last ",sumvAnthro_old," new ",sumvAnthro                 
     2591                WRITE(numout,*) "Anthropic modifications : last ",sumvAnthro_old," new ",sumvAnthro   
    25932592                CALL ipslerr (3,'slowproc_update', & 
    25942593                     &          'No conservation of sum of veget_next', & 
Note: See TracChangeset for help on using the changeset viewer.