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

Location:
trunk/LMDZ.COMMON/libf/dyn3dpar
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/dyn3dpar/bands.F90

    r1019 r1543  
    11!
    2 ! $Id: bands.F90 1615 2012-02-10 15:42:26Z emillour $
     2! $Id: bands.F90 2351 2015-08-25 15:14:59Z emillour $
    33!
    44  module Bands
     
    1919 
    2020  subroutine AllocateBands
    21     use parallel_lmdz
     21    USE parallel_lmdz
    2222    implicit none
    2323   
     
    3333 
    3434  subroutine Read_distrib
    35     use parallel_lmdz
     35    USE parallel_lmdz
    3636    implicit none
    3737
     
    9393   SUBROUTINE  Set_Bands
    9494     USE parallel_lmdz
    95 #ifdef CPP_PHYS
    96 ! Ehouarn: what follows is only related to // physics
    97      USE mod_phys_lmdz_para, ONLY : jj_para_begin,jj_para_end
    98 #endif
    9995     IMPLICIT NONE
    10096     INCLUDE 'dimensions.h'   
    101      INTEGER :: i
    102        
     97     INTEGER :: i, ij
     98     INTEGER :: jj_para_begin(0:mpi_size-1)
     99     INTEGER :: jj_para_end(0:mpi_size-1)
     100       
    103101      do i=0,mpi_size-1
    104102         jj_nb_vanleer2(i)=(jjm+1)/mpi_size
     
    106104      enddo
    107105         
    108 #ifdef CPP_PHYS
     106      jj_para_begin(0)=1
     107      ij=distrib_phys(0)+iim-1
     108      jj_para_end(0)=((ij-1)/iim)+1
     109     
     110      DO i=1,mpi_Size-1
     111        ij=ij+1
     112        jj_para_begin(i)=((ij-1)/iim)+1
     113        ij=ij+distrib_phys(i)-1
     114        jj_para_end(i)=((ij-1)/iim)+1
     115      ENDDO
     116 
    109117      do i=0,MPI_Size-1
    110118        jj_Nb_physic(i)=jj_para_end(i)-jj_para_begin(i)+1
     
    127135        endif
    128136      enddo
    129 #endif     
    130137     
    131138    end subroutine Set_Bands
     
    134141    subroutine AdjustBands_caldyn
    135142      use times
    136       use parallel_lmdz
     143      USE parallel_lmdz
    137144      implicit none
    138145
     
    199206    subroutine AdjustBands_vanleer
    200207      use times
    201       use parallel_lmdz
     208      USE parallel_lmdz
    202209      implicit none
    203210
     
    265272    subroutine AdjustBands_dissip
    266273      use times
    267       use parallel_lmdz
     274      USE parallel_lmdz
    268275      implicit none
    269276
  • trunk/LMDZ.COMMON/libf/dyn3dpar/gcm.F

    r1523 r1543  
    1414      USE parallel_lmdz
    1515      USE infotrac
    16 #ifdef CPP_PHYS
    17       USE mod_interface_dyn_phys
    18 #endif
     16!#ifdef CPP_PHYS
     17!      USE mod_interface_dyn_phys
     18!#endif
    1919      USE mod_hallo
    2020      USE Bands
     
    4040      USE mod_phys_lmdz_omp_data, ONLY: klon_omp
    4141      USE dimphy
    42       USE comgeomphy
    4342#endif
    4443      USE comconst_mod, ONLY: daysec,dtvr,dtphys,rad,g,r,cpp
     
    196195      call Read_Distrib
    197196
    198 #ifdef CPP_PHYS
    199         CALL init_phys_lmdz(iim,jjp1,llm,mpi_size,distrib_phys)
     197!#ifdef CPP_PHYS
     198!        CALL init_phys_lmdz(iim,jjp1,llm,mpi_size,distrib_phys)
    200199!#endif
    201200!      CALL set_bands
    202201!#ifdef CPP_PHYS
    203       CALL Init_interface_dyn_phys
    204 #endif
     202!      CALL Init_interface_dyn_phys
     203!#endif
    205204      CALL barrier
    206205
     
    497496!     &                latfi,lonfi,airefi,zcufi,zcvfi,rad,g,r,cpp,
    498497!     &                iflag_phys)
    499          CALL iniphysiq(iim,jjm,llm,daysec,day_ini,dtphys/nsplit_phys,
     498         CALL iniphysiq(iim,jjm,llm,
     499     &                distrib_phys(mpi_rank),comm_lmdz,
     500     &                daysec,day_ini,dtphys/nsplit_phys,
    500501     &                rlatu,rlatv,rlonu,rlonv,aire,cu,cv,rad,g,r,cpp,
    501502     &                iflag_phys)
Note: See TracChangeset for help on using the changeset viewer.