Changeset 802 for trunk/MESOSCALE/LMD_MM_MARS/SRC
- Timestamp:
- Oct 5, 2012, 2:52:43 AM (12 years ago)
- Location:
- trunk/MESOSCALE/LMD_MM_MARS/SRC
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MESOSCALE/LMD_MM_MARS/SRC/PREP_MARS/readmeteo.F90
r665 r802 88 88 real, dimension(:,:,:), allocatable :: swatericefile!, swaterfile 89 89 real, dimension(:,:,:,:), allocatable :: dustfile,dustnfile 90 real, dimension(:,:,:,:), allocatable :: co2file 90 91 real, dimension(:,:,:,:), allocatable :: ccnfile,ccnnfile 91 92 … … 230 231 allocate(dustfile(lonlen,latlen,altlen,timelen)) 231 232 allocate(dustnfile(lonlen,latlen,altlen,timelen)) 233 allocate(co2file(lonlen,latlen,altlen,timelen)) 232 234 allocate(ccnfile(lonlen,latlen,altlen,timelen)) 233 235 allocate(ccnnfile(lonlen,latlen,altlen,timelen)) … … 285 287 dustfile(:,:,:,:)=0 286 288 dustnfile(:,:,:,:)=0 289 co2file(:,:,:,:)=0 287 290 ccnfile(:,:,:,:)=0 288 291 ccnnfile(:,:,:,:)=0 … … 636 639 !! special water stuff 637 640 !!------------------------ 641 642 print *,'CO2 mass mixing ratio' 643 ierr=NF_INQ_VARID(nid,"co2",nvarid) 644 if (ierr.ne.NF_NOERR) then 645 write(*,*) "...No co2 - co2 mixing ratio set to 0.95" 646 co2file(:,:,:,:)=0.95 647 else 648 ierr=NF_GET_VAR_REAL(nid,nvarid,co2file) 649 endif 638 650 639 651 !!------------------------ … … 1230 1242 ! ... Copy&Paste part ! 1231 1243 !------------------------! 1244 FIELD='CO2' 1245 UNITS='kg/kg' 1246 DESC='CO2 mixing ratio' 1247 XLVL=200100. 1248 SLAB=co2file(:,:,1,time_out(l)) 1249 ! And now put everything in the destination file 1250 ! ... Header 1251 write(1) IFV 1252 write(1) HDATE,XFCST,SOURCE,FIELD,UNITS,DESC,XLVL,NX,NY,IPROJ 1253 write(1) STARTLOC,STARTLAT,STARTLON,DELTALAT,DELTALON 1254 ! ... Data 1255 write(1) SLAB 1256 !print *,'The field '//DESC//' was written to '//output 1257 1258 !------------------------! 1259 ! >>> Write a variable ! 1260 ! ... Copy&Paste part ! 1261 !------------------------! 1232 1262 FIELD='DUSTQ' 1233 1263 UNITS='kg/kg' … … 1533 1563 XLVL=levels(k) 1534 1564 SLAB=isoilfile(:,:,k,time_out(l)) 1565 ! And now put everything in the destination file 1566 ! ... Header 1567 write(1) IFV 1568 write(1) HDATE,XFCST,SOURCE,FIELD,UNITS,DESC,XLVL,NX,NY,IPROJ 1569 write(1) STARTLOC,STARTLAT,STARTLON,DELTALAT,DELTALON 1570 ! ... Data 1571 write(1) SLAB 1572 END DO 1573 !print *,'The field '//DESC//' was written to '//output 1574 1575 !------------------------! 1576 ! >>> Write a variable ! 1577 ! ... Copy&Paste part ! 1578 !------------------------! 1579 FIELD='CO2' 1580 UNITS='kg/kg' 1581 DESC='CO2 mixing ratio' 1582 DO k = 1,altlen 1583 XLVL=levels(k) 1584 SLAB=co2file(:,:,k,time_out(l)) 1535 1585 ! And now put everything in the destination file 1536 1586 ! ... Header … … 1676 1726 deallocate(dustfile) 1677 1727 deallocate(dustnfile) 1728 deallocate(co2file) 1678 1729 deallocate(ccnfile) 1679 1730 deallocate(ccnnfile) -
trunk/MESOSCALE/LMD_MM_MARS/SRC/WPS/wps_mars/metgrid/METGRID.TBL.ARW_MarsBase_newphys
r549 r802 562 562 missing_value=-9.99e+33 563 563 ======================================== 564 name=CO2 565 # mandatory=yes # MUST HAVE THIS FIELD 566 # interp_option=sixteen_pt+four_pt+average_4pt 567 # interp_option=sixteen_pt+four_pt 568 interp_option=four_pt 569 # fill_lev=200100:const(0.) 570 fill_missing=-1.0e+30 571 missing_value=-9.99e+33 572 ======================================== 564 573 name=DUSTQ 565 574 # mandatory=yes # MUST HAVE THIS FIELD -
trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/Registry/Registry.EM
r708 r802 132 132 state real qccn ikjftb scalar 1 - i01rhusdf=(bdy_interp:dt) "QCCN" "CCN mixing ratio" "kg kg-1" 133 133 state real qccnn ikjftb scalar 1 - i01rhusdf=(bdy_interp:dt) "QCCNN" "CCN number mixing ratio" "kg kg-1" 134 state real qco2 ikjftb scalar 1 - i01r usdf=(bdy_interp:dt) "QCO2" "CO2 mixing ratio" "kg kg-1"134 state real qco2 ikjftb scalar 1 - i01rhusdf=(bdy_interp:dt) "QCO2" "CO2 mixing ratio" "kg kg-1" 135 135 state real chem_co ikjftb scalar 1 - i01rusdf=(bdy_interp:dt) "chem_co" "" "" 136 136 state real chem_o ikjftb scalar 1 - i01rusdf=(bdy_interp:dt) "chem_o" "" "" … … 221 221 state real isoil_gc igj dyn_em 1 Z i1 "ISOIL" "soil thermal inertia" "tiu" 222 222 state real dsoil_gc igj dyn_em 1 Z i1 "DSOIL" "soil depths" "m" 223 state real co2_gc igj dyn_em 1 Z i1 "CO2" "co2 mixing ratio" "kg/kg" 223 224 state real dustq_gc igj dyn_em 1 Z i1 "DUSTQ" "dust mixing ratio" "kg/kg" 224 225 state real dustn_gc igj dyn_em 1 Z i1 "DUSTN" "dust number density" "part/kg" … … 1374 1375 package dust1 mars==2 - scalar:qdust 1375 1376 package dust2eq mars==3 - scalar:qdust,qdustn 1377 package newbasis mars==10 - scalar:qco2 1376 1378 package newwater mars==11 - scalar:qh2o,qh2o_ice,qdust,qdustn 1377 1379 package newwatersca mars==12 - scalar:qh2o,qh2o_ice,qdust,qdustn,qccn,qccnn -
trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/dyn_em/module_initialize_real.F
r680 r802 1320 1320 endif 1321 1321 #ifdef NEWPHYS 1322 if ( (config_flags%mars == 10) ) then 1323 print *, '**** INTERPOLATE CO2 **** RANK 2 in SCALAR' 1324 CALL vert_interp_old ( grid%em_co2_gc , grid%em_pd_gc , scalar(:,:,:,2) , grid%em_pb , & 1325 num_metgrid_levels , 'Q' , & 1326 interp_type , lagrange_order , lowest_lev_from_sfc , & 1327 zap_close_levels , force_sfc_in_vinterp , & 1328 ids , ide , jds , jde , kds , kde , & 1329 ims , ime , jms , jme , kms , kme , & 1330 its , ite , jts , jte , kts , kte ) 1331 endif 1322 1332 if ( (config_flags%mars == 11) .OR. (config_flags%mars == 12) ) then 1323 1333 print *, '**** INTERPOLATE DUSTQ **** RANK 4 in SCALAR' -
trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/dyn_em/solve_em.F
r678 r802 2711 2711 .OR. ( config_flags%mars .eq. 2 ) & !! 2 pass the dust tracer 2712 2712 .OR. ( config_flags%mars .eq. 3 ) & !! 3 pass dust Q and N 2713 .OR. ( config_flags%mars .eq. 10 ) & !! 10 pass the co2 tracer 2713 2714 ! .OR. ( (config_flags%mars .eq. 11) .AND. (is .EQ. 2) ) & !! 11 pass only water vapor 2714 2715 .OR. ( config_flags%mars .eq. 11 ) & !! 11 pass EVERYTHING -
trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/main/real_em.F
r598 r802 717 717 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 718 718 IF (config_flags%mars .gt. 0) THEN 719 !! ceci suffit avec les modes 2 et 10 qui ne transportent qu'un seul traceur 719 720 CALL couple ( grid%em_mu_2 , grid%em_mub , qbdy3dtemp1 , grid%scalar(:,:,:,2) , 't' , grid%msft , & 720 721 ids, ide, jds, jde, kds, kde, ims, ime, jms, jme, kms, kme, ips, ipe, jps, jpe, kps, kpe ) -
trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/phys/module_lmd_driver.F
r774 r802 780 780 !!! SAME NAMING AS IN THE LMD PHYSICS !!!! 781 781 SELECT CASE (MARS_MODE) 782 CASE(0 )782 CASE(0,10) 783 783 wtnom(nq) = 'co2' 784 784 CASE(1) … … 869 869 q_prof(:,1:nq) = SCALAR(i,kps:kpe,j,2:nq+1) !! the names were set above !! one dummy tracer in WRF 870 870 ENDIF 871 !!! CAS DU CO2872 DO iii=1,nq873 IF ( wtnom(iii) .eq. 'co2' .and. (.not. restart)) q_prof(:,iii) = 0.95874 ENDDO871 !!!! CAS DU CO2 872 !DO iii=1,nq 873 ! IF ( wtnom(iii) .eq. 'co2' .and. (.not. restart)) q_prof(:,iii) = 0.95 874 !ENDDO 875 875 IF ((MARS_MODE .EQ. 20) .OR. (MARS_MODE .EQ. 21)) THEN 876 876 IF (firstcall .EQV. .true. .and. (.not. restart)) THEN
Note: See TracChangeset
for help on using the changeset viewer.