Changeset 557


Ignore:
Timestamp:
Oct 27, 2004, 12:14:46 PM (20 years ago)
Author:
lmdzadmin
Message:

Initialisations diverses heritees de LMDZ.3.3
LF

Location:
LMDZ4/trunk/libf/phylmd
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • LMDZ4/trunk/libf/phylmd/interface_surf.F90

    r524 r557  
    13271327  INTEGER :: ndexct(iim*(jjm+1)),ndexcs(iim*(jjm+1))
    13281328  REAL :: zx_lon(iim,jjm+1), zx_lat(iim,jjm+1), zjulian
    1329   integer :: idayref, itau_w
     1329  INTEGER,save :: idayref
     1330!med  integer :: itau_w
     1331  integer,save :: itau_w
    13301332#include "param_cou.h"
    13311333#include "inc_cpl.h"
     
    13921394!
    13931395    idtime = int(dtime)
    1394     call inicma(npas , nexca, idtime,(jjm+1)*iim)
    1395 
     1396#ifdef CPP_COUPLE
     1397#ifdef CPP_PSMILE
     1398   CALL inicma(iim, (jjm+1))
     1399#else
     1400   call inicma(npas , nexca, idtime,(jjm+1)*iim)
     1401#endif
     1402#endif
    13961403!
    13971404! initialisation sorties netcdf
     
    14971504    if (nisurf == is_oce .and. .not. cumul) then
    14981505      if (check) write(*,*)'rentree fromcpl, itime-1 = ',itime-1
     1506#ifdef CPP_COUPLE
     1507#ifdef CPP_PSMILE
     1508      il_time_secs=(itime-1)*dtime
     1509      CALL fromcpl(il_time_secs, iim, (jjm+1),                           &
     1510     &        read_sst, read_sic, read_sit, read_alb_sic)
     1511#else
    14991512      call fromcpl(itime-1,(jjm+1)*iim,                                  &
    15001513     &        read_sst, read_sic, read_sit, read_alb_sic)
     1514#endif
     1515#endif
    15011516!
    15021517! sorties NETCDF des champs recus
     
    16971712      CALL histsync(nidct)
    16981713! pas utile      IF (lafin) CALL histclo(nidct)
     1714#ifdef CPP_COUPLE
     1715#ifdef CPP_PSMILE
     1716      il_time_secs=(itime-1)*dtime
     1717
     1718      CALL intocpl(il_time_secs, iim, jjm+1, wri_sol_ice, wri_sol_sea, wri_nsol_ice,&
     1719      & wri_nsol_sea, wri_fder_ice, wri_evap_ice, wri_evap_sea, wri_rain, &
     1720      & wri_snow, wri_rcoa, wri_rriv, wri_calv, wri_tauxx, wri_tauyy,     &
     1721      & wri_tauzz, wri_tauxx, wri_tauyy, wri_tauzz,lafin )
     1722#else
    16991723      call intocpl(itime, (jjm+1)*iim, wri_sol_ice, wri_sol_sea, wri_nsol_ice,&
    17001724      & wri_nsol_sea, wri_fder_ice, wri_evap_ice, wri_evap_sea, wri_rain, &
    17011725      & wri_snow, wri_rcoa, wri_rriv, wri_calv, wri_tauxx, wri_tauyy,     &
    17021726      & wri_tauzz, wri_tauxx, wri_tauyy, wri_tauzz,lafin )
     1727#endif
     1728#endif
    17031729!
    17041730      cpl_sols = 0.; cpl_nsol = 0.; cpl_rain = 0.; cpl_snow = 0.
     
    25822608
    25832609#include "YOETHF.inc"
    2584 #include "FCTTRE.inc"
     2610!rv#include "FCTTRE.inc"
    25852611#include "indicesol.inc"
    25862612!IM cf JLD
     
    26392665  logical,save         :: first = .true.,second=.false.
    26402666  real                 :: coeff_rel
     2667#include "FCTTRE.inc"
    26412668
    26422669
  • LMDZ4/trunk/libf/phylmd/physiq.F

    r541 r557  
    3434c   CLEFS CPP POUR LES IO
    3535c   =====================
    36 c #define histhf
     36#define histhf
    3737#define histday
    3838#define histmth
    3939#define histins
    40 c #define histISCCP
    41 c #define histREGDYN
    42 c #define histmthNMC
     40c#define histISCCP
     41#define histREGDYN
     42#define histmthNMC
    4343c======================================================================
    4444c    modif   ( P. Le Van ,  12/10/98 )
     
    982982#include "FCTTRE.h"
    983983c======================================================================
     984!rv
     985      u10m(:,:)=0.
     986      v10m(:,:)=0.
     987      t2m(:,:)=0.
     988      q2m(:,:)=0.
     989      ffonte(:,:)=0.
     990      fqcalving(:,:)=0.
     991      piz_ae(:,:,:)=0.
     992      tau_ae(:,:,:)=0.
     993      cg_ae(:,:,:)=0.
     994      rain_con(:)=0.
     995      snow_con(:)=0.
     996      bl95_b0=0.
     997      bl95_b1=0.
     998!rv
    984999      modname = 'physiq'
    9851000      IF (if_ebil.ge.1) THEN
     
    10041019c======================================================================
    10051020cIM BEG
    1006         DO k=1, nlev
     1021        DO k=1, nlevENS
    10071022          DO l=1, nlevSTD
    10081023c
     
    18701885      entr_therm(:,:)=0.
    18711886c
    1872       print*,'AVANT LA CONVECTION SECHE , iflag_thermals='
     1887      IF(prt_level>9)WRITE(lunout,*)
     1888     .    'AVANT LA CONVECTION SECHE , iflag_thermals='
    18731889     s   ,iflag_thermals,'   nsplit_thermals=',nsplit_thermals
    18741890      if(iflag_thermals.lt.0) then
    18751891c  Rien
    18761892c  ====
    1877          print*,'pas de convection'
     1893         IF(prt_level>9)WRITE(lunout,*)'pas de convection'
    18781894      else if(iflag_thermals.eq.0) then
    18791895
    18801896c  Ajustement sec
    18811897c  ==============
    1882          print*,'ajsec'
     1898         IF(prt_level>9)WRITE(lunout,*)'ajsec'
    18831899         CALL ajsec(paprs, pplay, t_seri,q_seri, d_t_ajs, d_q_ajs)
    18841900         t_seri(:,:) = t_seri(:,:) + d_t_ajs(:,:)
     
    18871903c  Thermiques
    18881904c  ==========
    1889          print*,'JUSTE AVANT , iflag_thermals='
     1905         IF(prt_level>9)WRITE(lunout,*)'JUSTE AVANT , iflag_thermals='
    18901906     s   ,iflag_thermals,'   nsplit_thermals=',nsplit_thermals
    18911907         call calltherm(pdtphys
  • LMDZ4/trunk/libf/phylmd/radlwsw.F

    r524 r557  
    166166      REAL*8 ztopswai(kdlon), zsolswai(kdlon) ! dito, indirect
    167167cjq-end
     168!rv
     169      tauae(:,:,:)=0.
     170      pizae(:,:,:)=0.
     171      cgae(:,:,:)=0.
     172!rv
    168173     
    169174c
     
    546551      REAL*8 ZFSUPAI(KDLON,KFLEV+1)
    547552      REAL*8 ZFSDNAI(KDLON,KFLEV+1)
     553      logical initialized
    548554      SAVE ZFSUPAD, ZFSDNAD, ZFSUPAI, ZFSDNAI ! aerosol fluxes
     555!rv
     556      save flag_aer
     557      data initialized/.false./
    549558cjq-end
     559      if(.not.initialized) then
     560        flag_aer=0.
     561        initialized=.TRUE.
     562      endif
     563!rv
    550564     
    551565c
Note: See TracChangeset for help on using the changeset viewer.