--- trunk/Sources/phylmd/phytrac.f 2017/10/16 12:35:41 225 +++ trunk/Sources/phylmd/phytrac.f 2017/11/13 11:51:04 241 @@ -8,7 +8,7 @@ contains SUBROUTINE phytrac(julien, gmtime, firstcal, lafin, pdtphys, t_seri, paprs, & - pplay, pmfu, pmfd, pde_u, pen_d, coefh, fm_therm, entr_therm, yu1, & + pplay, pmfu, pmfd, pde_u, pen_d, coefh, cdragh, fm_therm, entr_therm, yu1, & yv1, ftsol, pctsrf, frac_impa, frac_nucl, da, phi, mp, upwd, dnwd, & tr_seri, zmasse, ncid_startphy) @@ -77,9 +77,10 @@ REAL pde_u(klon, llm) ! flux detraine dans le panache montant REAL pen_d(klon, llm) ! flux entraine dans le panache descendant - REAL coefh(klon, llm) ! coeff melange couche limite + REAL coefh(:, 2:) ! (klon, 2:llm) coeff melange couche limite + real cdragh(:) ! (klon) real fm_therm(klon, llm+1), entr_therm(klon, llm) ! thermiques - REAL, intent(in):: yu1(klon), yv1(klon) ! vent au premier niveau + REAL, intent(in):: yu1(:), yv1(:) ! (klon) vent au premier niveau ! Arguments n\'ecessaires pour les sources et puits de traceur : real, intent(in):: ftsol(:, :) ! (klon, nbsrf) surface temperature (K) @@ -279,7 +280,7 @@ DO it=1, nqmx - 2 if (clsol(it)) then ! couche limite avec quantite dans le sol calculee - CALL cltracrn(it, pdtphys, yu1, yv1, coefh, t_seri, ftsol, & + CALL cltracrn(it, pdtphys, yu1, yv1, coefh, cdragh, t_seri, ftsol, & pctsrf, tr_seri(:, :, it), trs(:, it), paprs, pplay, delp, & masktr(1, it), fshtr(1, it), hsoltr(it), tautr(it), & vdeptr(it), rlat, d_tr_cl(1, 1, it), d_trs)