Changeset 1960 for LMDZ5/trunk/libf/phy1d/lmdz1d.F
- Timestamp:
- Feb 7, 2014, 5:20:25 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/phy1d/lmdz1d.F
r1948 r1960 81 81 integer :: an 82 82 83 !84 real :: paire = 1. ! aire de la maille85 !** common /flux_arp/fsens,flat,ok_flux_surf86 87 83 !--------------------------------------------------------------------- 88 84 ! Declarations related to forcing and initial profiles … … 92 88 integer llm700,nq1,nq2 93 89 INTEGER, PARAMETER :: nlev_max=1000, nqmx=1000 94 real timestep, frac , timeit90 real timestep, frac 95 91 real height(nlev_max),tttprof(nlev_max),qtprof(nlev_max), 96 92 . uprof(nlev_max),vprof(nlev_max),e12prof(nlev_max), … … 100 96 . qprof(nlev_max,nqmx) 101 97 102 real :: fff103 98 c integer :: forcing_type 104 99 logical :: forcing_les = .false. … … 138 133 real :: pzero=1.e5 139 134 real :: play (llm),zlay (llm),sig_s(llm),plev(llm+1) 140 real :: playd(llm),zlayd(llm),ap_amma(llm+1),bp_amma(llm+1),poub141 135 142 136 !--------------------------------------------------------------------- … … 144 138 !--------------------------------------------------------------------- 145 139 146 integer :: iq147 140 real :: phi(llm) 148 141 real :: teta(llm),tetal(llm),temp(llm),u(llm),v(llm),w(llm) … … 152 145 real :: sfdt, cfdt 153 146 real :: du_phys(llm),dv_phys(llm),dt_phys(llm) 154 real :: du_dyn(llm),dv_dyn(llm),dt_dyn(llm) 155 real :: dt_cooling(llm),d_t_cool(llm),d_th_adv(llm) 156 real :: dq_cooling(llm),d_q_cool(llm) 157 real :: tmpvar(llm) 147 real :: dt_dyn(llm) 148 real :: dt_cooling(llm),d_th_adv(llm) 158 149 real :: alpha 150 real :: ttt 159 151 160 152 REAL, ALLOCATABLE, DIMENSION(:,:):: q … … 205 197 ! Fichiers et d'autres variables 206 198 !--------------------------------------------------------------------- 207 real ttt,bow,q1 208 integer :: ierr,k,l,i,it=1,mxcalc 199 integer :: k,l,i,it=1,mxcalc 209 200 integer jjmp1 210 201 parameter (jjmp1=jjm+1-1/jjm) … … 231 222 !--------------------------------------------------------------------- 232 223 cAl1 233 call conf_unicol (99)224 call conf_unicol 234 225 cAl1 moves this gcssold var from common fcg_gcssold to 235 226 Turb_fcg_gcssold = xTurb_fcg_gcssold … … 375 366 itau_phy = 0 376 367 call ymds2ju(annee_ref,mois,day_ref,heure,day) 377 day_ini = day368 day_ini = int(day) 378 369 day_end = day_ini + fnday 379 370 … … 859 850 ! 860 851 du_age(1:mxcalc)= -2.*sfdt/timestep* 861 :(sfdt*(u(1:mxcalc)-ug(1:mxcalc)) -862 :cfdt*(v(1:mxcalc)-vg(1:mxcalc)) )852 s (sfdt*(u(1:mxcalc)-ug(1:mxcalc)) - 853 s cfdt*(v(1:mxcalc)-vg(1:mxcalc)) ) 863 854 !! : fcoriolis*(v(1:mxcalc)-vg(1:mxcalc)) 864 855 ! 865 856 dv_age(1:mxcalc)= -2.*sfdt/timestep* 866 :(cfdt*(u(1:mxcalc)-ug(1:mxcalc)) +867 :sfdt*(v(1:mxcalc)-vg(1:mxcalc)) )857 s (cfdt*(u(1:mxcalc)-ug(1:mxcalc)) + 858 s sfdt*(v(1:mxcalc)-vg(1:mxcalc)) ) 868 859 !! : -fcoriolis*(u(1:mxcalc)-ug(1:mxcalc)) 869 860 ! … … 879 870 !!!!!!!!!!!!!!!!!!!!!!!!!!!!! 880 871 u(1:mxcalc)=u(1:mxcalc) + timestep*( 881 :du_phys(1:mxcalc)882 :+du_age(1:mxcalc) )872 s du_phys(1:mxcalc) 873 s +du_age(1:mxcalc) ) 883 874 v(1:mxcalc)=v(1:mxcalc) + timestep*( 884 :dv_phys(1:mxcalc)885 :+dv_age(1:mxcalc) )875 s dv_phys(1:mxcalc) 876 s +dv_age(1:mxcalc) ) 886 877 q(1:mxcalc,:)=q(1:mxcalc,:)+timestep*( 887 :dq(1:mxcalc,:)888 :+d_q_adv(1:mxcalc,:) )878 s dq(1:mxcalc,:) 879 s +d_q_adv(1:mxcalc,:) ) 889 880 890 881 if (prt_level.ge.1) then
Note: See TracChangeset
for help on using the changeset viewer.