Changeset 2392


Ignore:
Timestamp:
Nov 11, 2015, 7:42:11 PM (9 years ago)
Author:
fhourdin
Message:

Retour a 1+1=2. Probleme dans thermcell_alim.
Bug fixing

Location:
LMDZ5/trunk/libf/phylmd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/phylmd/thermcell_alim.F90

    r2388 r2392  
    3232
    3333      REAL h,z,falim
    34       falim(h,z)=z*z*(h/2.-z/3.)
     34      falim(h,z)=0.2*((z-h)**5+h**5)
     35
    3536
    3637!===================================================================
    3738
     39   lalim(:)=1
     40   alim_star_tot(:)=0.
    3841
    39    DO ig=1,ngrid
    40       lalim(ig)=1
    41    ENDDO
     42   IF (ngrid==1) PRINT*,'NEW ALIM flag=',flag
    4243
    4344!-------------------------------------------------------------------------
     
    8990                lalim(ig)=l
    9091                zi(ig)=zlay(ig,l)+(zlay(ig,l+1)-zlay(ig,l))/(ztv(ig,l+1)-ztv(ig,l))*(ztv_parcel-ztv(ig,l))
    91                 print*,'NEW ALIM CALCUL DE ZI ',zlay(ig,l),zi(ig),zlay(ig,l+1)
    9292                IF (zi(ig)<0.) STOP
    9393            endif
    9494         enddo
    9595      enddo
    96       zh(:)=zi(:)/5.
    97 
    98 ! Coputing lateral entrainment
     96      zh(:)=zi(:)/2.
    9997      alim_star_tot(:)=0.
    10098      alim_star(:,:)=0.
     
    114112         alim_star_tot(:)=alim_star_tot(:)+alim_star(:,l)
    115113      ENDDO
    116       print*,'NEW ALIM CALCUL DE ZI ',alim_star_tot
     114      IF (ngrid==1) print*,'NEW ALIM CALCUL DE ZI ',alim_star_tot
    117115      alim_star_tot(:)=1.
    118116
  • LMDZ5/trunk/libf/phylmd/thermcell_plume.F90

    r2387 r2392  
    129129     CALL getin('thermals_detr_q_power',detr_q_power_omp)
    130130     CALL getin('thermals_mix0',mix0_omp)
    131      CALL getin('thermals_flag_alim',thermals_flag_alim)
     131     CALL getin('thermals_flag_alim',thermals_flag_alim_omp)
    132132!    CALL getin('thermals_X',X_omp)
    133133!    X=X_omp
Note: See TracChangeset for help on using the changeset viewer.