Changeset 2350


Ignore:
Timestamp:
Aug 25, 2015, 1:40:19 PM (9 years ago)
Author:
Ehouarn Millour
Message:

Corrections for 1D case where nbp_lon=nbp_lat=1.
EM + MPL

Location:
LMDZ5/trunk/libf/phylmd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/phylmd/aaam_bud.F90

    r2346 r2350  
    66
    77  USE dimphy
    8   USE mod_grid_phy_lmdz, ONLY: nbp_lon, nbp_lat
     8  USE mod_grid_phy_lmdz, ONLY: nbp_lon, nbp_lat, klon_glo
    99  IMPLICIT NONE
    1010  ! ======================================================================
     
    127127  hadley = 1.E18
    128128  hadday = 1.E18*24.*3600.
    129   dlat = xpi/real(nbp_lat-1)
     129  IF(klon_glo.EQ.1) THEN
     130    dlat = xpi
     131  ELSE
     132    dlat = xpi/real(nbp_lat-1)
     133  ENDIF
    130134  dlon = 2.*xpi/real(nbp_lon)
    131135
  • LMDZ5/trunk/libf/phylmd/iophy.F90

    r2346 r2350  
    7676   
    7777!$OMP MASTER 
    78     ALLOCATE(io_lat(nbp_lat-1/(nbp_lon*(nbp_lat-1))))
    79     io_lat(1)=rlat_glo(1)
    80     io_lat(nbp_lat-1/(nbp_lon*(nbp_lat-1)))=rlat_glo(klon_glo)
    81     IF ((nbp_lon*nbp_lat) > 1) then
     78    ALLOCATE(io_lat(nbp_lat))
     79    IF (klon_glo == 1) THEN
     80      io_lat(1)=rlat_glo(1)
     81    ELSE
     82      io_lat(1)=rlat_glo(1)
     83      io_lat(nbp_lat)=rlat_glo(klon_glo)
    8284      DO i=2,nbp_lat-1
    8385        io_lat(i)=rlat_glo(2+(i-2)*nbp_lon)
Note: See TracChangeset for help on using the changeset viewer.