Changeset 545 for trunk


Ignore:
Timestamp:
Feb 28, 2012, 10:17:23 AM (13 years ago)
Author:
acolaitis
Message:

Bug correction for cases when the Richardson exceeds the critical richardson.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/vdifc.F

    r544 r545  
    327327
    328328        IF (callrichsl) THEN
    329        zcdv(:)=zcdv_true(:)*sqrt(zu2(:)+
    330      &  (log(1.+0.7*wstar(:) + 2.3*wstar(:)**2))**2)
    331 !     &  (14.75*sqrt(hfmax(:)) - 10.*hfmax(:) + 1.7*hfmax(:)**2)**2)     ! subgrid gustiness added by quadratic interpolation with a coeff beta
    332        zcdh(:)=zcdh_true(:)*sqrt(zu2(:)+
    333      &  (log(1.+0.7*wstar(:) + 2.3*wstar(:)**2))**2)
    334 !     &  (8.*hfmax(:) + 0.*hfmax(:)**2 + 0.*hfmax(:)**4)**2)     ! LES comparisons. This parameter is linked to the thermals settings)
    335 
    336         ust(:)=sqrt(zcdv_true(:))*sqrt(zu2(:)+
    337      &  (log(1.+0.7*wstar(:) + 2.3*wstar(:)**2))**2)
    338 !     &  (14.75*sqrt(hfmax(:)) - 10.*hfmax(:) + 1.7*hfmax(:)**2)**2)
    339         tst(:)=(ph(:,1)-ptsrf(:))*zcdh(:)/ust(:)
    340 !        ust(:)=sqrt(zcdv_true(:))*sqrt(zu2(:))
    341 !        tst(:)=(ph(:,1)-ptsrf(:))*zcdh_true(:)/sqrt(zcdv_true(:))
     329          zcdv(:)=zcdv_true(:)*sqrt(zu2(:)+
     330     &     (log(1.+0.7*wstar(:) + 2.3*wstar(:)**2))**2)
     331          zcdh(:)=zcdh_true(:)*sqrt(zu2(:)+
     332     &     (log(1.+0.7*wstar(:) + 2.3*wstar(:)**2))**2)
     333
     334           ust(:)=sqrt(zcdv_true(:))*sqrt(zu2(:)+
     335     &     (log(1.+0.7*wstar(:) + 2.3*wstar(:)**2))**2)
     336
     337           tst(:)=0.
     338           DO ig=1,ngrid
     339              IF (zcdh_true(ig) .ne. 0.) THEN      ! When Cd=Ch=0, u*=t*=0
     340                 tst(ig)=(ph(ig,1)-ptsrf(ig))*zcdh(ig)/ust(ig)
     341              ENDIF
     342           ENDDO
     343
    342344        ELSE
    343         zcdv(:)=zcdv_true(:)*sqrt(zu2(:))     ! 1 / bulk aerodynamic momentum conductance
    344         zcdh(:)=zcdh_true(:)*sqrt(zu2(:))     ! 1 / bulk aerodynamic heat conductance
    345         ust(:)=sqrt(zcdv_true(:))*sqrt(zu2(:))
    346         tst(:)=(ph(:,1)-ptsrf(:))*zcdh_true(:)/sqrt(zcdv_true(:))
     345           zcdv(:)=zcdv_true(:)*sqrt(zu2(:))     ! 1 / bulk aerodynamic momentum conductance
     346           zcdh(:)=zcdh_true(:)*sqrt(zu2(:))     ! 1 / bulk aerodynamic heat conductance
     347           ust(:)=sqrt(zcdv_true(:))*sqrt(zu2(:))
     348           tst(:)=(ph(:,1)-ptsrf(:))*zcdh_true(:)/sqrt(zcdv_true(:))
    347349        ENDIF
    348350
Note: See TracChangeset for help on using the changeset viewer.