Changeset 3162 for trunk/LMDZ.MARS


Ignore:
Timestamp:
Dec 19, 2023, 4:17:44 PM (11 months ago)
Author:
csegonne
Message:

MARS PCM

  • A new call to vdifcd is done with updated winds (after inversion of wind u and wind v and before inversion of the potential temperature h) and zcdv / zcdh are also updated. It matches with what is done in the generic model.
  • Old commented lines with a call to vdifcd at the begining of the tracers part of vdifc_mod have been removed.
Location:
trunk/LMDZ.MARS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/changelog.txt

    r3160 r3162  
    44104410== 19/12/2023 == JBC
    44114411Fixed an issue where the gfortran compilation failed due to rank mismatch of the 'field' argument when calling 'writediagfi' + cleaning of the subroutine.
     4412
     4413== 19/12/2023 == CS
     4414* A new call to vdifcd is done with updated winds (after inversion of wind u and wind v and before inversion of the potential temperature h) and zcdv / zcdh are also updated. It matches with what is done in the generic model.
     4415* Old commented lines with a call to vdifcd at the begining of the tracers part of vdifc_mod have been removed.
  • trunk/LMDZ.MARS/libf/phymars/vdifc_mod.F

    r3153 r3162  
    592592
    593593c-----------------------------------------------------------------------
     594c    Using the wind modified by friction for lifting and  sublimation
     595c     ----------------------------------------------------------------
     596
     597!     This is computed above and takes into account surface-atmosphere flux
     598!     enhancement by subgrid gustiness and atmospheric-stability related
     599!     variations of transfer coefficients.
     600!     Calculate Cd again with wind slowed by friction
     601c -------------------------------------------
     602
     603      CALL vdif_cd(ngrid,nlay,pz0,g,pzlay,zu,zv,wstar,ptsrf_tmp
     604     &          ,zh,zcdv_true,zcdh_true)
     605
     606      zu2(:)=zu(:,1)*zu(:,1)+zv(:,1)*zv(:,1)         
     607         
     608      IF (callrichsl) THEN
     609          zcdv(:)=zcdv_true(:)*sqrt(zu2(:)+
     610     &     (log(1.+0.7*wstar(:) + 2.3*wstar(:)**2))**2)
     611          zcdh(:)=zcdh_true(:)*sqrt(zu2(:)+
     612     &     (log(1.+0.7*wstar(:) + 2.3*wstar(:)**2))**2)
     613
     614           ustar(:)=sqrt(zcdv_true(:))*sqrt(zu2(:)+
     615     &     (log(1.+0.7*wstar(:) + 2.3*wstar(:)**2))**2)
     616
     617        ELSE
     618           zcdv(:)=zcdv_true(:)*sqrt(zu2(:))     ! 1 / bulk aerodynamic momentum conductance
     619           zcdh(:)=zcdh_true(:)*sqrt(zu2(:))     ! 1 / bulk aerodynamic heat conductance
     620           ustar(:)=sqrt(zcdv_true(:))*sqrt(zu2(:))
     621        ENDIF         
     622         
     623
     624c-----------------------------------------------------------------------
    594625c   6. inversion pour l'implicite sur h sans oublier le couplage
    595626c      avec le sol (conduction)
     
    776807c   TRACERS
    777808c   -------
    778 
    779 c     Using the wind modified by friction for lifting and  sublimation
    780 c     ----------------------------------------------------------------
    781 
    782 !     This is computed above and takes into account surface-atmosphere flux
    783 !     enhancement by subgrid gustiness and atmospheric-stability related
    784 !     variations of transfer coefficients.
    785 
    786 !        DO ig=1,ngrid
    787 !          zu2(ig)=zu(ig,1)*zu(ig,1)+zv(ig,1)*zv(ig,1)
    788 !          zcdv(ig)=zcdv_true(ig)*sqrt(zu2(ig))
    789 !          zcdh(ig)=zcdh_true(ig)*sqrt(zu2(ig))
    790 !        ENDDO
    791 
    792809c       Calcul du flux vertical au bas de la premiere couche (dust) :
    793810c       -----------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.