[1523] | 1 | MODULE iniphysiq_mod |
---|
| 2 | |
---|
| 3 | CONTAINS |
---|
| 4 | |
---|
[1543] | 5 | subroutine iniphysiq(ii,jj,nlayer, & |
---|
| 6 | nbp, communicator, & |
---|
| 7 | punjours, pdayref,ptimestep, & |
---|
| 8 | rlatudyn,rlatvdyn,rlonudyn,rlonvdyn, & |
---|
| 9 | airedyn,cudyn,cvdyn, & |
---|
[1216] | 10 | prad,pg,pr,pcpp,iflag_phys) |
---|
| 11 | |
---|
[1525] | 12 | use control_mod, only: nday |
---|
[1216] | 13 | use infotrac, only : nqtot ! number of advected tracers |
---|
[1308] | 14 | use planete_mod, only: ini_planete_mod |
---|
[1422] | 15 | USE comvert_mod, ONLY: ap,bp,preff |
---|
[1524] | 16 | use inifis_mod, only: inifis |
---|
[1529] | 17 | use ioipsl_getin_p_mod, only: getin_p |
---|
[1216] | 18 | |
---|
[1564] | 19 | use inigeomphy_mod, only: inigeomphy |
---|
[1563] | 20 | use geometry_mod, only: cell_area, & ! physics grid area (m2) |
---|
| 21 | longitude, & ! longitudes (rad) |
---|
| 22 | latitude ! latitudes (rad) |
---|
| 23 | ! necessary to get klon_omp |
---|
| 24 | USE mod_phys_lmdz_para, ONLY: klon_omp ! number of columns (on local omp grid) |
---|
[1573] | 25 | USE dimphy, ONLY: init_dimphy |
---|
[1563] | 26 | |
---|
[1216] | 27 | implicit none |
---|
[1308] | 28 | include "dimensions.h" |
---|
[1529] | 29 | include "paramet.h" |
---|
| 30 | include "comgeom.h" |
---|
[1395] | 31 | include "iniprint.h" |
---|
[1216] | 32 | |
---|
| 33 | real,intent(in) :: prad ! radius of the planet (m) |
---|
| 34 | real,intent(in) :: pg ! gravitational acceleration (m/s2) |
---|
| 35 | real,intent(in) :: pr ! ! reduced gas constant R/mu |
---|
| 36 | real,intent(in) :: pcpp ! specific heat Cp |
---|
| 37 | real,intent(in) :: punjours ! length (in s) of a standard day |
---|
| 38 | integer,intent(in) :: nlayer ! number of atmospheric layers |
---|
[1395] | 39 | integer,intent(in) :: ii ! number of atmospheric coulumns along longitudes |
---|
| 40 | integer,intent(in) :: jj ! number of atompsheric columns along latitudes |
---|
[1543] | 41 | integer,intent(in) :: nbp ! number of physics columns for this MPI process |
---|
| 42 | integer,intent(in) :: communicator ! MPI communicator |
---|
[1529] | 43 | real,intent(in) :: rlatudyn(jj+1) ! latitudes of the physics grid |
---|
| 44 | real,intent(in) :: rlatvdyn(jj) ! latitude boundaries of the physics grid |
---|
| 45 | real,intent(in) :: rlonvdyn(ii+1) ! longitudes of the physics grid |
---|
| 46 | real,intent(in) :: rlonudyn(ii+1) ! longitude boundaries of the physics grid |
---|
| 47 | real,intent(in) :: airedyn(ii+1,jj+1) ! area of the dynamics grid (m2) |
---|
| 48 | real,intent(in) :: cudyn((ii+1)*(jj+1)) ! cu coeff. (u_covariant = cu * u) |
---|
| 49 | real,intent(in) :: cvdyn((ii+1)*jj) ! cv coeff. (v_covariant = cv * v) |
---|
[1216] | 50 | integer,intent(in) :: pdayref ! reference day of for the simulation |
---|
| 51 | real,intent(in) :: ptimestep !physics time step (s) |
---|
| 52 | integer,intent(in) :: iflag_phys ! type of physics to be called |
---|
| 53 | |
---|
[1563] | 54 | ! the common part for all planetary physics |
---|
| 55 | !------------------------------------------ |
---|
| 56 | ! --> initialize physics distribution, global fields and geometry |
---|
[1573] | 57 | ! (i.e. things in phy_common or dynphy_lonlat) |
---|
[1564] | 58 | CALL inigeomphy(ii,jj,nlayer, & |
---|
[1563] | 59 | nbp, communicator, & |
---|
| 60 | rlatudyn,rlatvdyn, & |
---|
| 61 | rlonudyn,rlonvdyn, & |
---|
| 62 | airedyn,cudyn,cvdyn) |
---|
[1395] | 63 | |
---|
[1573] | 64 | ! the distinct part for all planetary physics (ie. things in phystd) |
---|
[1563] | 65 | !------------------------------------------ |
---|
[1395] | 66 | |
---|
[1563] | 67 | !$OMP PARALLEL |
---|
[1543] | 68 | |
---|
[1563] | 69 | ! copy some fundamental parameters to physics |
---|
| 70 | ! and do some initializations |
---|
[1523] | 71 | |
---|
[1573] | 72 | ! Initialize dimphy module |
---|
| 73 | call init_dimphy(klon_omp,nlayer) |
---|
| 74 | |
---|
[1308] | 75 | ! copy over preff , ap() and bp() |
---|
| 76 | call ini_planete_mod(nlayer,preff,ap,bp) |
---|
| 77 | |
---|
[1525] | 78 | call inifis(klon_omp,nlayer,nqtot,pdayref,punjours,nday,ptimestep, & |
---|
[1542] | 79 | latitude,longitude,cell_area,prad,pg,pr,pcpp) |
---|
[1216] | 80 | |
---|
[1563] | 81 | |
---|
[1216] | 82 | !$OMP END PARALLEL |
---|
| 83 | |
---|
| 84 | end subroutine iniphysiq |
---|
[1523] | 85 | |
---|
| 86 | |
---|
| 87 | END MODULE iniphysiq_mod |
---|