source: trunk/LMDZ.MARS/libf/phymars/meso_inc/meso_inc_les.F @ 333

Last change on this file since 333 was 330, checked in by aslmd, 14 years ago

MESOSCALE: changes related to g95 support. but the model does not compile apparently. notes taken in NOTES.txt but sorry g95 with LMD_MM_MARS no longer supported at least on 64bits machines. LMDZ.MARS: minor changes related to warning while trying to compile with g95.

File size: 2.1 KB
Line 
1         if (.not.callrichsl) then
2       
3             DO ig=1,ngrid
4!! sensible heat flux in W/m2
5
6             hfx(ig) = zflubid(ig)-capcal(ig)*zdtsdif(ig)
7
8!! u star in similarity theory in m/s
9             ust(ig) = 0.4
10     .               * sqrt( pu(ig,1)*pu(ig,1) + pv(ig,1)*pv(ig,1) )
11     .               / log( 1.E+0 + zzlay(ig,1)/z0_default )
12             ENDDO
13
14         else
15
16            DO ig=1,ngrid
17
18! New SL parametrization, correct formulation for hfx :
19
20            hfx(ig) = (pplay(ig,1)/(r*pt(ig,1)))*cpp
21     &        *sqrt(pu(ig,1)*pu(ig,1) + pv(ig,1)*pv(ig,1)
22     &        + (1.2*wmax_th(ig))**2)
23     &        *zcdh(ig)*(tsurf(ig)-zh(ig,1))
24
25! New SL parametrization, ust is more accurately computed in vdif_cd :
26            ust(ig) = sqrt(zcdv(ig)*
27     &   (pu(ig,1)*pu(ig,1) + pv(ig,1)*pv(ig,1) + (0.7*wmax_th(ig))**2)
28     &                     )
29
30            ENDDO   
31
32         endif  !of if callrichsl
33
34!         write (*,*) 'PHYS HFX cp zdts', hfx(100), zflubid(100),
35!     .       capcal(100),
36!     .       zdtsdif(100)
37!         write (*,*) 'PHYS UST', ust(100)
38
39!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
40!!! LES LES
41       IF (flag_LES) THEN       
42
43         write (*,*) '************************************************'
44         write (*,*) '** LES mode: the difv part is only used to'
45         write (*,*) '**  provide HFX and UST to the dynamics'
46         write (*,*) '** NB: - dudif, dvdif, dhdif, dqdif are set to 0'
47         write (*,*) '**     - tsurf is updated'     
48         write (*,*) '************************************************'
49
50         DO ig=1,ngrid
51          wmax_th(ig)=0.  !! no additional gustiness needed in surface layer (see vdifc.F)
52          DO l=1,nlayer
53            zdvdif(ig,l) = 0.
54            zdudif(ig,l) = 0.
55            zdhdif(ig,l) = 0.
56            DO iq=1, nq
57              zdqdif(ig,l,iq) = 0.
58              zdqsdif(ig,iq) = 0. !! sortir de la boucle
59            ENDDO
60          ENDDO
61         ENDDO
62      ENDIF
63!!! LES LES       
64!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Note: See TracBrowser for help on using the repository browser.