Changeset 835 for trunk/LMDZ.MARS/libf


Ignore:
Timestamp:
Nov 8, 2012, 7:42:44 PM (12 years ago)
Author:
jbmadeleine
Message:

Mars GCM:
Cleaned physiq.F (some debugging lines were introduced at revision
833, sorry about that!);

File:
1 edited

Legend:

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

    r833 r835  
    621621c          ------------------
    622622
    623 c-------------------------------------------
    624 c     MODIF_JBM made on 12W29D5,05:29:23 PM
    625 c-------------------------------------------
    626 c     WRITE(*,*) "MODIF_JBM DEBUGGING 12W29D5,05:29:23 PM"
    627 c     WRITE(*,*) "BEFORE CALLRADITE"
    628 c     WRITE(*,*) ">>> rice = ",rice(11,1)
    629 c-------------------------------------------
    630 
    631623           CALL callradite(icount,ngrid,nlayer,nq,zday,zls,pq,albedo,
    632624     $     emis,mu0,pplev,pplay,pt,tsurf,fract,dist_sol,igout,
     
    634626     $     tauref,tau,aerosol,tauscaling,taucloudtes,rdust,rice,
    635627     $     nuice,co2ice)
    636 
    637 c-------------------------------------------
    638 c     MODIF_JBM made on 12W29D5,05:29:23 PM
    639 c-------------------------------------------
    640 c     WRITE(*,*) "MODIF_JBM DEBUGGING 12W29D5,05:29:23 PM"
    641 c     WRITE(*,*) "AFTER CALLRADITE"
    642 c     WRITE(*,*) ">>> rice = ",rice(11,1)
    643 c-------------------------------------------
    644 
    645628
    646629c          Outputs for basic check (middle of domain)
     
    10381021     &                rsedcloud,rhocloud)
    10391022
    1040 c-------------------------------------------
    1041 c     MODIF_JBM made on 12W29D5,05:29:23 PM
    1042 c-------------------------------------------
    1043 c     WRITE(*,*) "MODIF_JBM DEBUGGING 12W29D5,05:29:23 PM"
    1044 c     WRITE(*,*) "AFTER WATERCLOUD"
    1045 c     WRITE(*,*) ">>> rice = ",rice(11,1)
    1046 c-------------------------------------------
    1047      
    10481023c Temperature variation due to latent heat release
    10491024           if (activice) then
     
    11571132     &                tau,tauscaling)
    11581133
    1159 c-------------------------------------------
    1160 c     MODIF_JBM made on 12W29D5,05:29:23 PM
    1161 c-------------------------------------------
    1162 c     WRITE(*,*) "MODIF_JBM DEBUGGING 12W29D5,05:29:23 PM"
    1163 c     WRITE(*,*) "AFTER CALLSEDIM"
    1164 c     WRITE(*,*) ">>> rice = ",rice(11,1)
    1165 c-------------------------------------------
    1166      
    11671134           DO iq=1, nq
    11681135             DO l=1,nlayer
     
    14191386      ENDDO
    14201387c ******* TEST ******************************************************
    1421 c MODIF_JBM COMMENTED
    1422 c      ztim1 = 999
    1423 c      DO l=1,nlayer
    1424 c        DO ig=1,ngrid
    1425 c           if (pt(ig,l).lt.ztim1) then
    1426 c               ztim1 = pt(ig,l)
    1427 c               igmin = ig
    1428 c               lmin = l
    1429 c           end if
    1430 c        ENDDO
    1431 c      ENDDO
    1432 c      if(min(pt(igmin,lmin),zt(igmin,lmin)).lt.70.) then
    1433 c        write(*,*) 'PHYSIQ: stability WARNING :'
    1434 c        write(*,*) 'pt, zt Tmin = ', pt(igmin,lmin), zt(igmin,lmin),
    1435 c     &              'ig l =', igmin, lmin
    1436 c      end if
     1388      ztim1 = 999
     1389      DO l=1,nlayer
     1390        DO ig=1,ngrid
     1391           if (pt(ig,l).lt.ztim1) then
     1392               ztim1 = pt(ig,l)
     1393               igmin = ig
     1394               lmin = l
     1395           end if
     1396        ENDDO
     1397      ENDDO
     1398      if(min(pt(igmin,lmin),zt(igmin,lmin)).lt.70.) then
     1399        write(*,*) 'PHYSIQ: stability WARNING :'
     1400        write(*,*) 'pt, zt Tmin = ', pt(igmin,lmin), zt(igmin,lmin),
     1401     &              'ig l =', igmin, lmin
     1402      end if
    14371403c *******************************************************************
    14381404
     
    19011867c        WRITEDIAGFI can ALSO be called from any other subroutines
    19021868c        for any variables !!
    1903          call WRITEDIAGFI(ngrid,"emis","Surface emissivity","w.m-1",2,
    1904      &                  emis)
    1905          call WRITEDIAGFI(ngrid,"pplay","Pressure","Pa",3,zplay)
    1906          call WRITEDIAGFI(ngrid,"pplev","Pressure","Pa",3,zplev)
     1869c        call WRITEDIAGFI(ngrid,"emis","Surface emissivity","w.m-1",2,
     1870c    &                  emis)
     1871c        call WRITEDIAGFI(ngrid,"pplay","Pressure","Pa",3,zplay)
     1872c        call WRITEDIAGFI(ngrid,"pplev","Pressure","Pa",3,zplev)
    19071873         call WRITEDIAGFI(ngrid,"tsurf","Surface temperature","K",2,
    19081874     &                  tsurf)
     
    19311897c        call WRITEDIAGFI(ngrid,"ssurf","Surface stress","N.m-2",2,
    19321898c    &                  zstress)
    1933          call WRITEDIAGFI(ngridmx,'sw_htrt','sw heat. rate',
    1934      &                   'w.m-2',3,zdtsw)
    1935          call WRITEDIAGFI(ngridmx,'lw_htrt','lw heat. rate',
    1936      &                   'w.m-2',3,zdtlw)
     1899c        call WRITEDIAGFI(ngridmx,'sw_htrt','sw heat. rate',
     1900c    &                   'w.m-2',3,zdtsw)
     1901c        call WRITEDIAGFI(ngridmx,'lw_htrt','lw heat. rate',
     1902c    &                   'w.m-2',3,zdtlw)
    19371903            if (.not.activice) then
    19381904               CALL WRITEDIAGFI(ngridmx,'tauTESap',
Note: See TracChangeset for help on using the changeset viewer.