Ignore:
Timestamp:
Dec 14, 2015, 11:43:09 AM (9 years ago)
Author:
Laurent Fairhead
Message:

Merged trunk changes r2298:2396 into testing branch

Location:
LMDZ5/branches/testing
Files:
2 deleted
3 edited
3 copied

Legend:

Unmodified
Added
Removed
  • LMDZ5/branches/testing

  • LMDZ5/branches/testing/libf/dyn3d/gcm.F90

    r2298 r2408  
    2222  USE infotrac
    2323  USE control_mod
    24 
    25 #ifdef INCA
    26   ! Only INCA needs these informations (from the Earth's physics)
    27   USE indice_sol_mod
    28   USE mod_phys_lmdz_para, ONLY : klon_mpi_para_nb
    29 #endif
     24  USE mod_const_mpi, ONLY: COMM_LMDZ
     25
    3026
    3127!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     
    3430  ! dynamique -> physique pour l'initialisation
    3531#ifdef CPP_PHYS
    36   !      USE dimphy
    37   !      USE comgeomphy
     32  USE iniphysiq_mod, ONLY: iniphysiq
    3833#endif
    3934!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     
    8681  include "iniprint.h"
    8782  include "tracstoke.h"
    88 #ifdef INCA
    89   ! Only INCA needs these informations (from the Earth's physics)
    90   !include "indicesol.h"
    91 #endif
    9283
    9384  REAL zdtvr
     
    182173  ! A nettoyer. On ne veut qu'une ou deux routines d'interface
    183174  ! dynamique -> physique pour l'initialisation
    184 #ifdef CPP_PHYS
    185   CALL Init_Phys_lmdz(iim,jjp1,llm,1,(/(jjm-1)*iim+2/))
    186   !      call InitComgeomphy ! now done in iniphysiq
    187 #endif
     175!#ifdef CPP_PHYS
     176!  CALL Init_Phys_lmdz(iim,jjp1,llm,1,(/(jjm-1)*iim+2/))
     177!  !      call InitComgeomphy ! now done in iniphysiq
     178!#endif
    188179!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    189180  !-----------------------------------------------------------------------
     
    209200#endif
    210201  !-----------------------------------------------------------------------
    211 
    212   IF (type_trac == 'inca') THEN
    213 #ifdef INCA
    214      call init_const_lmdz(nbtr,anneeref,dayref,iphysiq,day_step,nday,  &
    215           nbsrf, is_oce,is_sic,is_ter,is_lic)
    216      call init_inca_para(iim,jjm+1,klon,1,klon_mpi_para_nb,0)
    217 #endif
    218   END IF
    219202  !
    220203  !
     
    260243
    261244  endif ! of if (read_start)
    262 
    263   IF (type_trac == 'inca') THEN
    264 #ifdef INCA
    265      call init_inca_dim(klon,llm,iim,jjm, &
    266           rlonu,rlatu,rlonv,rlatv)
    267 #endif
    268   END IF
    269245
    270246
     
    416392     ! Physics:
    417393#ifdef CPP_PHYS
    418      CALL iniphysiq(iim,jjm,llm,daysec,day_ini,dtphys/nsplit_phys, &
    419           rlatu,rlonv,aire,cu,cv,rad,g,r,cpp, &
     394     CALL iniphysiq(iim,jjm,llm, &
     395          (jjm-1)*iim+2,comm_lmdz, &
     396          daysec,day_ini,dtphys/nsplit_phys, &
     397          rlatu,rlatv,rlonu,rlonv,aire,cu,cv,rad,g,r,cpp, &
    420398          iflag_phys)
    421399#endif
  • LMDZ5/branches/testing/libf/dyn3d/leapfrog.F

    r2298 r2408  
    228228   1  CONTINUE ! Matsuno Forward step begins here
    229229
     230c   date: (NB: date remains unchanged for Backward step)
     231c   -----
     232
    230233      jD_cur = jD_ref + day_ini - day_ref +                             &
    231      &          itau/day_step
     234     &          (itau+1)/day_step
    232235      jH_cur = jH_ref + start_time +                                    &
    233      &          mod(itau,day_step)/float(day_step)
     236     &          mod(itau+1,day_step)/float(day_step)
    234237      jD_cur = jD_cur + int(jH_cur)
    235238      jH_cur = jH_cur - int(jH_cur)
     
    277280c-----------------------------------------------------------------------
    278281
    279 c   date:
     282c   date: (NB: only leapfrog step requires recomputing date)
    280283c   -----
     284
     285      IF (leapf) THEN
     286        jD_cur = jD_ref + day_ini - day_ref +
     287     &            (itau+1)/day_step
     288        jH_cur = jH_ref + start_time +
     289     &            mod(itau+1,day_step)/float(day_step)
     290        jD_cur = jD_cur + int(jH_cur)
     291        jH_cur = jH_cur - int(jH_cur)
     292      ENDIF
    281293
    282294
     
    416428!     &              (itau * dtvr / daysec - int(itau * dtvr / daysec))
    417429           jD_cur = jD_ref + day_ini - day_ref +                        &
    418      &          itau/day_step
     430     &          (itau+1)/day_step
    419431
    420432           IF (planet_type .eq."generic") THEN
     
    424436
    425437           jH_cur = jH_ref + start_time +                               &
    426      &              mod(itau,day_step)/float(day_step)
     438     &              mod(itau+1,day_step)/float(day_step)
    427439           jD_cur = jD_cur + int(jH_cur)
    428440           jH_cur = jH_cur - int(jH_cur)
     
    443455         IF (ip_ebil_dyn.ge.1 ) THEN
    444456          ztit='bil dyn'
    445 ! Ehouarn: be careful, diagedyn is Earth-specific (includes ../phylmd/..)!
     457! Ehouarn: be careful, diagedyn is Earth-specific!
    446458           IF (planet_type.eq."earth") THEN
    447 #ifdef CPP_EARTH
    448459            CALL diagedyn(ztit,2,1,1,dtphys
    449460     &    , ucov    , vcov , ps, p ,pk , teta , q(:,:,1), q(:,:,2))
    450 #endif
    451461           ENDIF
    452462         ENDIF ! of IF (ip_ebil_dyn.ge.1 )
Note: See TracChangeset for help on using the changeset viewer.