Changeset 54
- Timestamp:
- Feb 2, 2011, 10:14:07 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 156 added
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/chantiers/commit_importants.log
r52 r54 391 391 mise a jour mineure du fichier 392 392 [ecri_phys etait defini mais pas dans la liste] 393 394 395 ******************** 396 **** commit_v54 **** 397 ******************** 398 399 400 -------------------------- 401 LMD_LES_MARS: Tests with new physics in unified frame 402 M 53 mesoscale/LMD_LES_MARS/modif_mars/module_model_constants.F 403 M 53 mesoscale/LMD_LES_MARS/modif_mars/module_first_rk_step_part1.F 404 M 53 mesoscale/LMD_MM_MARS/SRC/WRFV2/phys/module_lmd_driver.F 405 Modifications made to cope with new soil scheme 406 407 M 53 mesoscale/LMD_MM_MARS/SRC/WRFV2/mars_lmd/libf/phymars/meso_physiq.F 408 Commented aeronomars in old physics so that the model can compile with lots of grid points 409 410 -------------------------- 411 LMD_MM_MARS: Implement tracers with the new physics. Test with JBM runs with 5 tracers 412 including radiatively active dust and water ice 413 TODO: propagate reading "traceur.def" and few initialisations from 414 testphys1d.F into module_lmd_driver.F 415 416 M 53 mars/libf/phymars/dimradmars.h 417 M 53 mars/libf/phymars/callradite.F 418 Change it back to both dust and ice radiatively active 419 420 M 53 mesoscale/LMD_MM_MARS/makemeso 421 Allow to "fresh start" with the inclusion of "clean -a" in the script 422 423 M 53 mesoscale/LMD_MM_MARS/SRC/WRFV2/Registry/Registry.EM 424 M 53 mesoscale/LMD_MM_MARS/SRC/WRFV2/dyn_em/module_initialize_real.F 425 M 53 mesoscale/LMD_MM_MARS/SRC/WRFV2/dyn_em/solve_em.F 426 M 53 mesoscale/LMD_MM_MARS/SRC/WRFV2/main/real_em.F 427 M 53 mesoscale/LMD_MM_MARS/SIMU/runmeso 428 Added the option mars==11 with 5 tracers: CO2 H2Ovap H2Oice DUST DUSTN 429 -- Note that the order matters for H2Ovap and H2Oice 430 431 LMD_MM_MARS: Create a folder to run LMD GCM with exact same physics as mesoscale 432 433 A 0 mesoscale/LMDZ.MARS/libf/phymars/physiq.F 434 All files in mesoscale/LMDZ.MARS/libf are links except this one 435 --> Because specific WRITEDIAGFI commands are set to output what is needed PREP_MARS 436 --> Something must be done so that qCO2, qdust, qdustN can be propagated too !!! 437 438 A 0 mesoscale/LMDZ.MARS/libf_gcm 439 A 0 mesoscale/LMDZ.MARS/in_lmdz_mars_newphys 440 Two important links that must not be broken 441 442 A 0 mesoscale/LMDZ.MARS/myGCM 443 This folder is for runs. Only links here -- except temp files which are not synchronized. 444 445 M 53 mesoscale/LMD_MM_MARS/SIMU/in_lmdz_mars_newphys/compile 446 A 0 mesoscale/LMD_MM_MARS/SIMU/in_lmdz_mars_newphys/myGCM/run.def 447 A 0 mesoscale/LMD_MM_MARS/SIMU/in_lmdz_mars_newphys/myGCM/traceur.def 448 M 53 mesoscale/LMD_MM_MARS/SIMU/in_lmdz_mars_newphys/myGCM/callphys.def 449 A 0 mesoscale/LMD_MM_MARS/SIMU/in_lmdz_mars_newphys/myGCM/callphys.def.csttau 450 Those files are needed to run the GCM in order to prepare initial & boundary 451 conditions for the mesoscale... but basically it is the exact same GCM 452 --> compile is a convenient script 453 454 A 0 mesoscale/LMDZ.MARS/makegcm 455 A 0 mesoscale/LMDZ.MARS/makegcm_g95 456 A 0 mesoscale/LMDZ.MARS/create_make_gcm 457 This is supposed to be merged one day with files in trunk/mars/ 458 459 A 0 mesoscale/LMDZ.MARS/myGCM/DEFS_JB 460 Necessary files to restart a GCM run corresponding to new water cycle in JB's thesis -
trunk/mars/libf/phymars/callradite.F
r51 r54 263 263 c PLEASE MAKE SURE that you set up the right number of 264 264 c scatterers in dimradmars.h (naerkind); 265 name_iaer(1) = "dust_conrath" 266 cname_iaer(1) = "dust_doubleq"267 cc name_iaer(2) = "dust_submicron" 268 cname_iaer(2) = "h2o_ice"265 c name_iaer(1) = "dust_conrath" !! poussiere classique 266 name_iaer(1) = "dust_doubleq" 267 cc name_iaer(2) = "dust_submicron" !! JB: experimental 268 name_iaer(2) = "h2o_ice" 269 269 c ---------------------------------------------------------- 270 270 -
trunk/mars/libf/phymars/dimradmars.h
r51 r54 27 27 ! (ex: naerkind=2 if you use one dust mode and active ice ...) 28 28 integer naerkind 29 parameter (naerkind=1)30 !parameter (naerkind=2)29 ! parameter (naerkind=1) 30 parameter (naerkind=2) 31 31 32 32 ! Reference wavelengths used to compute reference optical depth (m) -
trunk/mesoscale/LMD_LES_MARS/modif_mars/module_first_rk_step_part1.F
r34 r54 616 616 & ,MARS_CICE=grid%mars_cice,MARS_EMISS=grid%mars_emiss & 617 617 & ,MARS_TSOIL=grid%mars_tsoil & 618 #ifdef NEWPHYS 619 & ,MARS_ISOIL=grid%mars_isoil & 620 & ,MARS_DSOIL=grid%mars_dsoil & 621 #endif 618 622 & ,MARS_GW=grid%mars_gw & 619 623 & ,NUM_SOIL_LAYERS=config_flags%num_soil_layers & -
trunk/mesoscale/LMD_LES_MARS/modif_mars/module_model_constants.F
r34 r54 19 19 20 20 #if ( NMM_CORE == 1 ) 21 REAL , PARAMETER :: r_d = 19 2. ! gas constant m2 s-2 K-122 REAL , PARAMETER :: cp = 844.6! r= 8.314511E+0 *1000.E+0/mugaz21 REAL , PARAMETER :: r_d = 191. ! gas constant m2 s-2 K-1 22 REAL , PARAMETER :: cp = 744.5 ! r= 8.314511E+0 *1000.E+0/mugaz 23 23 #else 24 REAL , PARAMETER :: r_d = 19 2.25 REAL , PARAMETER :: cp = 844.624 REAL , PARAMETER :: r_d = 191. 25 REAL , PARAMETER :: cp = 744.5 26 26 #endif 27 27 28 28 REAL , PARAMETER :: r_v = 461.6 ! gas constant for water vapor 29 29 REAL , PARAMETER :: cv = cp-r_d 30 REAL , PARAMETER :: cpv = 4.4*r_v ! cp / R = 4.4 ?? ! rcp = r/cp ~0.25679330 REAL , PARAMETER :: cpv = 3.9*r_v ! cp / R = 4.4 ?? ! rcp = r/cp ~0.256793 31 31 REAL , PARAMETER :: cvv = cpv-r_v 32 32 REAL , PARAMETER :: cvpm = -cv/cp … … 73 73 REAL , PARAMETER :: wdtemisiceN = 0.4 ! time scale for snow metamorphism (north) !2 74 74 REAL , PARAMETER :: wdtemisiceS = 0.4 ! time scale for snow metamorphism (south) !2 75 #ifdef NEWPHYS 76 REAL , PARAMETER :: wvolcapa = 1.e6 ! volumetric capacity of soil (new soil model) 77 #endif 75 78 ! 76 79 !------------------------------- -
trunk/mesoscale/LMD_MM_MARS/SIMU/in_lmdz_mars_newphys/compile
r31 r54 24 24 #nz=32 25 25 ################## 26 tracers=5 27 nx=64 28 ny=48 29 nz=25 30 ################## 31 32 26 33 27 34 -
trunk/mesoscale/LMD_MM_MARS/SIMU/in_lmdz_mars_newphys/myGCM/callphys.def
r31 r54 3 3 #Run with or without tracer transport ? 4 4 tracer=.false. 5 ##true???6 5 7 6 #Diurnal cycle ? if diurnal=False, diurnal averaged solar heating -
trunk/mesoscale/LMD_MM_MARS/SIMU/runmeso
r32 r54 165 165 0) tracers='1' ;; 166 166 1) tracers='2' ;; 167 11) tracers='5' ;; 167 168 *) tracers='1' ;; 168 169 esac -
trunk/mesoscale/LMD_MM_MARS/SRC/WRFV2/Registry/Registry.EM
r28 r54 113 113 state real QH2O_ICE ikjftb scalar 1 - i01rhusdf=(bdy_interp:dt) "QH2O_ICE" "Water ice mixing ratio" "kg kg-1" 114 114 state real QDUST ikjftb scalar 1 - i01rhusdf=(bdy_interp:dt) "QDUST" "Dust mixing ratio" "kg kg-1" 115 #### 116 state real Qco2 ikjftb scalar 1 - i01rhusdf=(bdy_interp:dt) "Qco2" "CO2 mixing ratio" "kg kg-1" 117 #state real Qdust_mass ikjftb scalar 1 - i01rhusdf=(bdy_interp:dt) "Qdust_mass" "dust_mass mixing ratio" "kg kg-1" 118 state real Qdust_number ikjftb scalar 1 - i01rhusdf=(bdy_interp:dt) "Qdust_number" "dust_number mixing ratio" "kg kg-1" 119 #state real Qh2o_vap ikjftb scalar 1 - i01rhusdf=(bdy_interp:dt) "Qh2o_vap" "h2o_vap mixing ratio" "kg kg-1" 120 #state real Qh2o_ice ikjftb scalar 1 - i01rhusdf=(bdy_interp:dt) "Qh2o_ice" "h2o_ice mixing ratio" "kg kg-1" 115 121 #### 116 122 #### … … 1324 1330 package nowater mars==0 - moist:qv 1325 1331 package water mars==1 - moist:qv;scalar:qh2o,qh2o_ice 1326 package dust mars==2 - moist:qv;scalar:qdust 1332 package dust mars==2 - moist:qv;scalar:qdust 1333 #package newwater mars==11 - scalar:qco2,qh2o,qh2o_ice 1334 package newwater mars==11 - scalar:qco2,qh2o,qh2o_ice,qdust,qdust_number 1327 1335 ##### MARS OPTIONS 1328 1336 ##### MARS OPTIONS -
trunk/mesoscale/LMD_MM_MARS/SRC/WRFV2/dyn_em/module_initialize_real.F
r51 r54 1253 1253 its , ite , jts , jte , kts , kte ) 1254 1254 1255 if ( config_flags%mars == 1) then1255 if ( (config_flags%mars == 1) .OR. (config_flags%mars == 11) ) then 1256 1256 !if (size(scalar(0,0,0,:)) > 2) then 1257 1257 !! autre possibilite: activer les flags dans metgrid.tbl -
trunk/mesoscale/LMD_MM_MARS/SRC/WRFV2/dyn_em/solve_em.F
r34 r54 2692 2692 2693 2693 !!!!****MARS: pass water vapor at boundaries (and all other tracers if nested domains) 2694 IF ( ( (config_flags%mars .eq. 1) .AND. (is .EQ. 2) ) .OR. config_flags%nested ) THEN 2694 IF ( ( (config_flags%mars .eq. 1) .AND. (is .EQ. 2) ) & 2695 .OR. ( (config_flags%mars .eq. 11) .AND. (is .EQ. 2) ) & 2696 .OR. config_flags%nested ) THEN 2695 2697 CALL relax_bdy_scalar ( scalar_tend(ims,kms,jms,is), & 2696 2698 scalar(ims,kms,jms,is), grid%em_mut, & … … 2750 2752 !!!!****MARS: if parent domain and any other tracer than water vapor, no bdy and simple zero flux bdy condition 2751 2753 IF ( config_flags%specified ) THEN 2752 IF ( (config_flags%mars .ne. 1) .OR. ((config_flags%mars .eq. 1) .and. (is .ne. 2)) ) THEN 2754 IF ( (config_flags%mars .ne. 1) & 2755 .OR. ((config_flags%mars .eq. 11) .and. (is .ne. 2)) & 2756 .OR. ((config_flags%mars .eq. 1 ) .and. (is .ne. 2)) ) THEN 2753 2757 CALL flow_dep_bdy ( scalar(ims,kms,jms,is), & 2754 2758 grid%em_ru_m, grid%em_rv_m, config_flags, & -
trunk/mesoscale/LMD_MM_MARS/SRC/WRFV2/main/real_em.F
r11 r54 679 679 ! ids, ide, jds, jde, kds, kde, ims, ime, jms, jme, kms, kme, ips, ipe, jps, jpe, kps, kpe ) 680 680 !!!!MARS : pb a regler avec P_QH2O qui n est pas reconnu si QH2O n est pas dans active dans le registry 681 IF ( config_flags%mars .eq. 1) THEN681 IF ( (config_flags%mars .eq. 1) .OR. (config_flags%mars == 11) ) THEN 682 682 CALL couple ( grid%em_mu_2 , grid%em_mub , qbdy3dtemp1 , grid%scalar(:,:,:,2) , 't' , grid%msft , & 683 683 ids, ide, jds, jde, kds, kde, ims, ime, jms, jme, kms, kme, ips, ipe, jps, jpe, kps, kpe ) … … 742 742 ! ips , ipe , jps , jpe , kps , kpe ) 743 743 !!!!MARS 744 IF ( config_flags%mars .eq. 1) THEN744 IF ( (config_flags%mars .eq. 1) .OR. (config_flags%mars == 11) ) THEN 745 745 CALL stuff_bdy ( qbdy3dtemp1 , grid%scalar_b(:,:,:,:,2) , 'T' , ijds , ijde , spec_bdy_width , & 746 746 ids , ide , jds , jde , kds , kde , & … … 808 808 ! ids, ide, jds, jde, kds, kde, ims, ime, jms, jme, kms, kme, ips, ipe, jps, jpe, kps, kpe ) 809 809 !!!!MARS 810 IF ( config_flags%mars .eq. 1) THEN810 IF ( (config_flags%mars .eq. 1) .OR. (config_flags%mars == 11) ) THEN 811 811 CALL couple ( grid%em_mu_2 , grid%em_mub , qbdy3dtemp2 , grid%scalar(:,:,:,2) , 't' , grid%msft , & 812 812 ids, ide, jds, jde, kds, kde, ims, ime, jms, jme, kms, kme, ips, ipe, jps, jpe, kps, kpe ) … … 874 874 ! ips , ipe , jps , jpe , kps , kpe ) 875 875 !!!!MARS 876 IF ( config_flags%mars .eq. 1) THEN876 IF ( (config_flags%mars .eq. 1) .OR. (config_flags%mars == 11) ) THEN 877 877 CALL stuff_bdytend ( qbdy3dtemp2 , qbdy3dtemp1 , REAL(interval_seconds) , grid%scalar_bt(:,:,:,:,2) , 'T' , & 878 878 ijds , ijde , spec_bdy_width , & … … 1028 1028 ! ips , ipe , jps , jpe , kps , kpe ) 1029 1029 !!!!MARS 1030 IF ( config_flags%mars .eq. 1) THEN1030 IF ( (config_flags%mars .eq. 1) .OR. (config_flags%mars == 11) ) THEN 1031 1031 CALL stuff_bdy ( qbdy3dtemp1 , grid%scalar_b(:,:,:,:,2) , 'T', ijds , ijde , spec_bdy_width , & 1032 1032 ids , ide , jds , jde , kds , kde , & -
trunk/mesoscale/LMD_MM_MARS/SRC/WRFV2/mars_lmd/libf/phymars/meso_physiq.F
r11 r54 873 873 874 874 875 c-----------------------------------------------------------------------876 c 3. Gravity wave and subgrid scale topography drag :877 c -------------------------------------------------878 879 880 IF(calllott)THEN881 882 CALL calldrag_noro(ngrid,nlayer,ptimestep,883 & pplay,pplev,pt,pu,pv,zdtgw,zdugw,zdvgw)884 885 DO l=1,nlayer886 DO ig=1,ngrid887 pdv(ig,l)=pdv(ig,l)+zdvgw(ig,l)888 pdu(ig,l)=pdu(ig,l)+zdugw(ig,l)889 pdt(ig,l)=pdt(ig,l)+zdtgw(ig,l)890 ENDDO891 ENDDO892 ENDIF875 !c----------------------------------------------------------------------- 876 !c 3. Gravity wave and subgrid scale topography drag : 877 !c ------------------------------------------------- 878 ! 879 ! 880 ! IF(calllott)THEN 881 ! 882 ! CALL calldrag_noro(ngrid,nlayer,ptimestep, 883 ! & pplay,pplev,pt,pu,pv,zdtgw,zdugw,zdvgw) 884 ! 885 ! DO l=1,nlayer 886 ! DO ig=1,ngrid 887 ! pdv(ig,l)=pdv(ig,l)+zdvgw(ig,l) 888 ! pdu(ig,l)=pdu(ig,l)+zdugw(ig,l) 889 ! pdt(ig,l)=pdt(ig,l)+zdtgw(ig,l) 890 ! ENDDO 891 ! ENDDO 892 ! ENDIF 893 893 894 894 c----------------------------------------------------------------------- … … 1153 1153 c ------------------ 1154 1154 1155 c --------------1156 c photochemistry :1157 c --------------1158 IF(photochem .or. thermochem) then1159 call calchim(ptimestep,pplay,pplev,pt,pdt,dist_sol,mu0,1160 . zzlay,zday,pq,pdq,zdqchim,zdqschim,zdqcloud,zdqscloud)1161 1162 c Photochemistry includes condensation of H2O21163 1164 do iq=nqchem_min,nq1165 if (noms(iq).eq."h2o2") then1166 DO l=1,nlayer1167 DO ig=1,ngrid1168 pdq(ig,l,iq)=pdq(ig,l,iq)+ zdqchim(ig,l,iq)1169 pdq(ig,l,iq)=pdq(ig,l,iq)+ zdqcloud(ig,l,iq)1170 ENDDO1171 ENDDO1172 else1173 DO l=1,nlayer1174 DO ig=1,ngrid1175 pdq(ig,l,iq)=pdq(ig,l,iq)+ zdqchim(ig,l,iq)1176 ENDDO1177 ENDDO1178 endif1179 ENDDO1180 do iq=nqchem_min,nq1181 if (noms(iq).eq."h2o2") then1182 DO ig=1,ngrid1183 dqsurf(ig,iq)= dqsurf(ig,iq) + zdqschim(ig,iq)1184 dqsurf(ig,iq)= dqsurf(ig,iq) + zdqscloud(ig,iq)1185 ENDDO1186 else1187 DO ig=1,ngrid1188 dqsurf(ig,iq)= dqsurf(ig,iq) + zdqschim(ig,iq)1189 ENDDO1190 endif1191 ENDDO1192 1193 END IF ! (photochem.or.thermochem)1194 c print*,'photochem ok'1155 !c -------------- 1156 !c photochemistry : 1157 !c -------------- 1158 ! IF(photochem .or. thermochem) then 1159 ! call calchim(ptimestep,pplay,pplev,pt,pdt,dist_sol,mu0, 1160 ! . zzlay,zday,pq,pdq,zdqchim,zdqschim,zdqcloud,zdqscloud) 1161 ! 1162 !c Photochemistry includes condensation of H2O2 1163 ! 1164 ! do iq=nqchem_min,nq 1165 ! if (noms(iq).eq."h2o2") then 1166 ! DO l=1,nlayer 1167 ! DO ig=1,ngrid 1168 ! pdq(ig,l,iq)=pdq(ig,l,iq)+ zdqchim(ig,l,iq) 1169 ! pdq(ig,l,iq)=pdq(ig,l,iq)+ zdqcloud(ig,l,iq) 1170 ! ENDDO 1171 ! ENDDO 1172 ! else 1173 ! DO l=1,nlayer 1174 ! DO ig=1,ngrid 1175 ! pdq(ig,l,iq)=pdq(ig,l,iq)+ zdqchim(ig,l,iq) 1176 ! ENDDO 1177 ! ENDDO 1178 ! endif 1179 ! ENDDO 1180 ! do iq=nqchem_min,nq 1181 ! if (noms(iq).eq."h2o2") then 1182 ! DO ig=1,ngrid 1183 ! dqsurf(ig,iq)= dqsurf(ig,iq) + zdqschim(ig,iq) 1184 ! dqsurf(ig,iq)= dqsurf(ig,iq) + zdqscloud(ig,iq) 1185 ! ENDDO 1186 ! else 1187 ! DO ig=1,ngrid 1188 ! dqsurf(ig,iq)= dqsurf(ig,iq) + zdqschim(ig,iq) 1189 ! ENDDO 1190 ! endif 1191 ! ENDDO 1192 ! 1193 ! END IF ! (photochem.or.thermochem) 1194 !c print*,'photochem ok' 1195 1195 1196 1196 c 7c. Aerosol particles … … 1274 1274 1275 1275 1276 c----------------------------------------------------------------------- 1277 c 8.5 THERMOSPHERE CALCULATION 1278 c----------------------------------------------------------------------- 1279 1280 if (callthermos) then 1281 call thermosphere(pplev,pplay,dist_sol, 1282 $ mu0,ptimestep,ptime,zday,tsurf,zzlev,zzlay, 1283 & pt,pq,pu,pv,pdt,pdq, 1284 $ zdteuv,zdtconduc,zdumolvis,zdvmolvis,zdqmoldiff) 1285 c do iq=nqchem_min,nq 1286 c write(*,*) 'thermo iq,pq',iq,pq(690,1,iq) 1287 c enddo 1288 1289 DO l=1,nlayer 1290 DO ig=1,ngrid 1291 dtrad(ig,l)=dtrad(ig,l)+zdteuv(ig,l) 1292 pdt(ig,l)=pdt(ig,l)+zdtconduc(ig,l) 1293 & +zdteuv(ig,l) 1294 pdv(ig,l)=pdv(ig,l)+zdvmolvis(ig,l) 1295 pdu(ig,l)=pdu(ig,l)+zdumolvis(ig,l) 1296 DO iq=1, nq 1297 pdq(ig,l,iq)=pdq(ig,l,iq)+zdqmoldiff(ig,l,iq) 1298 ENDDO 1299 ENDDO 1300 ENDDO 1301 1302 1303 endif 1276 !c----------------------------------------------------------------------- 1277 !c 8.5 THERMOSPHERE CALCULATION 1278 !c----------------------------------------------------------------------- 1279 ! 1280 ! if (callthermos) then 1281 ! call thermosphere(pplev,pplay,dist_sol, 1282 ! $ mu0,ptimestep,ptime,zday,tsurf,zzlev,zzlay, 1283 ! & pt,pq,pu,pv,pdt,pdq, 1284 ! $ zdteuv,zdtconduc,zdumolvis,zdvmolvis,zdqmoldiff) 1285 !c do iq=nqchem_min,nq 1286 !c write(*,*) 'thermo iq,pq',iq,pq(690,1,iq) 1287 !c enddo 1288 ! 1289 ! DO l=1,nlayer 1290 ! DO ig=1,ngrid 1291 ! dtrad(ig,l)=dtrad(ig,l)+zdteuv(ig,l) 1292 ! pdt(ig,l)=pdt(ig,l)+zdtconduc(ig,l) 1293 ! & +zdteuv(ig,l) 1294 ! pdv(ig,l)=pdv(ig,l)+zdvmolvis(ig,l) 1295 ! pdu(ig,l)=pdu(ig,l)+zdumolvis(ig,l) 1296 ! DO iq=1, nq 1297 ! pdq(ig,l,iq)=pdq(ig,l,iq)+zdqmoldiff(ig,l,iq) 1298 ! ENDDO 1299 ! ENDDO 1300 ! ENDDO 1301 ! 1302 ! 1303 ! endif 1304 1304 1305 c----------------------------------------------------------------------- 1305 1306 c 8. Surface and sub-surface soil temperature -
trunk/mesoscale/LMD_MM_MARS/SRC/WRFV2/phys/module_lmd_driver.F
r34 r54 697 697 tsoil_val = tsoil_val*0. + tsurf_val 698 698 ENDIF 699 #ifdef NEWPHYS 700 isoil_val(:)=MARS_ISOIL(i,:,j) 701 dsoil_val(:)=MARS_DSOIL(i,:,j) 702 #endif 699 703 ELSE 700 704 IF ( (i == ips) .AND. (j == jps) ) PRINT *,'** Mars ** IDEALIZED SIMULATION tsoil is set to tsurf' 701 705 do k=1,nsoil 702 706 tsoil_val(k) = tsurf_val 707 #ifdef NEWPHYS 708 IF ( (i == ips) .AND. (j == jps) ) PRINT *,'** Mars ** IDEALIZED SIMULATION isoil and dsoil standard' 709 isoil_val(k) = inertiedat_val 710 dsoil_val(k) = sqrt(887.75/3.14)*((2.**(k-0.5))-1.) * inertiedat_val / wvolcapa 711 IF ( (i == ips) .AND. (j == jps) ) PRINT *,'** Mars ** ISOIL DSOIL are ',isoil_val(k), dsoil_val(k) 712 #endif 703 713 enddo 704 714 ENDIF 705 706 #ifdef NEWPHYS707 isoil_val(:)=MARS_ISOIL(i,:,j)708 dsoil_val(:)=MARS_DSOIL(i,:,j)709 #endif710 715 711 716 !-------------------! -
trunk/mesoscale/LMD_MM_MARS/makemeso
r50 r54 52 52 justphys=0 53 53 debug=0 54 fresh_start=0 54 55 phys="" 55 while getopts "drc:njhgp " options; do56 while getopts "drc:njhgpf" options; do 56 57 case $options in 57 58 d ) donotcompile=1;; ## just to check the compile folder … … 61 62 j ) justphys=1;; ## just compile LMD physics 62 63 g ) debug=1;; ## debug mode 63 p ) phys="newphys_";; 64 p ) phys="newphys_";; ## with new physics 65 f ) fresh_start=1;; ## a fresh start 64 66 h ) echo " 65 67 # Use: … … 83 85 # 84 86 # makemeso -p ## with new LMD physics 87 # 88 # makemeso -f ## fresh start [clean -a] 85 89 " ; exit ;; 86 90 esac … … 185 189 if [[ "${phys}" == "newphys_" ]] 186 190 then 187 sed s+"mars_lmd"+"mars_lmd_new"+g copy_model > copy_model_tmp188 chmod 755 copy_model_tmp189 ./copy_model_tmp190 \rm copy_model_tmp191 mv WRFV2 ${conf_wrf}/192 cd ${conf_wrf}/WRFV2193 ln -sf mars_lmd_new mars_lmd194 ln -sf meso_callkeys_newphys.h meso_callkeys.h195 cd Registry ; Registry.bash ; cd ..191 sed s+"mars_lmd"+"mars_lmd_new"+g copy_model > copy_model_tmp 192 chmod 755 copy_model_tmp 193 ./copy_model_tmp 194 \rm copy_model_tmp 195 mv WRFV2 ${conf_wrf}/ 196 cd ${conf_wrf}/WRFV2 197 ln -sf mars_lmd_new mars_lmd 198 ln -sf meso_callkeys_newphys.h meso_callkeys.h 199 cd Registry ; Registry.bash ; cd .. 196 200 else 197 ./copy_model198 mv WRFV2 ${conf_wrf}/199 cd ${conf_wrf}/WRFV2200 cd Registry ; Registry.bash ; cd ..201 fi201 ./copy_model 202 mv WRFV2 ${conf_wrf}/ 203 cd ${conf_wrf}/WRFV2 204 cd Registry ; Registry.bash ; cd .. 205 fi 202 206 else 203 207 cd ${conf_wrf}/WRFV2 204 echo Did you modify anything in the Registry or clean ? y for yes, any key for no ; read answer 205 case ${answer} in 206 y) cd Registry ; mv Registry Registry.bak ; Registry.bash ; cd .. ;; 207 *) answer='no' ;; 208 esac 208 if [ ${fresh_start} -eq 1 ] 209 then 210 echo '*** FRESH START, I clean everything' 211 clean -a > /dev/null 2> /dev/null 212 cd Registry ; mv Registry Registry.bak ; Registry.bash ; cd .. 213 answer='y' ## a voir... pas si sur 214 else 215 echo Did you modify anything in the Registry or clean ? y for yes, any key for no ; read answer 216 case ${answer} in 217 y) cd Registry ; mv Registry Registry.bak ; Registry.bash ; cd .. ;; 218 *) answer='no' ;; 219 esac 220 fi 209 221 fi 210 222 # summary
Note: See TracChangeset
for help on using the changeset viewer.