Changeset 86 for trunk/mars/libf/phymars
- Timestamp:
- Mar 3, 2011, 12:38:49 PM (14 years ago)
- Location:
- trunk/mars/libf/phymars
- Files:
-
- 3 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mars/libf/phymars/dustlift.F
r38 r86 1 SUBROUTINE dustlift(ngrid,nlay,nq,rho,pcdh_true,pcdh,co2ice, 1 SUBROUTINE dustlift(ngrid,nlay,nq,rho, 2 $ pcdh_true,pcdh,co2ice, 2 3 $ dqslift) 3 4 IMPLICIT NONE … … 44 45 DATA stress_seuil/0.0225/ ! stress seuil soulevement (N.m2) 45 46 47 #ifdef MESOSCALE 48 !!!! AS: In the mesoscale model we'd like to easily set 49 !!!! AS: ... stress for lifting 50 !!!! AS: you have to compile with -DMESOSCALE to do so 51 REAL alpha 52 INTEGER ierr 53 OPEN(99,file='stress.def',status='old',form='formatted' 54 . ,iostat=ierr) 55 !!! no file => default values 56 IF(ierr.EQ.0) THEN 57 READ(99,*) stress_seuil 58 READ(99,*) alpha 59 write(*,*) 'USER-DEFINED threshold: ', stress_seuil, alpha 60 CLOSE(99) 61 alpha_lift(1:nq) = alpha 62 ENDIF 63 #endif 46 64 47 65 c --------------------------------- -
trunk/mars/libf/phymars/meso_inifis.F
r47 r86 106 106 CHARACTER ch1*12 107 107 CHARACTER ch80*80 108 109 #ifdef MESOSCALE 108 110 109 111 ! logical chem, h2o … … 807 809 ! 808 810 ! RETURN 811 812 #endif 813 809 814 END -
trunk/mars/libf/phymars/meso_physiq.F
r83 r86 10 10 $ wisoil,wdsoil, 11 11 $ wecritphys, 12 #ifdef MESOSCALE 12 13 $ output_tab2d, output_tab3d, 14 #endif 13 15 $ flag_LES) 14 16 … … 152 154 #include "netcdf.inc" 153 155 156 !!!!**** SPECIFIC TO MESOSCALE 157 #ifdef MESOSCALE 154 158 #include "meso_slope.h" 155 159 #include "wrf_output_2d.h" 156 160 #include "wrf_output_3d.h" 161 #endif 157 162 158 163 #include "advtrac.h" !!! this is necessary for tracers (in dyn3d) … … 172 177 REAL zh(ngridmx,nlayermx) ! potential temperature (K) 173 178 LOGICAL firstcall,lastcall 174 c ****WRF 179 !!! ****WRF WRF specific to mesoscale 175 180 INTEGER wday_ini 176 181 REAL wtsurf(ngridmx) ! input only ay firstcall - output … … 183 188 REAL wq2(ngridmx,nlayermx+1) 184 189 REAL wecritphys 190 #ifdef MESOSCALE 185 191 REAL output_tab2d(ngridmx,n2d) 186 192 REAL output_tab3d(ngridmx,nlayer,n3d) 193 #endif 187 194 REAL sl_ls, sl_lct, sl_lat, sl_tau, sl_alb, sl_the, sl_psi 188 195 REAL sl_fl0, sl_flu … … 196 203 integer iloop 197 204 INTEGER tracerset !!! this corresponds to config%mars 198 c ****WRF 205 !!! ****WRF WRF specific to mesoscale 199 206 REAL pday 200 207 REAL ptime … … 353 360 354 361 c======================================================================= 362 #ifdef MESOSCALE 355 363 356 364 c 1. Initialisation: … … 1036 1044 1037 1045 IF (callcond) THEN 1038 CALL meso_newcondens(ngrid,nlayer,nq,ptimestep,1046 CALL newcondens(ngrid,nlayer,nq,ptimestep, 1039 1047 $ capcal,pplay,pplev,tsurf,pt, 1040 1048 $ pphi,pdt,pdu,pdv,zdtsurf,pu,pv,pq,pdq, … … 1890 1898 icount=icount+1 1891 1899 write(*,*) 'now, back to the dynamical core...' 1900 #endif 1892 1901 RETURN 1893 1902 END -
trunk/mars/libf/phymars/newcondens.F
r38 r86 590 590 zqm(nlayer+1,iq)= zq(nlayer,iq) 591 591 enddo 592 592 593 #ifdef MESOSCALE 594 !!!! AS: This part must be commented in the mesoscale model 595 !!!! AS: ... to avoid instabilities. 596 !!!! AS: you have to compile with -DMESOSCALE to do so 597 #else 593 598 c Tendencies on T, U, V, Q 594 599 c """""""""""""""""""""""" … … 614 619 615 620 END DO 621 #endif 616 622 617 623 c Tendencies on Q -
trunk/mars/libf/phymars/testphys1d.F
r38 r86 408 408 409 409 !Mars possible matter with dtphys in input and include!!! 410 #ifdef MESOSCALE 411 CALL meso_inifis(1,llm,day0,daysec,dtphys, 412 #else 410 413 CALL inifis(1,llm,day0,daysec,dtphys, 414 #endif 411 415 . lati,long,area,rad,g,r,cpp) 412 416 c Initialisation pour prendre en compte les vents en 1-D … … 591 595 c appel de la physique 592 596 c -------------------- 593 597 #ifdef MESOSCALE 598 CALL meso_physiq (1,llm,nqmx, 599 #else 594 600 CALL physiq (1,llm,nqmx, 601 #endif 595 602 , firstcall,lastcall, 596 603 , day,time,dtphys,
Note: See TracChangeset
for help on using the changeset viewer.