Ignore:
Timestamp:
Jan 30, 2017, 5:54:45 PM (8 years ago)
Author:
Laurent Fairhead
Message:

Merged trunk changes r2727:2785 into testing branch

Location:
LMDZ5/branches/testing
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/branches/testing

  • LMDZ5/branches/testing/libf/phylmd/cdrag.F90

    • Property svn:keywords set to Id
    r2488 r2787  
    11!
    2 !$Id: cdrag.F90 ???? 2015-??-?? ??:??:??Z ? $
     2!$Id$
    33!
    44 SUBROUTINE cdrag( knon,  nsrf,   &
     
    99  USE dimphy
    1010  USE indice_sol_mod
    11   USE print_control_mod, ONLY: lunout
     11  USE print_control_mod, ONLY: lunout, prt_level
    1212  IMPLICIT NONE
    1313! ================================================================= c
     
    139139     IF (qsurf(i).LT.0.0)  ng_qsurf = ng_qsurf + 1
    140140  ENDDO
    141   IF (ng_q1.GT.0) THEN
     141  IF (ng_q1.GT.0 .and. prt_level > 5) THEN
    142142      WRITE(lunout,*)" *** Warning: Negative q1(humidity at 1st level) values in cdrag.F90 !"
    143143      WRITE(lunout,*)" The total number of the grids is: ", ng_q1
     
    146146!      CALL abort_physic(modname,abort_message,1)
    147147  ENDIF
    148   IF (ng_qsurf.GT.0) THEN
     148  IF (ng_qsurf.GT.0 .and. prt_level > 5) THEN
    149149      WRITE(lunout,*)" *** Warning: Negative qsurf(humidity at surface) values in cdrag.F90 !"
    150150      WRITE(lunout,*)" The total number of the grids is: ", ng_qsurf
     
    172172! the negative qsurf and q1 are set to zero (as in coefcdrag)
    173173     ztsolv = tsurf(i) * (1.0+RETV*max(qsurf(i),0.0)) ! negative qsurf set to zero
    174      ztvd = (t1(i)+zgeop1(i)/RCPD/(1.+RVTMP2*q1(i))) &
     174     ztvd = (t1(i)+zgeop1(i)/RCPD/(1.+RVTMP2*max(q1(i),0.0))) &
    175175          *(1.+RETV*max(q1(i),0.0)) ! negative q1 set to zero
    176176     zri(i) = zgeop1(i)*(ztvd-ztsolv)/(zdu2*ztvd)
Note: See TracChangeset for help on using the changeset viewer.