Ignore:
Timestamp:
Apr 22, 2016, 9:02:11 AM (9 years ago)
Author:
emillour
Message:

All models: Further adaptations to keep up with changes in LMDZ5 concerning
physics/dynamics separation:

  • dyn3d:
  • adapted gcm.F so that all physics initializations are now done in iniphysiq.
  • dyn3dpar:
  • adapted gcm.F so that all physics initializations are now done in iniphysiq.
  • updated calfis_p.F to follow up with changes.
  • copied over updated "bands.F90" from LMDZ5.
  • dynphy_lonlat:
  • calfis_p.F90, mod_interface_dyn_phys.F90, follow up of changes in phy_common/mod_* routines
  • phy_common:
  • added "geometry_mod.F90" to store information about the grid (replaces phy*/comgeomphy.F90) and give variables friendlier names: rlond => longitude , rlatd => latitude, airephy => cell_area, cuphy => dx , cvphy => dy
  • added "physics_distribution_mod.F90"
  • updated "mod_grid_phy_lmdz.F90", "mod_phys_lmdz_mpi_data.F90", "mod_phys_lmdz_para.F90", "mod_phys_lmdz_mpi_transfert.F90", "mod_grid_phy_lmdz.F90", "mod_phys_lmdz_omp_data.F90", "mod_phys_lmdz_omp_transfert.F90", "write_field_phy.F90" and "ioipsl_getin_p_mod.F90" to LMDZ5 versions.
  • phy[venus/titan/mars/std]:
  • removed "init_phys_lmdz.F90", "comgeomphy.F90"; adapted routines to use geometry_mod (longitude, latitude, cell_area, etc.)

EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/dyn3d/gcm.F90

    r1523 r1543  
    2525                             ok_dyn_ins,ok_dyn_ave,iecri,periodav,  &
    2626                             less1day,fractday,ndynstep,nsplit_phys
     27  USE mod_const_mpi, ONLY: COMM_LMDZ
    2728  use cpdet_mod, only: ini_cpdet
    2829  USE temps_mod, ONLY: calend,start_time,annee_ref,day_ref, &
    2930                itau_dyn,itau_phy,day_ini,jD_ref,jH_ref,day_end
    3031
    31 #ifdef INCA
    32 ! Only INCA needs these informations (from the Earth's physics)
    33   USE indice_sol_mod
    34   USE mod_phys_lmdz_para, ONLY : klon_mpi_para_nb
    35 #endif
    3632
    3733!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     
    184180! A nettoyer. On ne veut qu'une ou deux routines d'interface
    185181! dynamique -> physique pour l'initialisation
    186 #ifdef CPP_PHYS
    187   CALL init_phys_lmdz(iim,jjp1,llm,1,(/(jjm-1)*iim+2/))
    188 !      call initcomgeomphy ! now done in iniphysiq
    189 #endif
     182!#ifdef CPP_PHYS
     183!  CALL init_phys_lmdz(iim,jjp1,llm,1,(/(jjm-1)*iim+2/))
     184!!      call initcomgeomphy ! now done in iniphysiq
     185!#endif
    190186!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    191187!
     
    225221#endif
    226222!-----------------------------------------------------------------------
    227 
    228   IF (type_trac == 'inca') THEN
    229 #ifdef INCA
    230     call init_const_lmdz(nbtr,anneeref,dayref,iphysiq,day_step,nday, &
    231          nbsrf, is_oce,is_sic,is_ter,is_lic)
    232     call init_inca_para(iim,jjm+1,klon,1,klon_mpi_para_nb,0)
    233 #endif
    234   END IF
    235223  !
    236224  !
     
    281269
    282270  endif ! of if (read_start)
    283 
    284   IF (type_trac == 'inca') THEN
    285 #ifdef INCA
    286      call init_inca_dim(klon,llm,iim,jjm, &
    287           rlonu,rlatu,rlonv,rlatv)
    288 #endif
    289   END IF
    290271
    291272
     
    445426     ! Physics:
    446427#ifdef CPP_PHYS
    447          CALL iniphysiq(iim,jjm,llm,daysec,day_ini,dtphys/nsplit_phys, &
    448                       rlatu,rlatv,rlonu,rlonv,aire,cu,cv,rad,g,r,cpp, &
    449                       iflag_phys)
     428     CALL iniphysiq(iim,jjm,llm, &
     429          (jjm-1)*iim+2,comm_lmdz, &
     430          daysec,day_ini,dtphys/nsplit_phys, &
     431          rlatu,rlatv,rlonu,rlonv,aire,cu,cv,rad,g,r,cpp, &
     432          iflag_phys)
    450433#endif
    451434  ENDIF ! of IF ((iflag_phys==1).or.(iflag_phys>=100))
Note: See TracChangeset for help on using the changeset viewer.