1 | |
---|
2 | ! $Id: $ |
---|
3 | |
---|
4 | MODULE callphysiq_mod |
---|
5 | |
---|
6 | IMPLICIT NONE |
---|
7 | |
---|
8 | CONTAINS |
---|
9 | |
---|
10 | SUBROUTINE call_physiq(klon,llm,nqtot,tname, & |
---|
11 | debut_split,lafin_split, & |
---|
12 | jD_cur,jH_cur_split,zdt_split, & |
---|
13 | zplev_omp,zplay_omp, & |
---|
14 | zpk_omp,zphi_omp,zphis_omp, & |
---|
15 | presnivs_omp, & |
---|
16 | zufi_omp,zvfi_omp,zrfi_omp,ztfi_omp,zqfi_omp, & |
---|
17 | flxwfi_omp,pducov, & |
---|
18 | zdufi_omp,zdvfi_omp,zdtfi_omp,zdqfi_omp,zdpsrf_omp) |
---|
19 | |
---|
20 | |
---|
21 | USE lmdz_grid_phy, ONLY: nbp_lon, nbp_lat |
---|
22 | USE physiq_mod, ONLY: physiq |
---|
23 | IMPLICIT NONE |
---|
24 | |
---|
25 | INTEGER,INTENT(IN) :: klon ! (local) number of atmospheric columns |
---|
26 | INTEGER,INTENT(IN) :: llm ! number of atmospheric layers |
---|
27 | INTEGER,INTENT(IN) :: nqtot ! number of tracers |
---|
28 | CHARACTER(len=*),INTENT(IN) :: tname(nqtot) ! tracer names |
---|
29 | LOGICAL,INTENT(IN) :: debut_split ! .TRUE. if very first CALL to physics |
---|
30 | LOGICAL,INTENT(IN) :: lafin_split ! .TRUE. if last CALL to physics |
---|
31 | REAL,INTENT(IN) :: JD_cur ! Julian day |
---|
32 | REAL,INTENT(IN) :: JH_cur_split ! Julian hour (fraction of day) |
---|
33 | REAL,INTENT(IN) :: zdt_split ! time step over which the physics are evaluated |
---|
34 | REAL,INTENT(IN) :: zplev_omp(klon,llm+1) ! interlayer pressure (Pa) |
---|
35 | REAL,INTENT(IN) :: zplay_omp(klon,llm) ! mid-layer pressure (Pa) |
---|
36 | REAL,INTENT(IN) :: zpk_omp(klon,llm) ! Exner function |
---|
37 | REAL,INTENT(IN) :: zphi_omp(klon,llm) ! geopotential at midlayer |
---|
38 | REAL,INTENT(IN) :: zphis_omp(klon) ! surface geopotential |
---|
39 | REAL,INTENT(IN) :: presnivs_omp(llm) ! approximate pressure of atm. layers |
---|
40 | REAL,INTENT(IN) :: zufi_omp(klon,llm) ! zonal wind (m/s) |
---|
41 | REAL,INTENT(IN) :: zvfi_omp(klon,llm) ! meridional wind (m/s) |
---|
42 | REAL,INTENT(IN) :: zrfi_omp(klon,llm) ! relative wind vorticity, in s-1 |
---|
43 | REAL,INTENT(IN) :: ztfi_omp(klon,llm) ! temperature (K) |
---|
44 | REAL,INTENT(IN) :: zqfi_omp(klon,llm,nqtot) ! tracers (*/kg of air) |
---|
45 | REAL,INTENT(IN) :: flxwfi_omp(klon,llm) ! Vertical mass flux on lower mesh interfaces (kg/s) |
---|
46 | REAL,INTENT(IN) :: pducov(nbp_lon+1,nbp_lat,llm) ! dynamical tendency on ucov |
---|
47 | ! tendencies (in */s) from the physics: |
---|
48 | REAL,INTENT(OUT) :: zdufi_omp(klon,llm) ! tendency on zonal winds |
---|
49 | REAL,INTENT(OUT) :: zdvfi_omp(klon,llm) ! tendency on meridional winds |
---|
50 | REAL,INTENT(OUT) :: zdtfi_omp(klon,llm) ! tendency on temperature |
---|
51 | REAL,INTENT(OUT) :: zdqfi_omp(klon,llm,nqtot) ! tendency on tracers |
---|
52 | REAL,INTENT(OUT) :: zdpsrf_omp(klon) ! tendency on surface pressure |
---|
53 | |
---|
54 | |
---|
55 | ! Call physics package with required inputs/outputs |
---|
56 | CALL physiq(klon, & |
---|
57 | llm, & |
---|
58 | debut_split, & |
---|
59 | lafin_split, & |
---|
60 | zdt_split, & |
---|
61 | zplev_omp, & |
---|
62 | zplay_omp, & |
---|
63 | zphi_omp, & |
---|
64 | zphis_omp, & |
---|
65 | presnivs_omp, & |
---|
66 | zufi_omp, & |
---|
67 | zvfi_omp, & |
---|
68 | ztfi_omp, & |
---|
69 | zqfi_omp, & |
---|
70 | flxwfi_omp, & |
---|
71 | zdufi_omp, & |
---|
72 | zdvfi_omp, & |
---|
73 | zdtfi_omp, & |
---|
74 | zdqfi_omp, & |
---|
75 | zdpsrf_omp) |
---|
76 | |
---|
77 | |
---|
78 | END SUBROUTINE call_physiq |
---|
79 | |
---|
80 | END MODULE callphysiq_mod |
---|