1 |
module phytrac_m |
module phytrac_m |
2 |
|
|
|
! This module is clean: no C preprocessor directive, no include line. |
|
|
|
|
3 |
IMPLICIT none |
IMPLICIT none |
4 |
|
|
5 |
private |
private |
11 |
nq_phys, pdtphys, u, v, t_seri, paprs, pplay, pmfu, pmfd, pen_u, & |
nq_phys, pdtphys, u, v, t_seri, paprs, pplay, pmfu, pmfd, pen_u, & |
12 |
pde_u, pen_d, pde_d, coefh, fm_therm, entr_therm, yu1, yv1, ftsol, & |
pde_u, pen_d, pde_d, coefh, fm_therm, entr_therm, yu1, yv1, ftsol, & |
13 |
pctsrf, frac_impa, frac_nucl, pphis, pphi, albsol, rh, cldfra, rneb, & |
pctsrf, frac_impa, frac_nucl, pphis, pphi, albsol, rh, cldfra, rneb, & |
14 |
diafra, cldliq, itop_con, ibas_con, pmflxr, pmflxs, prfl, psfl, da, & |
diafra, cldliq, pmflxr, pmflxs, prfl, psfl, da, & |
15 |
phi, mp, upwd, dnwd, tr_seri, zmasse) |
phi, mp, upwd, dnwd, tr_seri, zmasse) |
16 |
|
|
17 |
! From phylmd/phytrac.F, version 1.15 2006/02/21 08:08:30 |
! From phylmd/phytrac.F, version 1.15 2006/02/21 08:08:30 |
20 |
! Foujols, Olivia |
! Foujols, Olivia |
21 |
! Objet : moniteur général des tendances des traceurs |
! Objet : moniteur général des tendances des traceurs |
22 |
|
|
23 |
! Remarques : |
! L'appel de "phytrac" se fait avec "nqmx-2" donc nous avons bien |
|
! 1/ L'appel de "phytrac" se fait avec "nq-2" donc nous avons bien |
|
24 |
! les vrais traceurs (en nombre "nbtr", sans la vapeur d'eau ni l'eau |
! les vrais traceurs (en nombre "nbtr", sans la vapeur d'eau ni l'eau |
25 |
! liquide) dans "phytrac". |
! liquide) dans "phytrac". |
|
! 2/ Le choix du radon et du plomb se fait juste avec un "data" |
|
|
! (peu propre). |
|
|
! Pourrait-on avoir une variable qui indiquerait le type de traceur ? |
|
26 |
|
|
27 |
use dimens_m, only: llm |
use dimens_m, only: llm |
28 |
use indicesol, only: nbsrf |
use indicesol, only: nbsrf |
35 |
use regr_pr_comb_coefoz_m, only: regr_pr_comb_coefoz |
use regr_pr_comb_coefoz_m, only: regr_pr_comb_coefoz |
36 |
use phyetat0_m, only: rlat |
use phyetat0_m, only: rlat |
37 |
use o3_chem_m, only: o3_chem |
use o3_chem_m, only: o3_chem |
38 |
use ini_hist, only: ini_histrac |
use ini_histrac_m, only: ini_histrac |
39 |
use radiornpb_m, only: radiornpb |
use radiornpb_m, only: radiornpb |
40 |
use minmaxqfi_m, only: minmaxqfi |
use minmaxqfi_m, only: minmaxqfi |
41 |
use numer_rec, only: assert |
use numer_rec, only: assert |
42 |
use press_coefoz_m, only: press_coefoz |
use press_coefoz_m, only: press_coefoz |
43 |
|
|
|
! Arguments: |
|
|
|
|
|
! EN ENTREE: |
|
|
|
|
|
! divers: |
|
|
|
|
44 |
logical, intent(in):: rnpb |
logical, intent(in):: rnpb |
45 |
|
|
46 |
integer, intent(in):: nq_phys |
integer, intent(in):: nq_phys |
49 |
integer, intent(in):: itap ! number of calls to "physiq" |
integer, intent(in):: itap ! number of calls to "physiq" |
50 |
integer, intent(in):: lmt_pas ! number of time steps of "physics" per day |
integer, intent(in):: lmt_pas ! number of time steps of "physics" per day |
51 |
integer, intent(in):: julien !jour julien, 1 <= julien <= 360 |
integer, intent(in):: julien !jour julien, 1 <= julien <= 360 |
|
integer itop_con(klon) |
|
|
integer ibas_con(klon) |
|
52 |
real, intent(in):: gmtime ! heure de la journée en fraction de jour |
real, intent(in):: gmtime ! heure de la journée en fraction de jour |
53 |
real, intent(in):: pdtphys ! pas d'integration pour la physique (s) |
real, intent(in):: pdtphys ! pas d'integration pour la physique (s) |
54 |
real, intent(in):: t_seri(klon, llm) ! temperature, in K |
real, intent(in):: t_seri(klon, llm) ! temperature, in K |
454 |
! From phylmd/write_histrac.h, version 1.9 2006/02/21 08:08:30 |
! From phylmd/write_histrac.h, version 1.9 2006/02/21 08:08:30 |
455 |
|
|
456 |
use dimens_m, only: iim, jjm, llm |
use dimens_m, only: iim, jjm, llm |
457 |
use ioipsl, only: histwrite, histsync |
use histcom, only: histsync |
458 |
|
use histwrite_m, only: histwrite |
459 |
use temps, only: itau_phy |
use temps, only: itau_phy |
460 |
use iniadvtrac_m, only: tnom |
use iniadvtrac_m, only: tnom |
461 |
use comgeomphy, only: airephy |
use comgeomphy, only: airephy |
462 |
use dimphy, only: klon |
use dimphy, only: klon |
463 |
use grid_change, only: gr_phy_write_2d, gr_phy_write_3d |
use grid_change, only: gr_phy_write_2d |
464 |
|
use gr_phy_write_3d_m, only: gr_phy_write_3d |
465 |
|
|
466 |
logical, intent(in):: lessivage |
logical, intent(in):: lessivage |
467 |
|
|
474 |
! Variables local to the procedure: |
! Variables local to the procedure: |
475 |
integer it |
integer it |
476 |
integer itau_w ! pas de temps ecriture |
integer itau_w ! pas de temps ecriture |
|
REAL zx_tmp_2d(iim, jjm+1), zx_tmp_3d(iim, jjm+1, llm) |
|
477 |
logical, parameter:: ok_sync = .true. |
logical, parameter:: ok_sync = .true. |
478 |
|
|
479 |
!----------------------------------------------------- |
!----------------------------------------------------- |
500 |
ENDDO |
ENDDO |
501 |
|
|
502 |
CALL histwrite(nid_tra, "pplay", itau_w, gr_phy_write_3d(pplay)) |
CALL histwrite(nid_tra, "pplay", itau_w, gr_phy_write_3d(pplay)) |
503 |
CALL histwrite(nid_tra, "t", itau_w, gr_phy_write_3d(t_seri)) |
CALL histwrite(nid_tra, "T", itau_w, gr_phy_write_3d(t_seri)) |
504 |
|
|
505 |
if (ok_sync) then |
if (ok_sync) then |
506 |
call histsync(nid_tra) |
call histsync(nid_tra) |