Changeset 162 for trunk/LMDZ.MARS/libf
- Timestamp:
- Jun 16, 2011, 5:06:05 PM (13 years ago)
- Location:
- trunk/LMDZ.MARS/libf/phymars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/meso_callkeys.h
r52 r162 12 12 & ,callg2d,linear,rayleigh,tracer,active,doubleq,submicron & 13 13 & ,lifting,callddevil,scavenging,sedimentation,activice,water & 14 & ,caps,photochem 14 & ,caps,photochem,calltherm,outptherm 15 15 16 16 COMMON/callkeys_i/iradia,iaervar,iddist,ilwd,ilwb,ilwn,ncouche & … … 23 23 & ,callstats,calleofdump & 24 24 & ,callnirco2,callnlte,callthermos,callconduct, & 25 & calleuv,callmolvis,callmoldiff,thermochem,thermoswater 25 & calleuv,callmolvis,callmoldiff,thermochem,thermoswater & 26 & ,calltherm,outptherm 26 27 27 28 -
trunk/LMDZ.MARS/libf/phymars/meso_inifis.F
r86 r162 254 254 255 255 write(*,*) "Directory where external input files are:" 256 !datafile="/u/forget/WWW/datagcm/datafile" 256 257 ! NB: default 'datafile' is set in datafile.h 257 258 call getin("datadir",datafile) … … 341 342 write(*,*) " calldifv = ",calldifv 342 343 344 write(*,*) "call thermals ?" 345 calltherm=.false. ! default value 346 call getin("calltherm",calltherm) 347 write(*,*) " calltherm = ",calltherm 348 349 write(*,*) "output thermal diagnostics ?" 350 outptherm=.false. ! default value 351 call getin("outptherm",outptherm) 352 write(*,*) " outptherm = ",outptherm 353 343 354 write(*,*) "call convective adjustment ?" 344 355 calladj=.true. ! default value … … 346 357 write(*,*) " calladj = ",calladj 347 358 359 if (calltherm .and. (.not. calladj)) then 360 print*,'Convadj has to be activated when using thermals' 361 stop 362 endif 348 363 349 364 write(*,*) "call CO2 condensation ?" -
trunk/LMDZ.MARS/libf/phymars/meso_physiq.F
r131 r162 246 246 c Albedo of deposited surface ice 247 247 !!REAL, PARAMETER :: alb_surfice = 0.4 ! 0.45 248 REAL, PARAMETER :: alb_surfice = 0.45 !!TESTS_JB 248 REAL, PARAMETER :: alb_surfice = 0.45 !!TESTS_JB 249 249 250 250 SAVE day_ini, icount … … 337 337 REAL ccn(ngridmx,nlayermx) ! Cloud condensation nuclei 338 338 ! (particules kg-1) 339 SAVE ccn !! in case iradia != 1 339 SAVE ccn !! in case iradia != 1 340 340 real rdust(ngridmx,nlayermx) ! dust geometric mean radius (m) 341 341 real qtot1,qtot2 ! total aerosol mass … … 359 359 REAL time_phys 360 360 361 c Variables from thermal 362 363 REAL lmax_th_out(ngrid) 364 REAL pdu_th(ngrid,nlayer),pdv_th(ngrid,nlayer) 365 REAL pdt_th(ngrid,nlayer),pdq_th(ngrid,nlayer,nq) 366 INTEGER lmax_th(ngrid) 367 REAL dtke_th(ngrid,nlayer+1) 368 REAL dummycol(ngrid) 361 369 c======================================================================= 362 370 #ifdef MESOSCALE … … 446 454 c ****WRF 447 455 ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 448 449 456 450 457 … … 995 1002 ENDIF ! of IF (calldifv) 996 1003 1004 c----------------------------------------------------------------------- 1005 c TEST. Thermals : 1006 c HIGHLY EXPERIMENTAL, BEWARE !! 1007 c ----------------------------- 1008 1009 if(calltherm) then 1010 1011 call calltherm_interface(ngrid,nlayer,firstcall, 1012 $ long,lati,zzlev,zzlay, 1013 $ ptimestep,pu,pv,pt,pq,pdu,pdv,pdt,pdq,q2, 1014 $ pplay,pplev,pphi,nq,zpopsk, 1015 $ pdu_th,pdv_th,pdt_th,pdq_th,lmax_th,dtke_th) 1016 1017 DO l=1,nlayer 1018 DO ig=1,ngrid 1019 pdu(ig,l)=pdu(ig,l)+pdu_th(ig,l) 1020 pdv(ig,l)=pdv(ig,l)+pdv_th(ig,l) 1021 pdt(ig,l)=pdt(ig,l)+pdt_th(ig,l) 1022 q2(ig,l)=q2(ig,l)+dtke_th(ig,l)*ptimestep 1023 ENDDO 1024 ENDDO 1025 1026 DO ig=1,ngrid 1027 q2(ig,nlayer+1)=q2(ig,nlayer+1)+dtke_th(ig,nlayer+1)*ptimestep 1028 ENDDO 1029 1030 if (tracer) then 1031 DO iq=1,nq 1032 DO l=1,nlayer 1033 DO ig=1,ngrid 1034 pdq(ig,l,iq)=pdq(ig,l,iq)+pdq_th(ig,l,iq) 1035 ENDDO 1036 ENDDO 1037 ENDDO 1038 endif 1039 1040 else !of if calltherm 1041 lmax_th(:)=0 1042 end if 997 1043 998 1044 c----------------------------------------------------------------------- … … 1012 1058 1013 1059 CALL convadj(ngrid,nlayer,nq,ptimestep, 1014 $ pplay,pplev,zpopsk, 1060 $ pplay,pplev,zpopsk,lmax_th, 1015 1061 $ pu,pv,zh,pq, 1016 1062 $ pdu,pdv,zdh,pdq, 1017 1063 $ zduadj,zdvadj,zdhadj, 1018 1064 $ zdqadj) 1065 1019 1066 1020 1067 DO l=1,nlayer … … 1502 1549 c which can later be used to make the statistic files of the run: 1503 1550 c "stats") only possible in 3D runs ! 1504 1505 1551 1506 1552 IF (callstats) THEN
Note: See TracChangeset
for help on using the changeset viewer.