Ignore:
Timestamp:
Nov 18, 2015, 12:25:20 PM (9 years ago)
Author:
jyg
Message:

Add various intializations of arrays in lmdz1d.F90
and in the convection scheme. Add output variables
for boundary layer splitting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/phylmd/dyn1d/lmdz1d.F90

    r2373 r2393  
    88      PROGRAM lmdz1d
    99
    10       USE ioipsl, only: ju2ymds, ymds2ju, ioconf_calendar
    11       use phys_state_var_mod
    12       use dimphy
    13       use surface_data, only : type_ocean,ok_veget
    14       use pbl_surface_mod, only : ftsoil, pbl_surface_init,                     &
     10   USE ioipsl, only: ju2ymds, ymds2ju, ioconf_calendar
     11   USE phys_state_var_mod, ONLY : phys_state_var_init, phys_state_var_end, &
     12       clwcon, detr_therm, &
     13       qsol, fevap, z0m, z0h, agesno, &
     14       du_gwd_rando, du_gwd_front, entr_therm, f0, fm_therm, &
     15       falb_dir, falb_dif, &
     16       ftsol, pbl_tke, pctsrf, radsol, rain_fall, snow_fall, ratqs, &
     17       rlat, rlon, rnebcon, rugoro, sig1, w01, solaire_etat0, sollw, sollwdown, &
     18       solsw, t_ancien, q_ancien, u_ancien, v_ancien, wake_cstar, wake_deltaq, &
     19       wake_deltat, wake_delta_pbl_TKE, delta_tsurf, wake_fip, wake_pe, &
     20       wake_s, zgam, &
     21       zmax0, zmea, zpic, zsig, &
     22       zstd, zthe, zval, ale_bl, ale_bl_trig, alp_bl
     23   use dimphy
     24   use surface_data, only : type_ocean,ok_veget
     25   use pbl_surface_mod, only : ftsoil, pbl_surface_init,                     &
    1526     &                            pbl_surface_final
    1627      use fonte_neige_mod, only : fonte_neige_init, fonte_neige_final
    1728
    18       use infotrac ! new
    19       use control_mod
    20       USE indice_sol_mod
    21       USE phyaqua_mod
    22       USE mod_1D_cases_read
    23       USE mod_1D_amma_read
    24       USE print_control_mod, ONLY: prt_level
    25       USE iniphysiq_mod, ONLY: iniphysiq
    26       USE mod_const_mpi, ONLY: comm_lmdz
     29   use infotrac ! new
     30   use control_mod
     31   USE indice_sol_mod
     32   USE phyaqua_mod
     33   USE mod_1D_cases_read
     34   USE mod_1D_amma_read
     35   USE print_control_mod, ONLY: prt_level
     36   USE iniphysiq_mod, ONLY: iniphysiq
     37   USE mod_const_mpi, ONLY: comm_lmdz
    2738
    2839      implicit none
     
    127138!vertical advection computation
    128139!       real d_t_z(llm), d_q_z(llm)
    129 !       real d_t_dyn_z(llm), d_q_dyn_z(llm)
     140!       real d_t_dyn_z(llm), dq_dyn_z(llm)
    130141!       real zz(llm)
    131142!       real zfact
     
    516527!      allocate(d_th_adv(llm))
    517528
     529      q(:,:) = 0.
     530      dq(:,:) = 0.
     531      dq_dyn(:,:) = 0.
     532      d_q_adv(:,:) = 0.
     533      d_q_nudge(:,:) = 0.
     534
    518535!
    519536!   No ozone climatology need be read in this pre-initialization
     
    730747        solsw=0.
    731748        sollw=0.
     749        sollwdown=rsigma*tsurf**4
    732750        radsol=0.
    733751        rnebcon=0.
    734752        ratqs=0.
    735753        clwcon=0.
     754        zmax0 = 0.
    736755        zmea=0.
    737756        zstd=0.
     
    742761        sig1=0.
    743762        w01=0.
     763        wake_cstar = 0.
     764        wake_deltaq = 0.
     765        wake_deltat = 0.
     766        wake_delta_pbl_TKE = 0.
     767        delta_tsurf = 0.
     768        wake_fip = 0.
     769        wake_pe = 0.
     770        wake_s = 0.
     771        ale_bl = 0.
     772        ale_bl_trig = 0.
     773        alp_bl = 0.
     774        IF (ALLOCATED(du_gwd_rando)) du_gwd_rando = 0.
     775        IF (ALLOCATED(du_gwd_front)) du_gwd_front = 0.
     776        entr_therm = 0.
     777        detr_therm = 0.
     778        f0 = 0.
     779        fm_therm = 0.
    744780        u_ancien(1,:)=u(:)
    745781        v_ancien(1,:)=v(:)
     
    752788! pctsrf(:,is_sic),ftsol(:,nsrf),tsoil(:,isoil,nsrf),qsurf(:,nsrf)
    753789! qsol,falb_dir(:,nsrf),falb_dif(:,nsrf),evap(:,nsrf),snow(:,nsrf)
    754 ! radsol,solsw,sollw,fder,rain_fall,snow_fall,frugs(:,nsrf)
     790! radsol,solsw,sollw, sollwdown,fder,rain_fall,snow_fall,frugs(:,nsrf)
    755791! agesno(:,nsrf),zmea,zstd,zsig,zgam,zthe,zpic,zval,rugoro
    756792! t_ancien,q_ancien,,frugs(:,is_oce),clwcon(:,1),rnebcon(:,1),ratqs(:,1)
     
    939975         d_q_adv=0.0
    940976       endif
    941       print*, 'calcul de fcoriolis ', fcoriolis
     977!      print*, 'calcul de fcoriolis ', fcoriolis
    942978
    943979       if (forcing_toga .or. forcing_GCSSold .or. forcing_twpice            &
     
    949985        endif
    950986
    951       print*, 'fcoriolis ', fcoriolis, xlat,mxcalc
     987      IF (prt_level >= 1) print*, 'fcoriolis, xlat,mxcalc ', &
     988                                   fcoriolis, xlat,mxcalc
    952989
    953990       du_age(1:mxcalc)=fcoriolis*(v(1:mxcalc)-vg(1:mxcalc))
    954991       dv_age(1:mxcalc)=-fcoriolis*(u(1:mxcalc)-ug(1:mxcalc))
    955        print *,'u-ug=',u-ug
     992!       print *,'u-ug=',u-ug
    956993
    957994!!!!!!!!!!!!!!!!!!!!!!!!
     
    960997       sfdt = sin(0.5*fcoriolis*timestep)
    961998       cfdt = cos(0.5*fcoriolis*timestep)
    962        print *,'fcoriolis,sfdt,cfdt,timestep',fcoriolis,sfdt,cfdt,timestep
     999!       print *,'fcoriolis,sfdt,cfdt,timestep',fcoriolis,sfdt,cfdt,timestep
    9631000!
    9641001        du_age(1:mxcalc)= -2.*sfdt/timestep*                                &
Note: See TracChangeset for help on using the changeset viewer.