Changeset 73 for trunk/mesoscale/LMD_MM_MARS/SRC
- Timestamp:
- Feb 20, 2011, 12:20:51 PM (14 years ago)
- Location:
- trunk/mesoscale/LMD_MM_MARS/SRC
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mesoscale/LMD_MM_MARS/SRC/POSTPROC/api.F90
r19 r73 48 48 ! MARS CONSTANTS 49 49 ! 50 REAL, PARAMETER :: Rd = 192. ! gas constant m2 s-2 K-151 REAL, PARAMETER :: Cp = 844.6 ! r= 8.314511E+0*1000.E+0/mugaz52 !REAL, PARAMETER :: Rd = 191.053 !REAL, PARAMETER :: Cp = 744.550 !REAL, PARAMETER :: Rd = 192. ! gas constant m2 s-2 K-1 51 !REAL, PARAMETER :: Cp = 844.6 ! r= 8.314511E+0*1000.E+0/mugaz 52 REAL, PARAMETER :: Rd = 191.0 53 REAL, PARAMETER :: Cp = 744.5 54 54 REAL, PARAMETER :: RCP = Rd/Cp 55 55 REAL, PARAMETER :: p0 = 610. -
trunk/mesoscale/LMD_MM_MARS/SRC/PREP_MARS/readmeteo.F90
r72 r73 74 74 !! Intermediate data arrays 75 75 integer :: k,l,m,n,p 76 real, dimension(:), allocatable :: lat,lon,time,alt,aps,bps,levels, dsoilvert76 real, dimension(:), allocatable :: lat,lon,time,alt,aps,bps,levels,vertdsoil 77 77 real, dimension(:,:), allocatable :: vide,ones,ghtsfile 78 78 real, dimension(:,:), allocatable :: interm … … 207 207 allocate(dsoilfile(lonlen,latlen,altlen,timelen)) 208 208 allocate(isoilfile(lonlen,latlen,altlen,timelen)) 209 allocate( dsoilvert(altlen))209 allocate(vertdsoil(altlen)) 210 210 !allocate(tfileorig(lonlen,latlen,altlen,timelen)) 211 211 allocate(ufile(lonlen,latlen,altlen,timelen)) … … 240 240 isoilfile(:,:,:,:)=0 241 241 dsoilfile(:,:,:,:)=0 242 dsoilvert(:)=0.242 vertdsoil(:)=0. 243 243 !tfileorig(:,:,:,:)=0 244 244 !ufileorig(:,:,:,:)=0 … … 591 591 592 592 print *,'Surface Water ice' 593 ierr=NF_INQ_VARID(nid,"qsurf01",nvarid) 593 !!!!!! ATTENTION ATTENTION 594 !!!!!! water ice a la surface est qsurf(ig,nqmx) 595 ierr=NF_INQ_VARID(nid,"qsurf02",nvarid) 594 596 if (ierr.ne.NF_NOERR) then 595 write(*,*) "...No qsurf0 1- surface Water ice set to 0"597 write(*,*) "...No qsurf02 - surface Water ice set to 0" 596 598 swatericefile(:,:,:)=0. 597 599 else … … 648 650 write(*,*) "...No soildepth - Set to -999" !!! see soil_settings in LMD physics 649 651 DO l=1,altlen 650 dsoilvert(l)=-999.652 vertdsoil(l)=-999. 651 653 ENDDO 652 654 else 653 ierr=NF_GET_VAR_REAL(nid,nvarid, dsoilvert)655 ierr=NF_GET_VAR_REAL(nid,nvarid,vertdsoil) 654 656 endif 655 657 print *, 'wait a minute' !! AS: I know this could be better … … 657 659 DO n=1,latlen 658 660 DO p=1,timelen 659 dsoilfile(m,n,:,p) = dsoilvert(:)661 dsoilfile(m,n,:,p) = vertdsoil(:) 660 662 ENDDO 661 663 ENDDO … … 1050 1052 !------------------------! 1051 1053 FIELD='SM100200' 1052 UNITS='kg/ kg'1054 UNITS='kg/m2' 1053 1055 DESC='Surf water ice' 1054 1056 XLVL=200100. … … 1470 1472 deallocate(isoilfile) 1471 1473 deallocate(dsoilfile) 1472 !deallocate(dsoilvert)1473 1474 !deallocate(tfileorig) 1474 1475 deallocate(ufile) -
trunk/mesoscale/LMD_MM_MARS/SRC/WRFV2/mars_lmd/libf/phymars/meso_physiq.F
r72 r73 1321 1321 1322 1322 IF (tracer.AND.water.AND.ngridmx.NE.1) THEN 1323 if (caps.and.(obliquit.lt.27.)) then 1324 tsurf(ngrid)=1/(1/136.27-r/5.9e+5*alog(0.0095*ps(ngrid))) 1325 endif 1323 !if (caps.and.(obliquit.lt.27.)) then 1324 ! tsurf(ngrid)=1/(1/136.27-r/5.9e+5*alog(0.0095*ps(ngrid))) 1325 !endif 1326 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 1327 !!!!! note WRF MESOSCALE AYMERIC -- mot cle "caps" 1328 !!!!! watercaptag n'est plus utilise que dans vdifc 1329 !!!!! ... pour que la sublimation ne soit pas stoppee 1330 !!!!! ... dans la calotte permanente nord si qsurf=0 1331 !!!!! on desire garder cet effet regle par caps=T 1332 !!!!! on a donc commente "if (caps.and.(obliquit.lt.27.))" ci-dessus 1333 !!!!! --- remplacer ces lignes par qqch de plus approprie 1334 !!!!! si on s attaque a la calotte polaire sud 1335 !!!!! pas d'autre occurrence majeure du mot-cle "caps" 1336 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 1337 1326 1338 c ------------------------------------------------------------- 1327 1339 c Change of surface albedo (set to 0.4) in case of ground frost -
trunk/mesoscale/LMD_MM_MARS/SRC/WRFV2/phys/module_lmd_driver.F
r72 r73 154 154 !------------------------------------------- 155 155 INTEGER :: i,j,k,its,ite,jts,jte,ij 156 INTEGER :: subs 156 INTEGER :: subs,iii 157 157 158 158 ! *** for LMD physics … … 623 623 CASE(0) !! NO TRACERS (mars=0) 624 624 wtnom(nq) = 'co2' 625 CASE(1) 626 wtnom(1) = 'h2o_vap' 627 wtnom(2) = 'h2o_ice' 628 CASE(2) 629 wtnom(1) = 'dust' 625 630 CASE(11) !! newwater mars==11 scalar:qh2o,qh2o_ice,qdust,qdust_number,qco2 626 631 wtnom(nq) = 'co2' … … 665 670 #ifdef NEWPHYS 666 671 q_prof(:,1:nq) = SCALAR(i,kps:kpe,j,2:nq+1) !! the names were set above !! one dummy tracer in WRF 667 q_prof(:,nq) = 0.95 !! cas du CO2 !! TEMPORAIRE 672 !!! CAS DU CO2 673 DO iii=1,nq 674 IF ( wtnom(iii) .eq. 'co2' ) q_prof(:,iii) = 0.95 675 ENDDO 668 676 #else 669 677 SELECT CASE (MARS_MODE) … … 790 798 ! Tracer at surface ! 791 799 !-------------------! 792 #ifdef NEWPHYS793 !!! a faire !!!794 PRINT *, 'WARNING WARNING no tracer at surface'795 qsurf_val(:)=0.796 #else797 800 SELECT CASE (MARS_MODE) 798 801 CASE(0) !! NO TRACERS (mars=0) 799 802 qsurf_val(:)=0. 800 803 CASE(1) !! WATER CYCLE (mars=1) 804 #ifdef NEWPHYS 805 qsurf_val(2)=MARS_WICE(i,j) !! logique avec wtnom(2) = 'h2o_ice' defini ci-dessus 806 qsurf_val(1)=0. 807 #else 801 808 qsurf_val(2)=MARS_WICE(i,j) !! attention... H2O ice is tracer nqmx in qsurf in LMD physics 802 qsurf_val(1)=0. 809 qsurf_val(1)=0. 810 #endif 803 811 CASE(2) !! DUST CYCLE (mars=2) 804 812 qsurf_val(:)=0. 813 #ifdef NEWPHYS 814 CASE(11) 815 qsurf_val(:)=0. !! provisoire 816 #endif 805 817 END SELECT 806 #endif807 818 808 819 !-------------------!
Note: See TracChangeset
for help on using the changeset viewer.