Changeset 288 for trunk/LMDZ.MARS/libf


Ignore:
Timestamp:
Sep 9, 2011, 9:38:30 AM (13 years ago)
Author:
aslmd
Message:

LMDZ.MARS

09/09/11 == AS

--> Fixed a problem with .eq. used with booleans in physiq.F
[some good picky compilers complain about this]
--> Added a warning in inifis about using
callrichsl = .false.
calltherm = .true.
which is not recommended. The new surface layer has been built to go
with the new mixing layer scheme (thermals). And anyway it is a much
better scheme than the previous one.

Location:
trunk/LMDZ.MARS/libf/phymars
Files:
2 edited

Legend:

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

    r285 r288  
    257257         call getin("callrichsl",callrichsl)
    258258         write(*,*) " callrichsl = ",callrichsl
     259
     260         if (calltherm .and. .not.callrichsl) then
     261          print*,'WARNING WARNING WARNING'
     262          print*,'if calltherm=T we strongly advise that '
     263          print*,'you use the new surface layer scheme '
     264          print*,'by setting callrichsl=T '
     265         endif
    259266
    260267         write(*,*) "call CO2 condensation ?"
  • trunk/LMDZ.MARS/libf/phymars/physiq.F

    r286 r288  
    689689         enddo
    690690
     691
     692#ifdef MESOSCALE
     693      IF (flag_LES .eq. .false.) THEN
     694#endif
     695c ----------------------
    691696c Treatment of a special case : using new surface layer (Richardson based)
    692697c without using the thermals in gcm and mesoscale can yield problems in
     
    694699c a unit subgrid gustiness. Remember that thermals should be used we using the
    695700c Richardson based surface layer model.
    696 
    697 #ifdef MESOSCALE
    698       IF (flag_LES .eq. .false.) THEN
    699         IF ((calltherm .eq. .false.) .and. (callrichsl .eq. .true.)) THEN
     701        IF ( .not.calltherm .and. callrichsl ) THEN
    700702          DO ig=1, ngridmx
    701703             IF (zh(ig,1) .lt. tsurf(ig)) THEN
     
    704706          ENDDO
    705707        ENDIF
     708c ----------------------
     709#ifdef MESOSCALE
    706710      ENDIF
    707 #else
    708       IF ((calltherm .eq. .false.) .and. (callrichsl .eq. .true.)) THEN
    709         DO ig=1, ngridmx
    710           IF (zh(ig,1) .lt. tsurf(ig)) THEN
    711             wmax_th(ig)=1.
    712           ENDIF
    713         ENDDO
    714       ENDIF   
    715711#endif
     712
    716713
    717714c        Calling vdif (Martian version WITH CO2 condensation)
Note: See TracChangeset for help on using the changeset viewer.