source: LMDZ6/trunk/libf/phylmd/phys_state_var_mod.F90 @ 3409

Last change on this file since 3409 was 3208, checked in by jyg, 7 years ago

Implementation of a first crude model of the
dynamic of wake population.

  • Property copyright set to
    Name of program: LMDZ
    Creation date: 1984
    Version: LMDZ5
    License: CeCILL version 2
    Holder: Laboratoire de m\'et\'eorologie dynamique, CNRS, UMR 8539
    See the license file in the root directory
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 28.1 KB
RevLine 
[1403]1!
2! $Id: phys_state_var_mod.F90 3208 2018-02-16 11:42:18Z acozic $
3!
[909]4      MODULE phys_state_var_mod
5! Variables sauvegardees pour le startphy.nc
6!======================================================================
7!
8!
9!======================================================================
10! Declaration des variables
11      USE dimphy
[2271]12      USE netcdf, only: nf90_fill_real
[952]13      INTEGER, PARAMETER :: nlevSTD=17
[1352]14      INTEGER, PARAMETER :: nlevSTD8=8
15      INTEGER, PARAMETER :: nlevSTD3=3
[952]16      INTEGER, PARAMETER :: nout=3
17      INTEGER, PARAMETER :: napisccp=1
[3150]18      INTEGER, SAVE :: radpas  ! radiation is called every "radpas" step
19      INTEGER, SAVE :: cvpas   ! convection is called every "cvpas" step
20      INTEGER, SAVE :: cvpas_0 ! reference value for cvpas
21      INTEGER, SAVE :: wkpas   ! wake scheme is called every "wkpas" step
[2271]22      REAL, PARAMETER :: missing_val_nf90=nf90_fill_real
[1352]23!$OMP THREADPRIVATE(radpas)
[2707]24!$OMP THREADPRIVATE(cvpas)
[3150]25!$OMP THREADPRIVATE(cvpas_0)
[2730]26!$OMP THREADPRIVATE(wkpas)
[1279]27      REAL, SAVE :: dtime, solaire_etat0
28!$OMP THREADPRIVATE(dtime, solaire_etat0)
[967]29
[2399]30      REAL, ALLOCATABLE, SAVE :: pctsrf(:,:)
31!$OMP THREADPRIVATE(pctsrf)
[909]32      REAL, ALLOCATABLE, SAVE :: ftsol(:,:)
[967]33!$OMP THREADPRIVATE(ftsol)
[2243]34      REAL,ALLOCATABLE,SAVE :: qsol(:),fevap(:,:),z0m(:,:),z0h(:,:),agesno(:,:)
35!$OMP THREADPRIVATE(qsol,fevap,z0m,z0h,agesno)
[2952]36!FC drag des arbres
37      REAL, ALLOCATABLE, SAVE :: treedrg(:,:,:)
38!$OMP THREADPRIVATE(treedrg)
39
[967]40!      character(len=6), SAVE :: ocean
41!!!!!!$OMP THREADPRIVATE(ocean)
42!      logical, SAVE :: ok_veget
43!!!!!!$OMP THREADPRIVATE(ok_veget)
[909]44      REAL, ALLOCATABLE, SAVE :: falb1(:,:), falb2(:,:)
[967]45!$OMP THREADPRIVATE(falb1, falb2)
[2227]46
47!albedo SB >>>
48      REAL, ALLOCATABLE, SAVE :: falb_dif(:,:,:), falb_dir(:,:,:)
49      real, allocatable, save :: chl_con(:)
50!$OMP THREADPRIVATE(falb_dir,falb_dif,chl_con)
51!albedo SB <<<
52
53
[909]54      REAL, ALLOCATABLE, SAVE :: rain_fall(:), snow_fall(:)
[967]55!$OMP THREADPRIVATE( rain_fall, snow_fall)
[909]56      REAL, ALLOCATABLE, SAVE :: solsw(:), sollw(:)
[967]57!$OMP THREADPRIVATE(solsw, sollw)
[909]58      REAL, ALLOCATABLE, SAVE :: radsol(:)
[967]59!$OMP THREADPRIVATE(radsol)
[2366]60      REAL, ALLOCATABLE, SAVE :: swradcorr(:)
61!$OMP THREADPRIVATE(swradcorr)
[967]62
[909]63!clesphy0 param physiq
64!
65! Parametres de l'Orographie a l'Echelle Sous-Maille (OESM):
66!
67      REAL, ALLOCATABLE, SAVE :: zmea(:), zstd(:), zsig(:), zgam(:)
[967]68!$OMP THREADPRIVATE(zmea, zstd, zsig, zgam)
[909]69      REAL, ALLOCATABLE, SAVE :: zthe(:), zpic(:), zval(:)
[967]70!$OMP THREADPRIVATE(zthe, zpic, zval)
[909]71!     REAL tabcntr0(100)
72      REAL, ALLOCATABLE, SAVE :: rugoro(:)
[967]73!$OMP THREADPRIVATE(rugoro)
[909]74      REAL, ALLOCATABLE, SAVE :: t_ancien(:,:), q_ancien(:,:)
[967]75!$OMP THREADPRIVATE(t_ancien, q_ancien)
[2497]76      REAL, ALLOCATABLE, SAVE :: ql_ancien(:,:), qs_ancien(:,:)
77!$OMP THREADPRIVATE(ql_ancien, qs_ancien)
[2499]78      REAL, ALLOCATABLE, SAVE :: prw_ancien(:), prlw_ancien(:), prsw_ancien(:)
79!$OMP THREADPRIVATE(prw_ancien, prlw_ancien, prsw_ancien)
[1054]80      REAL, ALLOCATABLE, SAVE :: u_ancien(:,:), v_ancien(:,:)
81!$OMP THREADPRIVATE(u_ancien, v_ancien)
[1742]82!!! RomP >>>
83      REAL, ALLOCATABLE, SAVE :: tr_ancien(:,:,:)
84!$OMP THREADPRIVATE(tr_ancien)
85!!! RomP <<<
[909]86      LOGICAL, SAVE :: ancien_ok
[967]87!$OMP THREADPRIVATE(ancien_ok)
[909]88      REAL, ALLOCATABLE, SAVE :: clwcon(:,:),rnebcon(:,:)
[967]89!$OMP THREADPRIVATE(clwcon,rnebcon)
[2205]90      REAL, ALLOCATABLE, SAVE :: qtc_cv(:,:),sigt_cv(:,:)
91!$OMP THREADPRIVATE(qtc_cv,sigt_cv)
[909]92      REAL, ALLOCATABLE, SAVE :: ratqs(:,:)
[967]93!$OMP THREADPRIVATE(ratqs)
[909]94      REAL, ALLOCATABLE, SAVE :: pbl_tke(:,:,:) ! turb kinetic energy
[1761]95      REAL, ALLOCATABLE, SAVE :: coefh(:,:,:) ! Kz enthalpie
96      REAL, ALLOCATABLE, SAVE :: coefm(:,:,:) ! Kz momentum
97!$OMP THREADPRIVATE(pbl_tke, coefh,coefm)
[2159]98!nrlmd<
99      REAL, ALLOCATABLE, SAVE :: delta_tsurf(:,:) ! Surface temperature difference inside-outside cold pool
100!$OMP THREADPRIVATE(delta_tsurf)
101!>nrlmd
[927]102      REAL, ALLOCATABLE, SAVE :: zmax0(:), f0(:) !
[967]103!$OMP THREADPRIVATE(zmax0,f0)
[1827]104      REAL, ALLOCATABLE, SAVE :: sig1(:,:), w01(:,:)
105!$OMP THREADPRIVATE(sig1,w01)
[942]106      REAL, ALLOCATABLE, SAVE :: entr_therm(:,:), fm_therm(:,:)
[967]107!$OMP THREADPRIVATE(entr_therm,fm_therm)
[952]108      REAL, ALLOCATABLE, SAVE :: detr_therm(:,:)
[967]109!$OMP THREADPRIVATE(detr_therm)
[952]110!IM 150408
111!     pour phsystoke avec thermiques
112      REAL,ALLOCATABLE,SAVE :: clwcon0th(:,:),rnebcon0th(:,:)
[967]113!$OMP THREADPRIVATE(clwcon0th,rnebcon0th)
[952]114! radiation outputs
[3082]115      REAL,ALLOCATABLE,SAVE :: swdnc0(:,:), swdn0(:,:), swdn(:,:)
116!$OMP THREADPRIVATE(swdnc0,swdn0,swdn)
117      REAL,ALLOCATABLE,SAVE :: swupc0(:,:), swup0(:,:), swup(:,:)
118!$OMP THREADPRIVATE(swupc0, swup0,swup)
[952]119      REAL,ALLOCATABLE,SAVE :: SWdn200clr(:), SWdn200(:)
[967]120!$OMP THREADPRIVATE(SWdn200clr,SWdn200)
[952]121      REAL,ALLOCATABLE,SAVE :: SWup200clr(:), SWup200(:)
[967]122!$OMP THREADPRIVATE(SWup200clr,SWup200)
[3106]123      REAL,ALLOCATABLE,SAVE :: lwdnc0(:,:), lwdn0(:,:), lwdn(:,:)
124!$OMP THREADPRIVATE(lwdnc0,lwdn0,lwdn)
125      REAL,ALLOCATABLE,SAVE :: lwupc0(:,:), lwup0(:,:), lwup(:,:)
126!$OMP THREADPRIVATE(lwupc0,lwup0,lwup)
[952]127      REAL,ALLOCATABLE,SAVE :: LWdn200clr(:), LWdn200(:)
[967]128!$OMP THREADPRIVATE(LWdn200clr,LWdn200)
[952]129      REAL,ALLOCATABLE,SAVE :: LWup200clr(:), LWup200(:)
[967]130!$OMP THREADPRIVATE(LWup200clr,LWup200)
[952]131      REAL,ALLOCATABLE,SAVE :: LWdnTOA(:), LWdnTOAclr(:)
[967]132!$OMP THREADPRIVATE(LWdnTOA,LWdnTOAclr)
[952]133! pressure level
134      REAL,ALLOCATABLE,SAVE :: tsumSTD(:,:,:)
[967]135!$OMP THREADPRIVATE(tsumSTD)
[952]136      REAL,ALLOCATABLE,SAVE :: usumSTD(:,:,:), vsumSTD(:,:,:)
[967]137!$OMP THREADPRIVATE(usumSTD,vsumSTD)
[952]138      REAL,ALLOCATABLE,SAVE :: wsumSTD(:,:,:), phisumSTD(:,:,:)
[967]139!$OMP THREADPRIVATE(wsumSTD,phisumSTD)
[952]140      REAL,ALLOCATABLE,SAVE :: qsumSTD(:,:,:), rhsumSTD(:,:,:)
[967]141!$OMP THREADPRIVATE(qsumSTD,rhsumSTD)
[952]142      REAL,ALLOCATABLE,SAVE :: tnondef(:,:,:)
[967]143!$OMP THREADPRIVATE(tnondef)
[952]144      REAL,ALLOCATABLE,SAVE :: uvsumSTD(:,:,:)
[967]145!$OMP THREADPRIVATE(uvsumSTD)
[952]146      REAL,ALLOCATABLE,SAVE :: vqsumSTD(:,:,:)
[967]147!$OMP THREADPRIVATE(vqsumSTD)
[952]148      REAL,ALLOCATABLE,SAVE :: vTsumSTD(:,:,:)
[967]149!$OMP THREADPRIVATE(vTsumSTD)
[952]150      REAL,ALLOCATABLE,SAVE :: wqsumSTD(:,:,:)
[967]151!$OMP THREADPRIVATE(wqsumSTD)
[952]152      REAL,ALLOCATABLE,SAVE :: vphisumSTD(:,:,:)
[967]153!$OMP THREADPRIVATE(vphisumSTD)
[952]154      REAL,ALLOCATABLE,SAVE :: wTsumSTD(:,:,:)
[967]155!$OMP THREADPRIVATE(wTsumSTD)
[952]156      REAL,ALLOCATABLE,SAVE :: u2sumSTD(:,:,:)
[967]157!$OMP THREADPRIVATE(u2sumSTD)
[952]158      REAL,ALLOCATABLE,SAVE :: v2sumSTD(:,:,:)
[967]159!$OMP THREADPRIVATE(v2sumSTD)
[952]160      REAL,ALLOCATABLE,SAVE :: T2sumSTD(:,:,:)
[967]161!$OMP THREADPRIVATE(T2sumSTD)
[1398]162      REAL,ALLOCATABLE,SAVE :: O3sumSTD(:,:,:), O3daysumSTD(:,:,:)
163!$OMP THREADPRIVATE(O3sumSTD,O3daysumSTD)
[1352]164!IM begin
165      REAL,ALLOCATABLE,SAVE :: wlevSTD(:,:), ulevSTD(:,:), vlevSTD(:,:)
[1362]166!$OMP THREADPRIVATE(wlevSTD,ulevSTD,vlevSTD)
[1352]167      REAL,ALLOCATABLE,SAVE :: tlevSTD(:,:), qlevSTD(:,:), rhlevSTD(:,:)
[1362]168!$OMP THREADPRIVATE(tlevSTD,qlevSTD,rhlevSTD)
[1352]169      REAL,ALLOCATABLE,SAVE :: philevSTD(:,:)
[1362]170!$OMP THREADPRIVATE(philevSTD)
[1352]171      REAL,ALLOCATABLE,SAVE :: uvSTD(:,:)
[1362]172!$OMP THREADPRIVATE(uvSTD)
[1352]173      REAL,ALLOCATABLE,SAVE :: vqSTD(:,:)
[1362]174!$OMP THREADPRIVATE(vqSTD)
[1352]175      REAL,ALLOCATABLE,SAVE :: vTSTD(:,:)
[1362]176!$OMP THREADPRIVATE(vTSTD)
[1352]177      REAL,ALLOCATABLE,SAVE :: wqSTD(:,:)
[1362]178!$OMP THREADPRIVATE(wqSTD)
[1352]179      REAL,ALLOCATABLE,SAVE :: vphiSTD(:,:)
[1362]180!$OMP THREADPRIVATE(vphiSTD)
[1352]181      REAL,ALLOCATABLE,SAVE :: wTSTD(:,:)
[1362]182!$OMP THREADPRIVATE(wTSTD)
[1352]183      REAL,ALLOCATABLE,SAVE :: u2STD(:,:)
[1362]184!$OMP THREADPRIVATE(u2STD)
[1352]185      REAL,ALLOCATABLE,SAVE :: v2STD(:,:)
[1362]186!$OMP THREADPRIVATE(v2STD)
[1352]187      REAL,ALLOCATABLE,SAVE :: T2STD(:,:)
[1362]188!$OMP THREADPRIVATE(T2STD)
[1398]189      REAL,ALLOCATABLE,SAVE :: O3STD(:,:), O3daySTD(:,:)
190!$OMP THREADPRIVATE(O3STD,O3daySTD)
[1352]191!IM end
[952]192      INTEGER,ALLOCATABLE,SAVE :: seed_old(:,:)
[967]193!$OMP THREADPRIVATE(seed_old)
[952]194      REAL,ALLOCATABLE,SAVE :: zuthe(:),zvthe(:)
[967]195!$OMP THREADPRIVATE(zuthe,zvthe)
[952]196      REAL,ALLOCATABLE,SAVE :: alb_neig(:)
[967]197!$OMP THREADPRIVATE(alb_neig)
[952]198!cloud base mass flux
[1398]199      REAL,ALLOCATABLE,SAVE :: ema_cbmf(:)
200!$OMP THREADPRIVATE(ema_cbmf)
[952]201!cloud base pressure & cloud top pressure
202      REAL,ALLOCATABLE,SAVE :: ema_pcb(:), ema_pct(:)
[967]203!$OMP THREADPRIVATE(ema_pcb,ema_pct)
[952]204      REAL,ALLOCATABLE,SAVE :: Ma(:,:)        ! undilute upward mass flux
[967]205!$OMP THREADPRIVATE(Ma)
[952]206      REAL,ALLOCATABLE,SAVE :: qcondc(:,:)    ! in-cld water content from convect
[967]207!$OMP THREADPRIVATE(qcondc)
[952]208      REAL,ALLOCATABLE,SAVE :: wd(:) ! sb
[967]209!$OMP THREADPRIVATE(wd)
[952]210      REAL,ALLOCATABLE,SAVE :: sigd(:)
[967]211!$OMP THREADPRIVATE(sigd)
[952]212!
213      REAL,ALLOCATABLE,SAVE :: cin(:)
[967]214!$OMP THREADPRIVATE(cin)
[2635]215! ftd : convective heating due to unsaturated downdraughts
[952]216      REAL,ALLOCATABLE,SAVE :: ftd(:,:)
[967]217!$OMP THREADPRIVATE(ftd)
[2635]218! fqd : convective moistening due to unsaturated downdraughts
[952]219      REAL,ALLOCATABLE,SAVE :: fqd(:,:)     
[967]220!$OMP THREADPRIVATE(fqd)
[952]221!34EK
222! -- Variables de controle de ALE et ALP
223!ALE : Energie disponible pour soulevement : utilisee par la
224!      convection d'Emanuel pour le declenchement et la regulation
225      REAL,ALLOCATABLE,SAVE :: ALE(:)
[967]226!$OMP THREADPRIVATE(ALE)
[952]227!ALP : Puissance  disponible pour soulevement
228      REAL,ALLOCATABLE,SAVE :: ALP(:)
[967]229!$OMP THREADPRIVATE(ALP)
[952]230!
231! nouvelles variables pour le couplage convection-couche limite
232      REAL,ALLOCATABLE,SAVE :: Ale_bl(:)
[967]233!$OMP THREADPRIVATE(Ale_bl)
[952]234      REAL,ALLOCATABLE,SAVE :: Alp_bl(:)
[967]235!$OMP THREADPRIVATE(Alp_bl)
[952]236      INTEGER,ALLOCATABLE,SAVE :: lalim_conv(:)
[967]237!$OMP THREADPRIVATE(lalim_conv)
[952]238      REAL,ALLOCATABLE,SAVE :: wght_th(:,:)
[967]239!$OMP THREADPRIVATE(wght_th)
[3080]240      REAL,ALLOCATABLE,SAVE    :: ale_wake(:)
241!$OMP THREADPRIVATE(ale_wake)
242      REAL,ALLOCATABLE,SAVE    :: ale_bl_stat(:)
243!$OMP THREADPRIVATE(ale_bl_stat)
[952]244!
245! variables de la wake
246! wake_deltat : ecart de temperature avec la zone non perturbee
247! wake_deltaq : ecart d'humidite avec la zone non perturbee
[2635]248! wake_s      : fraction surfacique occupee par la poche froide
[3208]249! awake_dens  : number of active wakes per unit area
[2635]250! wake_dens   : number of wakes per unit area
251! wake_occ    : occurence of wakes (= 1 if wakes occur, =0 otherwise)
[952]252! wake_Cstar  : vitesse d'etalement de la poche
[1403]253! wake_pe     : wake potential energy - WAPE
[952]254! wake_fip    : Gust Front Impinging power - ALP
255      REAL,ALLOCATABLE,SAVE :: wake_deltat(:,:)
[967]256!$OMP THREADPRIVATE(wake_deltat)
[952]257      REAL,ALLOCATABLE,SAVE :: wake_deltaq(:,:)
[967]258!$OMP THREADPRIVATE(wake_deltaq)
[2635]259      REAL,ALLOCATABLE,SAVE :: wake_s(:)
260!$OMP THREADPRIVATE(wake_s)
[3208]261      REAL,ALLOCATABLE,SAVE :: awake_dens(:), wake_dens(:)
262!$OMP THREADPRIVATE(awake_dens, wake_dens)
[952]263      REAL,ALLOCATABLE,SAVE :: wake_Cstar(:)
[967]264!$OMP THREADPRIVATE(wake_Cstar)
[1403]265      REAL,ALLOCATABLE,SAVE :: wake_pe(:)
266!$OMP THREADPRIVATE(wake_pe)
[952]267      REAL,ALLOCATABLE,SAVE :: wake_fip(:)
[967]268!$OMP THREADPRIVATE(wake_fip)
[952]269!
[2159]270!jyg<
271! variables related to the spitting of the PBL between wake and
272! off-wake regions.
273! wake_delta_pbl_TKE : difference TKE_w - TKE_x
274      REAL,ALLOCATABLE,SAVE :: wake_delta_pbl_TKE(:,:,:)
275!$OMP THREADPRIVATE(wake_delta_pbl_TKE)
276!>jyg
277!
[952]278! pfrac_impa : Produits des coefs lessivage impaction
279! pfrac_nucl : Produits des coefs lessivage nucleation
280! pfrac_1nucl: Produits des coefs lessi nucl (alpha = 1)
281      REAL,ALLOCATABLE,SAVE :: pfrac_impa(:,:), pfrac_nucl(:,:)
[967]282!$OMP THREADPRIVATE(pfrac_impa,pfrac_nucl)
[952]283      REAL,ALLOCATABLE,SAVE :: pfrac_1nucl(:,:)
[967]284!$OMP THREADPRIVATE(pfrac_1nucl)
[952]285!
286      REAL,ALLOCATABLE,SAVE :: total_rain(:), nday_rain(:) 
[967]287!$OMP THREADPRIVATE(total_rain,nday_rain)
[952]288! albsol1: albedo du sol total pour SW visible
289! albsol2: albedo du sol total pour SW proche IR
290      REAL,ALLOCATABLE,SAVE :: albsol1(:), albsol2(:)
[967]291!$OMP THREADPRIVATE(albsol1,albsol2)
[1279]292
[2227]293!albedo SB >>>
294      REAL,ALLOCATABLE,SAVE :: albsol_dif(:,:),albsol_dir(:,:)
295!$OMP THREADPRIVATE(albsol_dif,albsol_dir)
296!albedo SB <<<
297
298
[1279]299      REAL, ALLOCATABLE, SAVE:: wo(:, :, :)
300      ! column-density of ozone in a layer, in kilo-Dobsons
301      ! Third dimension has size 1 or 2.
302      ! "wo(:, :, 1)" is for the average day-night field,
303      ! "wo(:, :, 2)" is for daylight time.
304      !$OMP THREADPRIVATE(wo)
305
[952]306! heat : chauffage solaire
307! heat0: chauffage solaire ciel clair
308! cool : refroidissement infrarouge
309! cool0 : refroidissement infrarouge ciel clair
310! sollwdown : downward LW flux at surface
311! sollwdownclr : downward CS LW flux at surface
312! toplwdown : downward CS LW flux at TOA
313! toplwdownclr : downward CS LW flux at TOA
314      REAL,ALLOCATABLE,SAVE :: clwcon0(:,:),rnebcon0(:,:)
[967]315!$OMP THREADPRIVATE(clwcon0,rnebcon0)
[952]316      REAL,ALLOCATABLE,SAVE :: heat(:,:)   
[967]317!$OMP THREADPRIVATE(heat)
[952]318      REAL,ALLOCATABLE,SAVE :: heat0(:,:)
[967]319!$OMP THREADPRIVATE(heat0)
[952]320      REAL,ALLOCATABLE,SAVE :: cool(:,:)
[967]321!$OMP THREADPRIVATE(cool)
[952]322      REAL,ALLOCATABLE,SAVE :: cool0(:,:)
[967]323!$OMP THREADPRIVATE(cool0)
[952]324      REAL,ALLOCATABLE,SAVE :: topsw(:), toplw(:)
[967]325!$OMP THREADPRIVATE(topsw,toplw)
[952]326      REAL,ALLOCATABLE,SAVE :: sollwdown(:)
[967]327!$OMP THREADPRIVATE(sollwdown)
[2240]328      REAL,ALLOCATABLE,SAVE :: gustiness(:)
329!$OMP THREADPRIVATE(gustiness)
[952]330      REAL,ALLOCATABLE,SAVE :: sollwdownclr(:)
[967]331!$OMP THREADPRIVATE(sollwdownclr)
[952]332      REAL,ALLOCATABLE,SAVE :: toplwdown(:)
[967]333!$OMP THREADPRIVATE(toplwdown)
[952]334      REAL,ALLOCATABLE,SAVE :: toplwdownclr(:)
[967]335!$OMP THREADPRIVATE(toplwdownclr)
[952]336      REAL,ALLOCATABLE,SAVE :: topsw0(:),toplw0(:),solsw0(:),sollw0(:)
[967]337!$OMP THREADPRIVATE(topsw0,toplw0,solsw0,sollw0)
[952]338      REAL,ALLOCATABLE,SAVE :: albpla(:)
[967]339!$OMP THREADPRIVATE(albpla)
[1539]340
341!IM ajout variables CFMIP2/CMIP5
342      REAL,ALLOCATABLE,SAVE :: heatp(:,:), coolp(:,:)
343!$OMP THREADPRIVATE(heatp, coolp)
344      REAL,ALLOCATABLE,SAVE :: heat0p(:,:), cool0p(:,:)
345!$OMP THREADPRIVATE(heat0p, cool0p)
346      REAL,ALLOCATABLE,SAVE :: radsolp(:), topswp(:), toplwp(:)
347!$OMP THREADPRIVATE(radsolp, topswp, toplwp)
348      REAL,ALLOCATABLE,SAVE :: albplap(:)
349!$OMP THREADPRIVATE(albplap)
350      REAL,ALLOCATABLE,SAVE :: solswp(:), sollwp(:)
351!$OMP THREADPRIVATE(solswp, sollwp)
352      REAL,ALLOCATABLE,SAVE :: sollwdownp(:)
353!$OMP THREADPRIVATE(sollwdownp)
354      REAL,ALLOCATABLE,SAVE :: topsw0p(:),toplw0p(:)
355      REAL,ALLOCATABLE,SAVE :: solsw0p(:),sollw0p(:)
356!$OMP THREADPRIVATE(topsw0p,toplw0p,solsw0p,sollw0p)
[3106]357      REAL,ALLOCATABLE,SAVE :: lwdnc0p(:,:), lwdn0p(:,:), lwdnp(:,:)
358      REAL,ALLOCATABLE,SAVE :: lwupc0p(:,:), lwup0p(:,:), lwupp(:,:)
359!$OMP THREADPRIVATE(lwdnc0p, lwdn0p, lwdnp, lwupc0p, lwup0p, lwupp)
[3082]360      REAL,ALLOCATABLE,SAVE :: swdnc0p(:,:), swdn0p(:,:), swdnp(:,:)
361      REAL,ALLOCATABLE,SAVE :: swupc0p(:,:), swup0p(:,:), swupp(:,:)
362!$OMP THREADPRIVATE(swdnc0p, swdn0p, swdnp, swupc0p, swup0p, swupp)
[1539]363
[952]364! pbase : cloud base pressure
365! bbase : cloud base buoyancy
366      REAL,ALLOCATABLE,SAVE :: cape(:)
[967]367!$OMP THREADPRIVATE(cape)
[952]368      REAL,ALLOCATABLE,SAVE :: pbase(:)
[967]369!$OMP THREADPRIVATE(pbase)
[952]370      REAL,ALLOCATABLE,SAVE :: bbase(:)
[967]371!$OMP THREADPRIVATE(bbase)
[952]372!
373      REAL,SAVE,ALLOCATABLE :: zqasc(:,:)
[967]374!$OMP THREADPRIVATE( zqasc)
[952]375      INTEGER,ALLOCATABLE,SAVE :: ibas_con(:), itop_con(:)
[967]376!$OMP THREADPRIVATE(ibas_con,itop_con)
[952]377      REAL,SAVE,ALLOCATABLE :: rain_con(:)
[967]378!$OMP THREADPRIVATE(rain_con)
[952]379      REAL,SAVE,ALLOCATABLE :: snow_con(:)
[967]380!$OMP THREADPRIVATE(snow_con)
[952]381!
382      REAL,SAVE,ALLOCATABLE :: rlonPOS(:)
[967]383!$OMP THREADPRIVATE(rlonPOS)
[952]384      REAL,SAVE,ALLOCATABLE :: newsst(:)
[967]385!$OMP THREADPRIVATE(newsst)
[1813]386      REAL,SAVE,ALLOCATABLE :: ustar(:,:),u10m(:,:), v10m(:,:),wstar(:,:)
387!$OMP THREADPRIVATE(ustar,u10m,v10m,wstar)
[952]388!
389! ok_ade=T -ADE=topswad-topsw
390! ok_aie=T ->
391!       ok_ade=T -AIE=topswai-topswad
[1279]392!       ok_ade=F -AIE=topswai-topsw
[952]393!
394!topswad, solswad : Aerosol direct effect
395      REAL,SAVE,ALLOCATABLE :: topswad(:), solswad(:)
[967]396!$OMP THREADPRIVATE(topswad,solswad)
[952]397!topswai, solswai : Aerosol indirect effect
398      REAL,SAVE,ALLOCATABLE :: topswai(:), solswai(:)
[967]399!$OMP THREADPRIVATE(topswai,solswai)
[959]400
[1279]401      REAL,SAVE,ALLOCATABLE :: tau_aero(:,:,:,:), piz_aero(:,:,:,:), cg_aero(:,:,:,:)
402!$OMP THREADPRIVATE(tau_aero, piz_aero, cg_aero)
[2146]403      REAL,SAVE,ALLOCATABLE :: tau_aero_sw_rrtm(:,:,:,:), piz_aero_sw_rrtm(:,:,:,:), cg_aero_sw_rrtm(:,:,:,:)
404!$OMP THREADPRIVATE(tau_aero_sw_rrtm, piz_aero_sw_rrtm, cg_aero_sw_rrtm)
405      REAL,SAVE,ALLOCATABLE :: tau_aero_lw_rrtm(:,:,:,:), piz_aero_lw_rrtm(:,:,:,:), cg_aero_lw_rrtm(:,:,:,:)
406!$OMP THREADPRIVATE(tau_aero_lw_rrtm, piz_aero_lw_rrtm, cg_aero_lw_rrtm)
[952]407      REAL,SAVE,ALLOCATABLE :: ccm(:,:,:)
[967]408!$OMP THREADPRIVATE(ccm)
[952]409
[1638]410!!! nrlmd le 10/04/2012
411      REAL,SAVE,ALLOCATABLE :: ale_bl_trig(:)
412!$OMP THREADPRIVATE(ale_bl_trig)
413!!! fin nrlmd le 10/04/2012
414
[2333]415      REAL, ALLOCATABLE, SAVE:: du_gwd_rando(:, :), du_gwd_front(:, :)
416      !$OMP THREADPRIVATE(du_gwd_rando, du_gwd_front)
[1938]417      ! tendencies on wind due to gravity waves
418
[909]419CONTAINS
420
421!======================================================================
[1279]422SUBROUTINE phys_state_var_init(read_climoz)
[1785]423USE dimphy
424USE aero_mod
[2320]425USE infotrac_phy, ONLY : nbtr
[1785]426USE indice_sol_mod
[909]427IMPLICIT NONE
[1279]428
429integer, intent(in)::  read_climoz
430! read ozone climatology
431! Allowed values are 0, 1 and 2
432! 0: do not read an ozone climatology
433! 1: read a single ozone climatology that will be used day and night
434! 2: read two ozone climatologies, the average day and night
435! climatology and the daylight climatology
436
[1938]437include "clesphys.h"
[2399]438
[952]439      ALLOCATE(pctsrf(klon,nbsrf))
440      ALLOCATE(ftsol(klon,nbsrf))
[2243]441      ALLOCATE(qsol(klon),fevap(klon,nbsrf))
442      ALLOCATE(z0m(klon,nbsrf+1),z0h(klon,nbsrf+1),agesno(klon,nbsrf))
[2952]443!FC
444      ALLOCATE(treedrg(klon,klev,nbsrf))
[952]445      ALLOCATE(falb1(klon,nbsrf))
446      ALLOCATE(falb2(klon,nbsrf))
[2227]447!albedo SB >>>
448      ALLOCATE(falb_dir(klon,nsw,nbsrf),falb_dif(klon,nsw,nbsrf))
449      ALLOCATE(chl_con(klon))
450!albedo SB <<<
[952]451      ALLOCATE(rain_fall(klon))
452      ALLOCATE(snow_fall(klon))
[909]453      ALLOCATE(solsw(klon), sollw(klon))
[952]454      ALLOCATE(radsol(klon))
[2366]455      ALLOCATE(swradcorr(klon))
[952]456      ALLOCATE(zmea(klon), zstd(klon), zsig(klon), zgam(klon))
457      ALLOCATE(zthe(klon), zpic(klon), zval(klon))
[909]458
[952]459      ALLOCATE(rugoro(klon))
460      ALLOCATE(t_ancien(klon,klev), q_ancien(klon,klev))
[2497]461      ALLOCATE(ql_ancien(klon,klev), qs_ancien(klon,klev))
[2499]462      ALLOCATE(prw_ancien(klon), prlw_ancien(klon), prsw_ancien(klon))
[1054]463      ALLOCATE(u_ancien(klon,klev), v_ancien(klon,klev))
[1742]464!!! Rom P >>>
465      ALLOCATE(tr_ancien(klon,klev,nbtr))
466!!! Rom P <<<
[952]467      ALLOCATE(clwcon(klon,klev),rnebcon(klon,klev))
[2205]468      ALLOCATE(qtc_cv(klon,klev),sigt_cv(klon,klev))
[952]469      ALLOCATE(ratqs(klon,klev))
[1761]470      ALLOCATE(pbl_tke(klon,klev+1,nbsrf+1))
[2159]471!nrlmd<
472      ALLOCATE(delta_tsurf(klon,nbsrf))
473!>nrlmd
[1761]474      ALLOCATE(coefh(klon,klev+1,nbsrf+1))
475      ALLOCATE(coefm(klon,klev+1,nbsrf+1))
[927]476      ALLOCATE(zmax0(klon), f0(klon))
[1827]477      ALLOCATE(sig1(klon,klev), w01(klon,klev))
[942]478      ALLOCATE(entr_therm(klon,klev), fm_therm(klon,klev+1))
[952]479      ALLOCATE(detr_therm(klon,klev))
480!     pour phsystoke avec thermiques
481      ALLOCATE(clwcon0th(klon,klev),rnebcon0th(klon,klev))
482! radiation outputs
[3082]483      ALLOCATE(swdnc0(klon,klevp1), swdn0(klon,klevp1), swdn(klon,klevp1))
484      ALLOCATE(swupc0(klon,klevp1), swup0(klon,klevp1), swup(klon,klevp1))
[3106]485      ALLOCATE(lwdnc0(klon,klevp1), lwdn0(klon,klevp1), lwdn(klon,klevp1))
486      ALLOCATE(lwupc0(klon,klevp1), lwup0(klon,klevp1), lwup(klon,klevp1))
[952]487      ALLOCATE(SWdn200clr(klon), SWdn200(klon))
488      ALLOCATE(SWup200clr(klon), SWup200(klon))
489      ALLOCATE(LWdn200clr(klon), LWdn200(klon))
490      ALLOCATE(LWup200clr(klon), LWup200(klon))
491      ALLOCATE(LWdnTOA(klon), LWdnTOAclr(klon))
492! pressure level
493      ALLOCATE(tsumSTD(klon,nlevSTD,nout))
494      ALLOCATE(usumSTD(klon,nlevSTD,nout), vsumSTD(klon,nlevSTD,nout))
495      ALLOCATE(wsumSTD(klon,nlevSTD,nout), phisumSTD(klon,nlevSTD,nout))
496      ALLOCATE(qsumSTD(klon,nlevSTD,nout), rhsumSTD(klon,nlevSTD,nout))
497      ALLOCATE(tnondef(klon,nlevSTD,nout))
498      ALLOCATE(uvsumSTD(klon,nlevSTD,nout))
499      ALLOCATE(vqsumSTD(klon,nlevSTD,nout))
500      ALLOCATE(vTsumSTD(klon,nlevSTD,nout))
501      ALLOCATE(wqsumSTD(klon,nlevSTD,nout))
502      ALLOCATE(vphisumSTD(klon,nlevSTD,nout))
503      ALLOCATE(wTsumSTD(klon,nlevSTD,nout))
504      ALLOCATE(u2sumSTD(klon,nlevSTD,nout))
505      ALLOCATE(v2sumSTD(klon,nlevSTD,nout))
506      ALLOCATE(T2sumSTD(klon,nlevSTD,nout))
[1398]507      ALLOCATE(O3sumSTD(klon,nlevSTD,nout))
508      ALLOCATE(O3daysumSTD(klon,nlevSTD,nout))
[1352]509!IM beg
510      ALLOCATE(wlevSTD(klon,nlevSTD), ulevSTD(klon,nlevSTD), vlevSTD(klon,nlevSTD))
511      ALLOCATE(tlevSTD(klon,nlevSTD), qlevSTD(klon,nlevSTD), rhlevSTD(klon,nlevSTD))
512      ALLOCATE(philevSTD(klon,nlevSTD))
513      ALLOCATE(uvSTD(klon,nlevSTD),vqSTD(klon,nlevSTD))
514      ALLOCATE(vTSTD(klon,nlevSTD),wqSTD(klon,nlevSTD))
515      ALLOCATE(vphiSTD(klon,nlevSTD),wTSTD(klon,nlevSTD))
516      ALLOCATE(u2STD(klon,nlevSTD),v2STD(klon,nlevSTD))
517      ALLOCATE(T2STD(klon,nlevSTD))
[1398]518      ALLOCATE(O3STD(klon,nlevSTD))
519      ALLOCATE(O3daySTD(klon,nlevSTD))
[1352]520!IM end
[952]521      ALLOCATE(seed_old(klon,napisccp))
522      ALLOCATE(zuthe(klon),zvthe(klon))
523      ALLOCATE(alb_neig(klon))
524!cloud base mass flux
[1398]525      ALLOCATE(ema_cbmf(klon))
[952]526!cloud base pressure & cloud top pressure
527      ALLOCATE(ema_pcb(klon), ema_pct(klon))
528!
529      ALLOCATE(Ma(klon,klev))
530      ALLOCATE(qcondc(klon,klev))
531      ALLOCATE(wd(klon))
532      ALLOCATE(sigd(klon))
533      ALLOCATE(cin(klon), ALE(klon), ALP(klon))
534      ALLOCATE(ftd(klon,klev), fqd(klon,klev))
535      ALLOCATE(Ale_bl(klon))
[3080]536      ALLOCATE(ale_wake(klon))
537      ALLOCATE(ale_bl_stat(klon))
[952]538      ALLOCATE(Alp_bl(klon))
539      ALLOCATE(lalim_conv(klon))
540      ALLOCATE(wght_th(klon,klev))
541      ALLOCATE(wake_deltat(klon,klev), wake_deltaq(klon,klev))
[3208]542      ALLOCATE(wake_s(klon), awake_dens(klon), wake_dens(klon))
[2635]543      ALLOCATE(wake_Cstar(klon))
[1403]544      ALLOCATE(wake_pe(klon), wake_fip(klon))
[2159]545!jyg<
[2181]546      ALLOCATE(wake_delta_pbl_TKE(klon,klev+1,nbsrf+1))
[2159]547!>jyg
[952]548      ALLOCATE(pfrac_impa(klon,klev), pfrac_nucl(klon,klev))
549      ALLOCATE(pfrac_1nucl(klon,klev))
550      ALLOCATE(total_rain(klon), nday_rain(klon))
551      ALLOCATE(albsol1(klon), albsol2(klon))
[2227]552!albedo SB >>>
553      ALLOCATE(albsol_dir(klon,nsw),albsol_dif(klon,nsw))
554!albedo SB <<<
[1279]555
556      if (read_climoz <= 1) then
557         ALLOCATE(wo(klon,klev, 1))
558      else
559         ! read_climoz == 2
560         ALLOCATE(wo(klon,klev, 2))
561      end if
562     
[952]563      ALLOCATE(clwcon0(klon,klev),rnebcon0(klon,klev))
564      ALLOCATE(heat(klon,klev), heat0(klon,klev))
565      ALLOCATE(cool(klon,klev), cool0(klon,klev))
566      ALLOCATE(topsw(klon), toplw(klon))
567      ALLOCATE(sollwdown(klon), sollwdownclr(klon))
568      ALLOCATE(toplwdown(klon), toplwdownclr(klon))
569      ALLOCATE(topsw0(klon),toplw0(klon),solsw0(klon),sollw0(klon))
570      ALLOCATE(albpla(klon))
[1539]571!IM ajout variables CFMIP2/CMIP5
572      ALLOCATE(heatp(klon,klev), coolp(klon,klev))
573      ALLOCATE(heat0p(klon,klev), cool0p(klon,klev))
574      ALLOCATE(radsolp(klon), topswp(klon), toplwp(klon))
575      ALLOCATE(albplap(klon))
576      ALLOCATE(solswp(klon), sollwp(klon))
[2240]577      ALLOCATE(gustiness(klon))
[1539]578      ALLOCATE(sollwdownp(klon))
579      ALLOCATE(topsw0p(klon),toplw0p(klon))
580      ALLOCATE(solsw0p(klon),sollw0p(klon))
[3106]581      ALLOCATE(lwdnc0p(klon,klevp1), lwdn0p(klon,klevp1), lwdnp(klon,klevp1))
582      ALLOCATE(lwupc0p(klon,klevp1), lwup0p(klon,klevp1), lwupp(klon,klevp1))
[3082]583      ALLOCATE(swdnc0p(klon,klevp1), swdn0p(klon,klevp1), swdnp(klon,klevp1))
584      ALLOCATE(swupc0p(klon,klevp1), swup0p(klon,klevp1), swupp(klon,klevp1))
[1539]585
[952]586      ALLOCATE(cape(klon))
587      ALLOCATE(pbase(klon),bbase(klon))
588      ALLOCATE(zqasc(klon,klev))
589      ALLOCATE(ibas_con(klon), itop_con(klon))
590      ALLOCATE(rain_con(klon), snow_con(klon))
591      ALLOCATE(rlonPOS(klon))
592      ALLOCATE(newsst(klon))
[1813]593      ALLOCATE(ustar(klon,nbsrf),u10m(klon,nbsrf), v10m(klon,nbsrf),wstar(klon,nbsrf+1))
[952]594      ALLOCATE(topswad(klon), solswad(klon))
595      ALLOCATE(topswai(klon), solswai(klon))
[1279]596      ALLOCATE(tau_aero(klon,klev,naero_grp,nbands),piz_aero(klon,klev,naero_grp,nbands),cg_aero(klon,klev,naero_grp,nbands))
[2146]597      ALLOCATE(tau_aero_sw_rrtm(klon,klev,2,nbands_sw_rrtm),piz_aero_sw_rrtm(klon,klev,2,nbands_sw_rrtm))
598      ALLOCATE(cg_aero_sw_rrtm(klon,klev,2,nbands_sw_rrtm))
599      ALLOCATE(tau_aero_lw_rrtm(klon,klev,2,nbands_lw_rrtm),piz_aero_lw_rrtm(klon,klev,2,nbands_lw_rrtm))
600      ALLOCATE(cg_aero_lw_rrtm(klon,klev,2,nbands_lw_rrtm))
[1279]601      ALLOCATE(ccm(klon,klev,nbands))
[959]602
[1638]603!!! nrlmd le 10/04/2012
604      ALLOCATE(ale_bl_trig(klon))
605!!! fin nrlmd le 10/04/2012
[2333]606      if (ok_gwd_rando) allocate(du_gwd_rando(klon, klev))
607      if (.not. ok_hines .and. ok_gwd_rando) allocate(du_gwd_front(klon, klev))
[1638]608
[909]609END SUBROUTINE phys_state_var_init
610
611!======================================================================
612SUBROUTINE phys_state_var_end
[2399]613!USE dimphy
[1785]614USE indice_sol_mod
[909]615IMPLICIT NONE
[1938]616include "clesphys.h"
[909]617
[2399]618      deallocate(pctsrf, ftsol, falb1, falb2)
[2243]619      deallocate(qsol,fevap,z0m,z0h,agesno)
[2952]620!FC
621      deallocate(treedrg)
[2366]622      deallocate(rain_fall, snow_fall, solsw, sollw, radsol, swradcorr)
[952]623      deallocate(zmea, zstd, zsig, zgam)
624      deallocate(zthe, zpic, zval)
625      deallocate(rugoro, t_ancien, q_ancien, clwcon, rnebcon)
[2497]626      deallocate(qs_ancien, ql_ancien)
[2499]627      deallocate(prw_ancien, prlw_ancien, prsw_ancien)
[2205]628      deallocate(qtc_cv,sigt_cv)
[2499]629      deallocate(u_ancien, v_ancien)
630      deallocate(tr_ancien)                           !RomP
[1761]631      deallocate(ratqs, pbl_tke,coefh,coefm)
[2159]632!nrlmd<
633      deallocate(delta_tsurf)
634!>nrlmd
[952]635      deallocate(zmax0, f0)
[1827]636      deallocate(sig1, w01)
[952]637      deallocate(entr_therm, fm_therm)
638      deallocate(detr_therm)
639      deallocate(clwcon0th, rnebcon0th)
640! radiation outputs
[3082]641      deallocate(swdnc0, swdn0, swdn)
642      deallocate(swupc0, swup0, swup)
[3106]643      deallocate(lwdnc0, lwdn0, lwdn)
644      deallocate(lwupc0, lwup0, lwup)
[952]645      deallocate(SWdn200clr, SWdn200)
646      deallocate(SWup200clr, SWup200)
647      deallocate(LWdn200clr, LWdn200)
648      deallocate(LWup200clr, LWup200)
649      deallocate(LWdnTOA, LWdnTOAclr)
650! pressure level
651      deallocate(tsumSTD)
652      deallocate(usumSTD, vsumSTD)
653      deallocate(wsumSTD, phisumSTD)
654      deallocate(tnondef)
[970]655      deallocate(qsumSTD, rhsumSTD)
[952]656      deallocate(uvsumSTD)
657      deallocate(vqsumSTD)
658      deallocate(vTsumSTD)
659      deallocate(wqsumSTD)
660      deallocate(vphisumSTD)
661      deallocate(wTsumSTD)
662      deallocate(u2sumSTD)
663      deallocate(v2sumSTD)
664      deallocate(T2sumSTD)
[1398]665      deallocate(O3sumSTD)
666      deallocate(O3daysumSTD)
[1352]667!IM beg
668      deallocate(wlevSTD,ulevSTD,vlevSTD,tlevSTD,qlevSTD,rhlevSTD,philevSTD)
[1398]669      deallocate(uvSTD,vqSTD,vTSTD,wqSTD,vphiSTD,wTSTD,u2STD,v2STD,T2STD,O3STD,O3daySTD)
[1352]670!IM end
[952]671      deallocate(seed_old)
672      deallocate(zuthe, zvthe)
673      deallocate(alb_neig)
[1398]674      deallocate(ema_cbmf)
[952]675      deallocate(ema_pcb, ema_pct)
676      deallocate(Ma, qcondc)
677      deallocate(wd, sigd)
678      deallocate(cin, ALE, ALP)
679      deallocate(ftd, fqd)
680      deallocate(Ale_bl, Alp_bl)
[3080]681      deallocate(ale_wake)
682      deallocate(ale_bl_stat)
[952]683      deallocate(lalim_conv, wght_th)
684      deallocate(wake_deltat, wake_deltaq)
[3208]685      deallocate(wake_s, awake_dens, wake_dens)
[2635]686      deallocate(wake_Cstar, wake_pe, wake_fip)
[2159]687!jyg<
688      deallocate(wake_delta_pbl_TKE)
689!>jyg
[952]690      deallocate(pfrac_impa, pfrac_nucl)
691      deallocate(pfrac_1nucl)
692      deallocate(total_rain, nday_rain)
693      deallocate(albsol1, albsol2)
[2227]694!albedo SB >>>
695      deallocate(albsol_dir,albsol_dif,falb_dir,falb_dif,chl_con)
696!albedo SB <<<
[952]697      deallocate(wo)
698      deallocate(clwcon0,rnebcon0)
699      deallocate(heat, heat0)
700      deallocate(cool, cool0)
701      deallocate(topsw, toplw)
702      deallocate(sollwdown, sollwdownclr)
[2240]703      deallocate(gustiness)
[952]704      deallocate(toplwdown, toplwdownclr)
705      deallocate(topsw0,toplw0,solsw0,sollw0)
706      deallocate(albpla)
[1539]707!IM ajout variables CFMIP2/CMIP5
708      deallocate(heatp, coolp)
709      deallocate(heat0p, cool0p)
710      deallocate(radsolp, topswp, toplwp)
711      deallocate(albplap)
712      deallocate(solswp, sollwp)
713      deallocate(sollwdownp)
714      deallocate(topsw0p,toplw0p)
715      deallocate(solsw0p,sollw0p)
[3106]716      deallocate(lwdnc0p, lwdn0p, lwdnp)
717      deallocate(lwupc0p, lwup0p, lwupp)
[3082]718      deallocate(swdnc0p, swdn0p, swdnp)
719      deallocate(swupc0p, swup0p, swupp)
[952]720      deallocate(cape)
721      deallocate(pbase,bbase)
722      deallocate(zqasc)
723      deallocate(ibas_con, itop_con)
724      deallocate(rain_con, snow_con)
725      deallocate(rlonPOS)
726      deallocate(newsst)
[1813]727      deallocate(ustar,u10m, v10m,wstar)
[952]728      deallocate(topswad, solswad)
729      deallocate(topswai, solswai)
[1279]730      deallocate(tau_aero,piz_aero,cg_aero)
[2146]731      deallocate(tau_aero_sw_rrtm,piz_aero_sw_rrtm,cg_aero_sw_rrtm)
732      deallocate(tau_aero_lw_rrtm,piz_aero_lw_rrtm,cg_aero_lw_rrtm)
[952]733      deallocate(ccm)
[2333]734      if (ok_gwd_rando) deallocate(du_gwd_rando)
735      if (.not. ok_hines .and. ok_gwd_rando) deallocate(du_gwd_front)
[959]736       
[1638]737!!! nrlmd le 10/04/2012
738      deallocate(ale_bl_trig)
739!!! fin nrlmd le 10/04/2012
740
[909]741END SUBROUTINE phys_state_var_end
742
743      END MODULE phys_state_var_mod
Note: See TracBrowser for help on using the repository browser.