Changeset 3813


Ignore:
Timestamp:
Jun 24, 2025, 5:29:54 PM (5 days ago)
Author:
afalco
Message:

Pluto: non-oro gravity waves: imported fix from LMDZ terrestrial model for poles. Allowed to output tendencies.
AF

Location:
trunk/LMDZ.PLUTO/libf
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.PLUTO/libf/dynphy_lonlat/phypluto/grid_noro1.F

    r3382 r3813  
    308308      zmaxthe=0.
    309309      zminthe=0.
    310 c     print 100,' '
    311 c100  format(1X,A1,'II JJ',4X,'H',8X,'SD',8X,'SI',3X,'GA',3X,'TH')
    312        print*,'OK1'
    313        DO ii = 1, imar
    314        DO jj = 1, jmar
    315 c       print*,'ok0'
    316          IF (weight(ii,jj) .NE. 0.0) THEN
    317 c  Orography moyenne:
    318 c         print*,'ok1'
    319            zmea (ii,jj)=zmea (ii,jj)/weight(ii,jj)
    320            zxtzx(ii,jj)=zxtzx(ii,jj)/weight(ii,jj)
    321            zytzy(ii,jj)=zytzy(ii,jj)/weight(ii,jj)
    322            zxtzy(ii,jj)=zxtzy(ii,jj)/weight(ii,jj)
    323            ztz(ii,jj)  =ztz(ii,jj)/weight(ii,jj)
    324 c         print*,'ok2'
    325 c  Deviation standard:
    326            zstd(ii,jj)=sqrt(amax1(0.,ztz(ii,jj)-zmea(ii,jj)**2))
     310      DO ii = 1, imar
     311      DO jj = 1, jmar
     312        IF (weight(ii,jj) .NE. 0.0) THEN
     313          zmea (ii,jj)=zmea (ii,jj)/weight(ii,jj)
     314          zxtzx(ii,jj)=zxtzx(ii,jj)/weight(ii,jj)
     315          zytzy(ii,jj)=zytzy(ii,jj)/weight(ii,jj)
     316          zxtzy(ii,jj)=zxtzy(ii,jj)/weight(ii,jj)
     317          ztz(ii,jj)  =ztz(ii,jj)/weight(ii,jj)
     318          zstd(ii,jj)=sqrt(amax1(0.,ztz(ii,jj)-zmea(ii,jj)**2))
     319        ENDIF
     320      ENDDO
     321      ENDDO
     322      !--- CORRECT VALUES OF HORIZONTAL SLOPE NEAR THE POLES:
     323      zxtzx(:,   1)=zxtzx(:,     2)
     324      zxtzx(:,jmar)=zxtzx(:,jmar-1)
     325      zxtzy(:,   1)=zxtzy(:,     2)
     326      zxtzy(:,jmar)=zxtzy(:,jmar-1)
     327      zytzy(:,   1)=zytzy(:,     2)
     328      zytzy(:,jmar)=zytzy(:,jmar-1)
     329
     330      DO ii = 1, imar
     331      DO jj = 1, jmar
    327332c  Coefficients K, L et M:
    328333           xk=(zxtzx(ii,jj)+zytzy(ii,jj))/2.
     
    335340           if(xq.le.xw) xq=xw
    336341           if(abs(xm).le.xw) xm=xw*sign(1.,xm)
    337 c          print*,'ok3'
    338342c pente:
    339343           zsig(ii,jj)=sqrt(xq)
     
    344348           zthe(ii,jj)=57.29577951*atan2(xm,xl)/2.
    345349
    346 c          print 101,ii,jj,
    347 c    *           zmea(ii,jj),zstd(ii,jj),zsig(ii,jj),zgam(ii,jj),
    348 c    *           zthe(ii,jj)
    349 c101  format(1x,2(1x,i2),2(1x,f7.1),1x,f7.4,2x,f4.2,1x,f5.1)     
    350 c          print*,'ok4'
    351          ELSE
    352 c           PRINT*, 'probleme,ii,jj=', ii,jj
    353 c          print*,'ok1b'
    354          ENDIF
    355350      zmaxmea=amax1(zmea(ii,jj),zmaxmea)
    356 c         print*,'oka'
    357351      zmaxstd=amax1(zstd(ii,jj),zmaxstd)
    358 c         print*,'okb'
    359352      zmaxsig=amax1(zsig(ii,jj),zmaxsig)
    360 c         print*,'okc'
    361353      zmaxgam=amax1(zgam(ii,jj),zmaxgam)
    362 c         print*,'okd'
    363354      zmaxthe=amax1(zthe(ii,jj),zmaxthe)
    364 c         print*,'oke'
    365355      zminthe=amin1(zthe(ii,jj),zminthe)
    366 c      print*,'ok5'
    367356       ENDDO
    368357       ENDDO
  • trunk/LMDZ.PLUTO/libf/phypluto/physiq_mod.F90

    r3812 r3813  
    22532253      call write_output('dtaui_17','Layer optical thickness attenuation in IR band','',int_dtaui(:,nlayer:1:-1,17))
    22542254
     2255      if (calllott) then
     2256        call write_output("zdugw","tendancy U lott","m s-2",zdugw)
     2257        call write_output("zdvgw","tendancy V lott","m s-2",zdvgw)
     2258        call write_output("zdtgw","tendancy T lott","K s-1",zdtgw)
     2259      endif
     2260     
    22552261      ! Output tracers.
    22562262      if (tracer) then
Note: See TracChangeset for help on using the changeset viewer.