source: trunk/LMDZ.MARS/libf/dynphy_lonlat/phymars/iniphysiq_mod.F90 @ 2322

Last change on this file since 2322 was 2322, checked in by mvals, 5 years ago

Mars GCM:
Extent of the transport of the isotopic ratio implemented in the dynamics to all the Van Leer transport schemes used in the physics (for now it only
concerns the tracer HDO).

  • libf/dynphy_lonlat/phymars/: iniphysiq_mod.F90: transmission of the content of variables describing the isotopes defined in the dynamics (precisely by dyn3d_common/infotrac.F90,

which reads traceur.def) to the physics

  • libf/phymars/: phys_state_var_init_mod.F90, tracer_mod.F : initialisation of the variables describing the isotopes in the physics callsedim_mod.F: implementation of the transport of the isotopic ratio in the Van Leer scheme used for sedimentation (applies to hdo ice) co2condens_mod.F: implementation of the transport of the isotopic ratio in the Van Leer scheme used for condensation of CO2 (applies to hdo ice and

vapour)
MV

File size: 3.5 KB
Line 
1MODULE iniphysiq_mod
2
3CONTAINS
4
5subroutine iniphysiq(ii,jj,nlayer, &
6                     nbp, communicator, &
7                     punjours, pdayref,ptimestep, &
8                     rlatudyn,rlatvdyn,rlonudyn,rlonvdyn, &
9                     airedyn,cudyn,cvdyn, &
10                     prad,pg,pr,pcpp,iflag_phys)
11
12use infotrac, only : nqtot, & ! number of advected tracers
13                     tname, & ! tracer names
14                     nqdesc,iqfils,nqperes,nqfils! MVals: variables isotopes
15use comgeomfi_h, only: ini_fillgeom
16use temps_mod, only: day_ini, hour_ini
17use phys_state_var_init_mod, only: phys_state_var_init
18use inigeomphy_mod, only: inigeomphy
19use geometry_mod, only: cell_area, & ! physics grid area (m2)
20                        longitude, & ! longitudes (rad)
21                        latitude ! latitudes (rad)
22! necessary to get klon_omp
23USE mod_phys_lmdz_para, ONLY: klon_omp ! number of columns (on local omp grid)
24USE dimphy, ONLY: init_dimphy
25
26implicit none
27
28include "iniprint.h"
29
30real,intent(in) :: prad ! radius of the planet (m)
31real,intent(in) :: pg ! gravitational acceleration (m/s2)
32real,intent(in) :: pr ! ! reduced gas constant R/mu
33real,intent(in) :: pcpp ! specific heat Cp
34real,intent(in) :: punjours ! length (in s) of a standard day
35integer,intent(in) :: nlayer ! number of atmospheric layers
36integer,intent(in) :: ii ! number of atmospheric coulumns along longitudes
37integer,intent(in) :: jj  ! number of atompsheric columns along latitudes
38integer,intent(in) :: nbp ! number of physics columns for this MPI process
39integer,intent(in) :: communicator ! MPI communicator
40real,intent(in) :: rlatudyn(jj+1) ! latitudes of the physics grid
41real,intent(in) :: rlatvdyn(jj) ! latitude boundaries of the physics grid
42real,intent(in) :: rlonvdyn(ii+1) ! longitudes of the physics grid
43real,intent(in) :: rlonudyn(ii+1) ! longitude boundaries of the physics grid
44real,intent(in) :: airedyn(ii+1,jj+1) ! area of the dynamics grid (m2)
45real,intent(in) :: cudyn((ii+1)*(jj+1)) ! cu coeff. (u_covariant = cu * u)
46real,intent(in) :: cvdyn((ii+1)*jj) ! cv coeff. (v_covariant = cv * v)
47integer,intent(in) :: pdayref ! reference day of for the simulation
48real,intent(in) :: ptimestep !physics time step (s)
49integer,intent(in) :: iflag_phys ! type of physics to be called
50
51  ! the common part for all planetary physics
52  !------------------------------------------
53  ! --> initialize physics distribution, global fields and geometry
54  ! (i.e. things in phy_common or dynphy_lonlat)
55  CALL inigeomphy(ii,jj,nlayer, &
56               nbp, communicator, &
57               rlatudyn,rlatvdyn, &
58               rlonudyn,rlonvdyn, &
59               airedyn,cudyn,cvdyn)
60
61  ! the distinct part for all planetary physics (ie. things in phymars)
62  !------------------------------------------
63
64!$OMP PARALLEL
65 
66! copy some fundamental parameters to physics
67! and do some initializations
68
69! Initialize dimphy module => Now done in physics_distribution_mod
70!call init_dimphy(klon_omp,nlayer)
71
72call phys_state_var_init(klon_omp,nlayer,nqtot,tname, &
73                         day_ini,hour_ini,punjours,ptimestep, &
74                         prad,pg,pr,pcpp, &
75                         nqdesc,iqfils,nqperes,nqfils) ! MVals: variables isotopes
76call ini_fillgeom(klon_omp,latitude,longitude,cell_area)
77! work is needed to put what is in comgeomfi_h in geometry_mod?
78
79call conf_phys(klon_omp,nlayer,nqtot)
80
81! Initialize some "temporal and calendar" related variables
82!CALL init_time(day_ini,hour_ini,punjours,ptimestep)
83
84!$OMP END PARALLEL
85
86end subroutine iniphysiq
87
88
89END MODULE iniphysiq_mod
Note: See TracBrowser for help on using the repository browser.