Changeset 674
- Timestamp:
- May 25, 2012, 8:06:39 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/physiq.F
r669 r674 368 368 aerosol(:,:,:)=0 369 369 dtrad(:,:)=0 370 371 #ifndef MESOSCALE 370 372 fluxrad(:)=0 371 372 373 wstar(:)=0. 374 #else 375 #include "meso_inc/meso_inc_ini_restart.F" 376 #endif 373 377 374 378 c read startfi … … 1257 1261 c 10. Write output files 1258 1262 c ---------------------- 1263 1264 c Save variables for eventual restart in MMM and LES 1265 #ifdef MESOSCALE 1266 #include "meso_inc/meso_inc_save_restart.F" 1267 #endif 1259 1268 1260 1269 c ------------------------------- -
trunk/MESOSCALE/LMD_MM_MARS/SRC/LES/modif_mars/Registry.EM
r390 r674 224 224 state real mars_cice ij misc 1 - i012rd "MARS_CICE" "co2 ice" "kg" 225 225 state real mars_wice ij misc 1 - i012rd "MARS_WICE" "h2o ice" "kg/m2" 226 state real mars_tsoil ilj misc 1 - i012rd "MARS_TSOIL" "soil temperatures" "K" 226 state real mars_tsurf ij misc 1 - i012rd "MARS_TSURF" "surface temperature" "K" 227 state real mars_fluxrad ij misc 1 - i012rd "MARS_FLUXRAD" "net rad flux at surf" "W.m-2" 228 state real mars_wstar ij misc 1 - i012rd "MARS_WSTAR" "free convection velocity" "m.s-1" 229 state real mars_tsoil ilj misc 1 - i012rd "MARS_TSOIL" "soil temperatures" "K" 230 state real mars_q2 ikj misc 1 Z i012rd "MARS_Q2" "turbulent kinetic energy" "kg.m-3" 227 231 state real mars_isoil ilj misc 1 - i012rd "MARS_ISOIL" "soil thermal inertia" "tiu" 228 232 state real mars_dsoil ilj misc 1 - i012rd "MARS_DSOIL" "soil depths" "m" -
trunk/MESOSCALE/LMD_MM_MARS/SRC/LES/modif_mars/module_first_rk_step_part1.F
r390 r674 622 622 & ,MARS_WICE=grid%mars_wice & 623 623 & ,MARS_TSOIL=grid%mars_tsoil & 624 & ,MARS_Q2=grid%mars_q2 & 625 & ,MARS_FLUXRAD=grid%mars_fluxrad & 626 & ,MARS_WSTAR=grid%mars_wstar & 627 & ,MARS_TSURF=grid%mars_tsurf & 624 628 #ifdef NEWPHYS 625 629 & ,MARS_ISOIL=grid%mars_isoil & … … 652 656 #include "module_lmd_driver_output4.inc" 653 657 #endif 654 & ,SLPX=grid%slpx,SLPY=grid%slpy )658 & ,SLPX=grid%slpx,SLPY=grid%slpy,RESTART=config_flags%restart) 655 659 ENDIF 656 660 !!!!!!!!!!!!!!!!!!!!!!! -
trunk/MESOSCALE/LMD_MM_MARS/SRC/LES/modif_mars/module_initialize_les.F
r126 r674 340 340 grid%mars_cice(i,j)=0. 341 341 grid%mars_wice(i,j)=0. 342 !! >> Used for restarts only: 343 grid%mars_q2(i,:,j)=0. 344 grid%mars_fluxrad(i,j)=0. 345 grid%mars_wstar(i,j)=0. 346 grid%mars_tsurf(i,j)=0. 347 !! << 342 348 grid%slpx(i,j) = 0. 343 349 grid%slpy(i,j) = 0. -
trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/Registry/Registry.EM
r665 r674 228 228 #### 229 229 ############# in module_initialize ################## in solve_em and lmd_driver ############################### 230 state real albedo_gcm ij misc 1 - i012rd "MARS_ALB" "albedo of naked ground" "0 - 1 fraction" 231 state real therm_inert ij misc 1 - i012rd "MARS_TI" "thermal inertia" "J/m2/K/s0.5" 232 state real mars_z0 ij misc 1 - i012rd "MARS_Z0" "surface roughness" "m" 233 state real slpx ij misc 1 - i012rd "SLOPEX" "slope x direction" "rad" 234 state real slpy ij misc 1 - i012rd "SLOPEY" "slope y direction" "rad" 235 state real mars_emiss ij misc 1 - i012rd "MARS_EMISS" "emissivity" "0 - 1 fraction" 236 state real mars_cice ij misc 1 - i012rd "MARS_CICE" "co2 ice" "kg/m2" 237 state real mars_wice ij misc 1 - i012rd "MARS_WICE" "h2o ice" "kg/m2" 238 state real mars_tsoil ilj misc 1 - i012rd "MARS_TSOIL" "soil temperatures" "K" 239 state real mars_isoil ilj misc 1 - i012rd "MARS_ISOIL" "soil thermal inertia" "tiu" 240 state real mars_dsoil ilj misc 1 - i012rd "MARS_DSOIL" "soil depths" "m" 241 state real mars_gw ilj misc 1 - i012rd "MARS_GW" "gwparam" " " 230 state real albedo_gcm ij misc 1 - i012rd "MARS_ALB" "albedo of naked ground" "0 - 1 fraction" 231 state real therm_inert ij misc 1 - i012rd "MARS_TI" "thermal inertia" "J/m2/K/s0.5" 232 state real mars_z0 ij misc 1 - i012rd "MARS_Z0" "surface roughness" "m" 233 state real slpx ij misc 1 - i012rd "SLOPEX" "slope x direction" "rad" 234 state real slpy ij misc 1 - i012rd "SLOPEY" "slope y direction" "rad" 235 state real mars_emiss ij misc 1 - i012rd "MARS_EMISS" "emissivity" "0 - 1 fraction" 236 state real mars_cice ij misc 1 - i012rd "MARS_CICE" "co2 ice" "kg/m2" 237 state real mars_wice ij misc 1 - i012rd "MARS_WICE" "h2o ice" "kg/m2" 238 state real mars_fluxrad ij misc 1 - i012rd "MARS_FLUXRAD" "net rad flux at surf" "W.m-2" 239 state real mars_wstar ij misc 1 - i012rd "MARS_WSTAR" "free convection velocity" "m.s-1" 240 state real mars_tsurf ij misc 1 - i012rd "MARS_TSURF" "surface temperature" "K" 241 state real mars_tsoil ilj misc 1 - i012rd "MARS_TSOIL" "soil temperatures" "K" 242 state real mars_q2 ikj misc 1 Z i012rd "MARS_Q2" "turbulent kinetic energy" "kg.m-3" 243 state real mars_isoil ilj misc 1 - i012rd "MARS_ISOIL" "soil thermal inertia" "tiu" 244 state real mars_dsoil ilj misc 1 - i012rd "MARS_DSOIL" "soil depths" "m" 245 state real mars_gw ilj misc 1 - i012rd "MARS_GW" "gwparam" " " 242 246 #### 243 247 #### -
trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/call_meso_physiq1.inc
r234 r674 14 14 #endif 15 15 wday_ini, & 16 output_tab2d, output_tab3d, flag_LES) 16 output_tab2d, output_tab3d, & 17 wfluxrad,wwstar, & 18 flag_LES) 17 19 18 20 -
trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/call_meso_physiq2.inc
r234 r674 17 17 #endif 18 18 wday_ini, & 19 output_tab2d, output_tab3d, flag_LES) 19 output_tab2d, output_tab3d, & 20 wfluxrad,wwstar, & 21 flag_LES) 20 22 21 23 CASE(2) … … 29 31 #endif 30 32 wday_ini, & 31 output_tab2d, output_tab3d, flag_LES) 33 output_tab2d, output_tab3d, & 34 wfluxrad,wwstar, & 35 flag_LES) 32 36 33 37 ! CASE(3:) -
trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/call_meso_physiq3.inc
r234 r674 17 17 #endif 18 18 wday_ini, & 19 output_tab2d, output_tab3d, flag_LES) 19 output_tab2d, output_tab3d, & 20 wfluxrad,wwstar, & 21 flag_LES) 20 22 21 23 CASE(2) … … 29 31 #endif 30 32 wday_ini, & 31 output_tab2d, output_tab3d, flag_LES) 33 output_tab2d, output_tab3d, & 34 wfluxrad,wwstar, & 35 flag_LES) 32 36 33 37 CASE(3) … … 41 45 #endif 42 46 wday_ini, & 43 output_tab2d, output_tab3d, flag_LES) 47 output_tab2d, output_tab3d, & 48 wfluxrad,wwstar, & 49 flag_LES) 44 50 45 51 ! CASE(3:) -
trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/call_meso_physiq4.inc
r426 r674 17 17 #endif 18 18 wday_ini, & 19 output_tab2d, output_tab3d, flag_LES) 19 output_tab2d, output_tab3d, & 20 wfluxrad,wwstar, & 21 flag_LES) 20 22 21 23 CASE(2) … … 29 31 #endif 30 32 wday_ini, & 31 output_tab2d, output_tab3d, flag_LES) 33 output_tab2d, output_tab3d, & 34 wfluxrad,wwstar, & 35 flag_LES) 32 36 33 37 CASE(3) … … 41 45 #endif 42 46 wday_ini, & 43 output_tab2d, output_tab3d, flag_LES) 47 output_tab2d, output_tab3d, & 48 wfluxrad,wwstar, & 49 flag_LES) 44 50 45 51 CASE(4) … … 53 59 #endif 54 60 wday_ini, & 55 output_tab2d, output_tab3d, flag_LES) 56 61 output_tab2d, output_tab3d, & 62 wfluxrad,wwstar, & 63 flag_LES) 57 64 58 65 ! CASE(3:) -
trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/call_meso_physiq5.inc
r426 r674 17 17 #endif 18 18 wday_ini, & 19 output_tab2d, output_tab3d, flag_LES) 19 output_tab2d, output_tab3d, & 20 wfluxrad,wwstar, & 21 flag_LES) 20 22 21 23 CASE(2) … … 29 31 #endif 30 32 wday_ini, & 31 output_tab2d, output_tab3d, flag_LES) 33 output_tab2d, output_tab3d, & 34 wfluxrad,wwstar, & 35 flag_LES) 32 36 33 37 CASE(3) … … 41 45 #endif 42 46 wday_ini, & 43 output_tab2d, output_tab3d, flag_LES) 47 output_tab2d, output_tab3d, & 48 wfluxrad,wwstar, & 49 flag_LES) 44 50 45 51 CASE(4) … … 53 59 #endif 54 60 wday_ini, & 55 output_tab2d, output_tab3d, flag_LES) 61 output_tab2d, output_tab3d, & 62 wfluxrad,wwstar, & 63 flag_LES) 56 64 57 65 CASE(5) … … 65 73 #endif 66 74 wday_ini, & 67 output_tab2d, output_tab3d, flag_LES) 75 output_tab2d, output_tab3d, & 76 wfluxrad,wwstar, & 77 flag_LES) 68 78 69 79 -
trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/dyn_em/module_initialize_quarter_ss.F
r559 r674 456 456 grid%mars_cice(i,j)=0. 457 457 grid%mars_wice(i,j)=0. 458 !! >> Used for restarts only: 459 grid%mars_q2(i,:,j)=0. 460 grid%mars_fluxrad(i,j)=0. 461 grid%mars_wstar(i,j)=0. 462 grid%mars_tsurf(i,j)=0. 463 !! << 458 464 write(6,*) 'NOTE TO SELF. slpx and slpy set to 0 which means no slope insolation.' 459 465 grid%slpx(i,j) = 0. -
trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/dyn_em/module_initialize_real.F
r549 r674 278 278 grid%mars_cice(i,j)=grid%st010040(i,j) 279 279 grid%mars_wice(i,j)=grid%sm100200(i,j) 280 !! >> Used for restarts only: 281 grid%mars_q2(i,:,j)=0. 282 grid%mars_fluxrad(i,j)=0. 283 grid%mars_wstar(i,j)=0. 284 grid%mars_tsurf(i,j)=0. 285 !! << 280 286 !! one more security ... co2ice cannot be negative 281 287 IF (grid%mars_cice(i,j) .lt. 0.) grid%mars_cice(i,j)=0. -
trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/dyn_em/solve_em.F
r488 r674 863 863 & ,MARS_WICE=grid%mars_wice & 864 864 & ,MARS_TSOIL=grid%mars_tsoil & 865 & ,MARS_Q2=grid%mars_q2 & 866 & ,MARS_FLUXRAD=grid%mars_fluxrad & 867 & ,MARS_WSTAR=grid%mars_wstar & 868 & ,MARS_TSURF=grid%mars_tsurf & 865 869 #ifdef NEWPHYS 866 870 & ,MARS_ISOIL=grid%mars_isoil & … … 889 893 #include "module_lmd_driver_output4.inc" 890 894 #endif 891 & ,SLPX=grid%slpx,SLPY=grid%slpy )895 & ,SLPX=grid%slpx,SLPY=grid%slpy,RESTART=config_flags%restart) 892 896 ENDIF 893 897 -
trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/phys/module_lmd_driver.F
r667 r674 32 32 MARS_WICE, & 33 33 MARS_TSOIL, & 34 MARS_Q2, & 35 MARS_FLUXRAD, & 36 MARS_WSTAR, & 37 MARS_TSURF, & 34 38 #ifdef NEWPHYS 35 39 MARS_ISOIL, & … … 53 57 #include "module_lmd_driver_output1.inc" 54 58 #endif 55 SLPX,SLPY )59 SLPX,SLPY,RESTART) 56 60 ! NB: module_lmd_driver_output1.inc : output arguments generated from Registry 57 61 … … 115 119 MSFT,MSFU,MSFV, & 116 120 XLAT,XLONG,HT, & 117 MARS_ALB,MARS_TI,MARS_EMISS,MARS_CICE, & 118 MARS_WICE, & 121 MARS_ALB,MARS_TI,MARS_EMISS, & 119 122 SLPX,SLPY 123 REAL, DIMENSION( ims:ime, jms:jme ), INTENT(INOUT ) :: & 124 MARS_CICE,MARS_WICE, & 125 MARS_FLUXRAD,MARS_WSTAR,MARS_TSURF 120 126 ! 3D arrays 121 127 REAL, DIMENSION( ims:ime, kms:kme, jms:jme ), INTENT(IN ) :: & 122 128 dz8w,p8w,p,exner,t,t8w,rho,u,v,w,z,th 129 REAL, DIMENSION( ims:ime, kms:kme+1, jms:jme ), INTENT(INOUT ) :: & 130 MARS_Q2 123 131 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 124 132 REAL, DIMENSION( ims:ime, kms:kme, jms:jme ), INTENT(INOUT ) :: & … … 126 134 INTEGER, INTENT(IN ) :: HISTORY_INTERVAL 127 135 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 128 REAL, DIMENSION( ims:ime, NUM_SOIL_LAYERS, jms:jme ), INTENT(IN 136 REAL, DIMENSION( ims:ime, NUM_SOIL_LAYERS, jms:jme ), INTENT(INOUT ) :: & 129 137 MARS_TSOIL 130 138 #ifdef NEWPHYS … … 141 149 REAL, DIMENSION( ims:ime, kms:kme, jms:jme, 1:num_3d_s ), INTENT(INOUT ) :: & 142 150 scalar 151 ! Logical 152 LOGICAL, INTENT(IN ) :: restart 143 153 144 154 !------------------------------------------- … … 187 197 REAL :: zmea_val,zstd_val,zsig_val,zgam_val,zthe_val 188 198 REAL :: theta_val, psi_val 199 REAL :: wstar_val,fluxrad_val 189 200 LOGICAL :: firstcall,lastcall,tracerdyn 190 201 REAL,DIMENSION(:),ALLOCATABLE :: q2_val, qsurf_val, tsoil_val … … 198 209 REAL,DIMENSION(:),ALLOCATABLE :: wtheta, wpsi 199 210 ! v--- can they be modified ? 200 REAL,DIMENSION(:),ALLOCATABLE :: wtsurf,wco2ice,wemis 211 REAL,DIMENSION(:),ALLOCATABLE :: wtsurf,wco2ice,wemis,wwstar,wfluxrad 201 212 REAL,DIMENSION(:,:),ALLOCATABLE :: wq2,wqsurf,wtsoil 202 213 #ifdef NEWPHYS … … 257 268 #endif 258 269 270 !! FOR RESTART 271 REAL, DIMENSION(:,:), ALLOCATABLE, SAVE :: & 272 save_tsoil_restart 273 REAL, DIMENSION(:), ALLOCATABLE, SAVE :: & 274 save_tsurf_restart 275 REAL, DIMENSION(:), ALLOCATABLE, SAVE :: & 276 save_fluxrad_restart 277 REAL, DIMENSION(:), ALLOCATABLE, SAVE :: & 278 save_co2ice_restart 279 REAL, DIMENSION(:,:), ALLOCATABLE, SAVE :: & 280 save_q2_restart 281 REAL, DIMENSION(:,:), ALLOCATABLE, SAVE :: & 282 save_qsurf_restart 283 REAL, DIMENSION(:), ALLOCATABLE, SAVE :: & 284 save_wstar_restart 285 259 286 !!!IDEALIZED IDEALIZED 260 287 REAL :: lat_input, lon_input, ls_input, lct_input … … 402 429 flag_first_restart=.false. 403 430 #endif 431 432 ! Restart save arrays 433 ALLOCATE(save_tsoil_restart(ngrid,nsoil)) 434 ALLOCATE(save_fluxrad_restart(ngrid)) 435 ALLOCATE(save_co2ice_restart(ngrid)) 436 ALLOCATE(save_q2_restart(ngrid,nlayer+1)) 437 ALLOCATE(save_qsurf_restart(ngrid,nq)) 438 ALLOCATE(save_wstar_restart(ngrid)) 439 ALLOCATE(save_tsurf_restart(ngrid)) 440 save_tsoil_restart(:,:)=0. 441 save_fluxrad_restart(:)=0. 442 save_co2ice_restart(:)=0. 443 save_q2_restart(:,:)=0. 444 save_qsurf_restart(:,:)=0. 445 save_wstar_restart(:)=0. 446 save_tsurf_restart(:)=0. 447 404 448 !! put here some general information you'd like to print just once 405 449 print *, 'TILES: ', i_start,i_end, j_start, j_end ! numbers for simple runs, arrays for parallel runs … … 622 666 ALLOCATE(wqsurf(ngrid,nq)) !!!!! 623 667 ALLOCATE(wtsoil(ngrid,nsoil)) !!!!! 668 ALLOCATE(wfluxrad(ngrid)) 669 ALLOCATE(wwstar(ngrid)) 624 670 #ifdef NEWPHYS 625 671 ALLOCATE(wisoil(ngrid,nsoil)) !!!!! … … 769 815 !!! CAS DU CO2 770 816 DO iii=1,nq 771 IF ( wtnom(iii) .eq. 'co2' ) q_prof(:,iii) = 0.95817 IF ( wtnom(iii) .eq. 'co2' .and. (.not. restart)) q_prof(:,iii) = 0.95 772 818 ENDDO 773 819 IF ((MARS_MODE .EQ. 20) .OR. (MARS_MODE .EQ. 21)) THEN 774 IF (firstcall .EQV. .true. ) THEN820 IF (firstcall .EQV. .true. .and. (.not. restart)) THEN 775 821 q_prof(:,:) = 0.95 776 822 ENDIF … … 892 938 ! Ground temperature, emissivity, CO2 ice cover ! 893 939 !-----------------------------------------------! 894 tsurf_val=tsk(i,j) 940 IF (.not. restart) THEN 941 tsurf_val=tsk(i,j) ! because tsk is not updated in lmd_driver, the stored value in restart is at t, not t+dt 942 ! note to aslmd: i dont know why we dont update tsk, so I use MARS_TSURF to be conservative 943 ELSE 944 tsurf_val=MARS_TSURF(i,j) 945 ENDIF 895 946 emis_val=MARS_EMISS(i,j) 896 947 co2ice_val=MARS_CICE(i,j) … … 912 963 IF ( (i == ips) .AND. (j == jps) ) PRINT *,'** Mars ** IDEALIZED SIMULATION tsoil is set to tsurf' 913 964 do k=1,nsoil 914 tsoil_val(k) = tsurf_val 965 IF (.not.restart) THEN 966 tsoil_val(k) = tsurf_val 967 ELSE 968 !this is a restart run. We must not set tsoil to tsurf in the init. 969 !tsoil was saved in physiq.F under the name MARS_TSOIL in the restart file 970 !(see Registry) 971 tsoil_val(k)=MARS_TSOIL(i,k,j) 972 ENDIF 973 915 974 #ifdef NEWPHYS 916 975 IF ( nsoil .lt. 18 ) THEN … … 1028 1087 !-------------------------! 1029 1088 !-------------------------! 1030 q2_val(:)=0. !PBL wind variance 1089 IF (.not. restart) THEN 1090 q2_val(:)=0. !PBL wind variance 1091 fluxrad_val=0. 1092 wstar_val=0. 1093 ELSE 1094 q2_val(:)=MARS_Q2(i,:,j) 1095 fluxrad_val=MARS_FLUXRAD(i,j) 1096 wstar_val=MARS_WSTAR(i,j) 1097 ENDIF 1031 1098 1032 1099 !-----------------! … … 1048 1115 wemis(subs) = emis_val 1049 1116 wq2(subs,:) = q2_val(:) 1117 wfluxrad(subs) = fluxrad_val 1118 wwstar(subs) = wstar_val 1050 1119 wqsurf(subs,:) = qsurf_val(:) 1051 1120 wtsoil(subs,:) = tsoil_val(:) … … 1206 1275 DEALLOCATE(pw) 1207 1276 DEALLOCATE(pq) 1208 DEALLOCATE(wtsurf)1209 DEALLOCATE(wco2ice)1277 !DEALLOCATE(wtsurf) 1278 !DEALLOCATE(wco2ice) 1210 1279 DEALLOCATE(wemis) 1211 DEALLOCATE(wq2) 1212 DEALLOCATE(wqsurf) 1213 DEALLOCATE(wtsoil) 1280 !DEALLOCATE(wq2) 1281 !DEALLOCATE(wqsurf) 1282 !DEALLOCATE(wtsoil) 1283 !DEALLOCATE(wwstar) 1284 !DEALLOCATE(wfluxrad) 1214 1285 #ifdef NEWPHYS 1215 1286 DEALLOCATE(wisoil) … … 1271 1342 dq_save(:,:,:)=pdq(:,:,:) 1272 1343 #endif 1273 1344 save_tsoil_restart(:,:)=wtsoil(:,:) 1345 save_fluxrad_restart(:)=wfluxrad(:) 1346 save_co2ice_restart(:)=wco2ice(:) 1347 save_q2_restart(:,:)=wq2(:,:) 1348 save_qsurf_restart(:,:)=wqsurf(:,:) 1349 save_wstar_restart(:)=wwstar(:) 1350 save_tsurf_restart(:)=wtsurf(:) 1351 DEALLOCATE(wtsoil) 1352 DEALLOCATE(wfluxrad) 1353 DEALLOCATE(wco2ice) 1354 DEALLOCATE(wq2) 1355 DEALLOCATE(wqsurf) 1356 DEALLOCATE(wwstar) 1357 DEALLOCATE(wtsurf) 1274 1358 ENDIF call_physics 1275 1359 … … 1351 1435 !---------------------------! 1352 1436 PSFC(i,j)=PSFC(i,j)+pdpsrf(subs)*dt !!! here dt is needed 1437 1438 !------------------------------------! 1439 ! Save key variables for restart ! 1440 !------------------------------------! 1441 1442 MARS_TSOIL(i,:,j)=save_tsoil_restart(subs,:) 1443 MARS_FLUXRAD(i,j)=save_fluxrad_restart(subs) 1444 MARS_CICE(i,j)=save_co2ice_restart(subs) 1445 MARS_Q2(i,:,j)=save_q2_restart(subs,:) 1446 SELECT CASE (MARS_MODE) 1447 CASE (1,11,12) 1448 MARS_WICE(i,j)=save_qsurf_restart(subs,2) 1449 END SELECT 1450 MARS_WSTAR(i,j)=save_wstar_restart(subs) 1451 MARS_TSURF(i,j)=save_tsurf_restart(subs) 1353 1452 1354 1453 !---------! -
trunk/MESOSCALE/LMD_MM_MARS/makemeso
r666 r674 35 35 phys="" 36 36 scenario="" 37 while getopts "drc:njhg pfs:x" options; do37 while getopts "drc:njhgbpfs:x" options; do 38 38 case $options in 39 39 d ) donotcompile=1;; ## just to check the compile folder … … 380 380 sed s+"O3"+"O3 -mcmodel=large -shared-intel"+g configure.wrf > yeah ; mv -f yeah configure.wrf 381 381 sed s+"-llmd"+"-llmd $NETCDF/lib/libnetcdf.a"+g configure.wrf > yeah ; mv -f yeah configure.wrf 382 if [ ${debug} -ne 0 ] # not working for xlf! 383 then 384 echo 'DEBUG DEBUG DEBUG DEBUG' 385 sed s+"#-g"+" -g -no-ftz -traceback -ftrapuv -fp-stack-check -check"+g configure.wrf > yeah 386 mv -f yeah configure.wrf 387 fi 382 388 \rm conf > /dev/null ;; 383 389 … … 422 428 ifort_64_single) echo 5 | configure > log_compile 2> log_error 423 429 sed s+"-DIFORT_KLUDGE"+" "+g configure.wrf > yeah ; mv -f yeah configure.wrf 430 if [ ${debug} -ne 0 ] # not working for xlf! 431 then 432 echo 'DEBUG DEBUG DEBUG DEBUG' 433 sed s+"#-g"+" -g -no-ftz -traceback -ftrapuv -fp-stack-check -check"+g configure.wrf > yeah 434 mv -f yeah configure.wrf 435 fi 424 436 ## !!! NETCDF must be defined 425 437 sed s+"lio_grib_share"+"lio_grib_share -L../mars_lmd/libo -llmd $NETCDF/lib/libnetcdf.a"+g configure.wrf > yeah … … 431 443 sed s+"-cc=icc"+" "+g configure.wrf > yeah ; mv -f yeah configure.wrf 432 444 sed s+"-DIFORT_KLUDGE"+" "+g configure.wrf > yeah ; mv -f yeah configure.wrf 445 if [ ${debug} -ne 0 ] # not working for xlf! 446 then 447 echo 'DEBUG DEBUG DEBUG DEBUG' 448 sed s+"#-g"+" -g -no-ftz -traceback -ftrapuv -fp-stack-check -check"+g configure.wrf > yeah 449 mv -f yeah configure.wrf 450 fi 433 451 sed s+"O3"+"O2"+g configure.wrf > yeah ; mv -f yeah configure.wrf 434 452 #sed s+"O3"+"O0"+g configure.wrf > yeah ; mv -f yeah configure.wrf ### pour compilation rapide … … 535 553 then 536 554 echo 'DEBUG DEBUG DEBUG DEBUG' 537 sed s+"#-g"+" -g -Ktrap=fp -Mbounds"+g configure.wrf > yeah555 sed s+"#-g"+" -g -no-ftz -traceback -ftrapuv -fp-stack-check -check"+g configure.wrf > yeah 538 556 #sed s+"#-g"+"-g"+g configure.wrf > yeah 539 557 mv -f yeah configure.wrf
Note: See TracChangeset
for help on using the changeset viewer.