source: trunk/LMDZ.MARS/libf/phymars/init_phys_lmdz.F90 @ 1242

Last change on this file since 1242 was 1130, checked in by emillour, 11 years ago

Mars GCM:
Series of changes to enable running in parallel (using LMDZ.COMMON dynamics);
Current LMDZ.MARS can still notheless be compiled and run in serial mode
"as previously".
Summary of main changes:

  • Main programs (newstart, start2archive, xvik) that used to be in dyn3d have been moved to phymars.
  • dyn3d/control.h is now module control_mod.F90
  • rearanged input/outputs routines everywhere to handle serial/MPI cases. physdem.F => phyredem.F90 , phyetat0.F => phyetat0.F90 ; all read/write routines for startfi files are gathered in module iostart.F90
  • added parallelism related routines init_phys_lmdz.F90, comgeomphy.F90, dimphy.F90, iniphysiq.F90, mod_grid_phy_lmdz.F90, mod_phys_lmdz_mpi_data.F90, mod_phys_lmdz_mpi_transfert.F90, mod_phys_lmdz_omp_data.F90, mod_phys_lmdz_omp_transfert.F90, mod_phys_lmdz_para.F90, mod_phys_lmdz_transfert_para.F90 in phymars and mod_const_mpi.F90 in dyn3d (for compliance with parallel case)
  • created generic routines 'planetwide_maxval' and 'planetwide_minval', in module "planetwide_mod", that enable obtaining the min and max of a field over the whole planet.

EM

File size: 685 bytes
Line 
1!
2! $Id$
3!
4SUBROUTINE init_phys_lmdz(iim,jjp1,llm,nb_proc,distrib)
5  USE mod_phys_lmdz_omp_data, only: klon_omp
6  USE mod_grid_phy_lmdz, only: nbp_lev
7  USE mod_phys_lmdz_para, only: init_phys_lmdz_para
8  USE mod_grid_phy_lmdz, only: init_grid_phy_lmdz
9  USE dimphy, ONLY : init_dimphy
10
11  IMPLICIT NONE
12 
13    INTEGER,INTENT(in) :: iim
14    INTEGER,INTENT(in) :: jjp1
15    INTEGER,INTENT(in) :: llm
16    INTEGER,INTENT(in) :: nb_proc
17    INTEGER,INTENT(in) :: distrib(0:nb_proc-1)
18
19
20    CALL init_grid_phy_lmdz(iim,jjp1,llm)
21    CALL init_phys_lmdz_para(iim,jjp1,nb_proc,distrib)
22!$OMP PARALLEL
23    CALL init_dimphy(klon_omp,nbp_lev)
24
25!$OMP END PARALLEL
26 
27END SUBROUTINE init_phys_lmdz 
Note: See TracBrowser for help on using the repository browser.