Ignore:
Timestamp:
Oct 14, 2013, 7:15:25 PM (12 years ago)
Author:
slebonnois
Message:

SL: still some corrections to version 1056

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/dyn3dpar/calfis_p.F

    r1056 r1071  
    256256! to allow for 2D computation of microphys and chemistry
    257257      LOGICAL,save :: flag_moyzon
    258       REAL,dimension(iip1,llm) :: tmpvar
    259       REAL,dimension(iip1,llmp1) :: tmpvarp1
    260       REAL,dimension(llm) :: tmpvarbar
    261       REAL,dimension(llmp1) :: tmpvarbarp1
     258      REAL,allocatable :: tmpvar(:,:)
     259      REAL,allocatable :: tmpvarp1(:,:)
     260      REAL,allocatable :: tmpvarbar(:)
     261      REAL,allocatable :: tmpvarbarp1(:)
    262262
    263263c-----------------------------------------------------------------------
     
    287287        if(moyzon_ch.or.moyzon_mu) then
    288288         flag_moyzon = .true.
     289         allocate(tmpvar(iip1,llm))
     290         allocate(tmpvarp1(iip1,llmp1))
     291         allocate(tmpvarbar(llm))
     292         allocate(tmpvarbarp1(llmp1))
    289293        endif
    290294
     
    310314c------------------------------------------------------------------
    311315c moyennes globales pour les profils de pression et de temperature
     316      if(planet_type.eq."titan") then
    312317        call AllGather_Field(pp,iip1*jjp1,llmp1)
    313318        call AllGather_Field(pteta,iip1*jjp1,llm)
     
    338343        playmoy = preff * (pkmoy/cpp) ** unskap
    339344        call tpot2t_p(1,llm,tetamoy,tmoy,pkmoy)
    340 c------------------------------------------------------------------
     345c-------------------
    341346c + lat index
    342       allocate(klat(klon))
    343       do ig0=1,klon
    344         j=index_j(ig0)
    345         klat(ig0)=j
    346       enddo
     347        allocate(klat(klon))
     348        do ig0=1,klon
     349           j=index_j(ig0)
     350           klat(ig0)=j
     351        enddo
     352      endif   ! planet_type=titan
    347353c------------------------------------------------------------------
    348354
Note: See TracChangeset for help on using the changeset viewer.