Changeset 156
- Timestamp:
- Jun 13, 2011, 5:36:43 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 22 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DOC/chantiers/commit_importants.log
r142 r156 939 939 Le nouveau script 'correcfft' est un sparadrap un peu moche mais sans consequence. 940 940 941 ********************* 942 **** commit_v156 **** 943 ********************* 944 changements pour pouvoir faire tourner le LES sans appel a la physique martienne 945 -- non teste mais fonctionne a priori egalement avec le MESOSCALE -
trunk/MESOSCALE/LMD_MM_MARS/SRC/LES/modif_mars/module_first_rk_step_part1.F
r94 r156 644 644 & ,TAVE=grid%tave, TSTD=grid%tstd & 645 645 & ,HISTORY_INTERVAL=model_config_rec%history_interval(1) & 646 #ifndef NOPHYS 646 647 !------------------! 647 648 ! OUTPUT VARIABLES ! 648 649 !------------------! 649 650 #include "module_lmd_driver_output4.inc" 651 #endif 650 652 & ,SLPX=grid%slpx,SLPY=grid%slpy) 651 653 ENDIF -
trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/dyn_em/solve_em.F
r94 r156 881 881 & ,TAVE=grid%em_tave, TSTD=grid%em_tstd & 882 882 & ,HISTORY_INTERVAL=model_config_rec%history_interval(1) & 883 #ifndef NOPHYS 883 884 !------------------! 884 885 ! OUTPUT VARIABLES ! 885 886 !------------------! 886 887 #include "module_lmd_driver_output4.inc" 888 #endif 887 889 & ,SLPX=grid%slpx,SLPY=grid%slpy) 888 890 ENDIF -
trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/phys/module_lmd_driver.F
r155 r156 48 48 TAVE, TSTD, & 49 49 HISTORY_INTERVAL, & 50 #ifndef NOPHYS 50 51 #include "module_lmd_driver_output1.inc" 52 #endif 51 53 SLPX,SLPY) 52 54 ! NB: module_lmd_driver_output1.inc : output arguments generated from Registry … … 71 73 !================================================================== 72 74 75 #ifndef NOPHYS 73 76 !! the only common needed is the one defining the physical grid 74 77 !! -- path is hardcoded, but the structure is not subject to change … … 86 89 include "../mars_lmd/libf/phymars/wrf_output_2d.h" 87 90 include "../mars_lmd/libf/phymars/wrf_output_3d.h" 91 #endif 88 92 89 93 !================================================================== … … 142 146 ! 2D : TSK, PSFC 143 147 ! 3D : RTHBLTEN,RUBLTEN,RVBLTEN 148 #ifndef NOPHYS 144 149 #include "module_lmd_driver_output2.inc" 145 150 REAL, DIMENSION(:,:), ALLOCATABLE :: output_tab2d 146 151 REAL, DIMENSION(:,:,:), ALLOCATABLE :: output_tab3d 152 #else 153 REAL, DIMENSION( ims:ime, jms:jme ), INTENT(INOUT) :: PSFC,TSK 154 REAL, DIMENSION( ims:ime, kms:kme, jms:jme ), INTENT(OUT) :: RTHBLTEN,RUBLTEN,RVBLTEN 155 #endif 147 156 !------------------------------------------- 148 157 ! OUTPUT VARIABLES … … 337 346 IF (elaps .eq. 0.) THEN 338 347 firstcall=.true. !! for continuity with GCM, physics are always called at the first WRF timestep 339 !firstcall=.false.! just in case you'd want to get rid of the physics348 !firstcall=.false. !! just in case you'd want to get rid of the physics 340 349 test=0 341 350 #ifdef SPECIAL_NEST_SAVE … … 565 574 ALLOCATE(wpsi(ngrid)) 566 575 ALLOCATE(wtsurf(ngrid)) 576 #ifndef NOPHYS 567 577 ALLOCATE(output_tab2d(ngrid,n2d)) 568 578 ALLOCATE(output_tab3d(ngrid,nlayer,n3d)) 579 #endif 569 580 ALLOCATE(wco2ice(ngrid)) 570 581 ALLOCATE(wemis(ngrid)) … … 1042 1053 !!***********************!! 1043 1054 IF (firstcall .EQV. .true.) THEN 1055 #ifndef NOPHYS 1044 1056 print *, '** Mars ** LMD INITIALIZATION' 1045 1057 #include "../call_meso_inifis.inc" 1046 1058 !!! le # est important pour newphys 1059 #endif 1047 1060 DEALLOCATE(aire_vec) 1048 1061 DEALLOCATE(lat_vec) … … 1078 1091 ! tracerdyn call tracer in dynamical part of GCM ? ! 1079 1092 !-------------------------------------------------------------------------------! 1080 print *, '** Mars ** CALL TO LMD PHYSICS'1081 1093 pdpsrf(:)=0. 1082 1094 pdu(:,:)=0. … … 1084 1096 pdt(:,:)=0. 1085 1097 pdq(:,:,:)=0. 1098 #ifndef NOPHYS 1099 print *, '** Mars ** CALL TO LMD PHYSICS' 1086 1100 #include "../call_meso_physiq.inc" 1087 1101 !!! le # est important pour newphys 1102 #endif 1088 1103 DEALLOCATE(pplev) 1089 1104 DEALLOCATE(pplay) … … 1110 1125 ! PHYSIQ OUTPUT IN THE WRF FILE ! 1111 1126 !-------------------------------! 1127 #ifndef NOPHYS 1112 1128 DO j = jps,jpe 1113 1129 DO i = ips,ipe … … 1131 1147 DEALLOCATE(output_tab2d) 1132 1148 DEALLOCATE(output_tab3d) 1133 1149 #endif 1134 1150 1135 1151 !!!!!! PATCH SPECIAL STORM -
trunk/MESOSCALE/LMD_MM_MARS/makemeso
r153 r156 35 35 phys="" 36 36 scenario="" 37 while getopts "drc:njhgpfs: " options; do37 while getopts "drc:njhgpfs:x" options; do 38 38 case $options in 39 39 d ) donotcompile=1;; ## just to check the compile folder … … 46 46 f ) fresh_start=1;; ## a fresh start 47 47 s ) scenario="${OPTARG}";; ## a specific scenario, you need a corresponding "mars_lmd_..." 48 x ) phys="nophys_";donotcompilephys=1;; ## a case with no LMD physics included 48 49 h ) echo " 49 50 # Use: … … 73 74 # 74 75 # makemeso -s storm ## a specific scenario, you need a corresponding mars_lmd_... (only for newphys) 76 # 77 # makemeso -x ## a case with no LMD physics included 75 78 " ; exit ;; 76 79 esac … … 213 216 if [[ "${config}" == "les" ]] 214 217 then 215 sed s+"PWD/SRC/"+"PWD/SRC/LES/"+g copy_model > copy_model_tmp 218 ### NB: With physics: LES folder // Without physics : LESnophys_ folder 219 ### ---- because differences in 'modif' folder ---- 220 sed s+"PWD/SRC/"+"PWD/SRC/LES$phys/"+g copy_model > copy_model_tmp 216 221 else 217 222 cp copy_model copy_model_tmp … … 451 456 452 457 458 ### here a case structure would be great 459 453 460 if [[ "${phys}" == "newphys_" ]] 454 461 then … … 467 474 mv -f yeah configure.wrf 468 475 fi 476 477 ################ 478 if [[ "${phys}" == "nophys_" ]] 479 then 480 if [[ "${config}" == "les" ]] ### LES is different because of WRFV3 481 then 482 sed s+"ARCH_LOCAL = "+"ARCH_LOCAL = -DNOPHYS "+g configure.wrf > yeah ; mv -f yeah configure.wrf 483 sed s+"-L../mars_lmd/libo -llmd"+""+g configure.wrf > yeah ; mv -f yeah configure.wrf 484 else 485 ### not tested yet but should be working 486 echo CAUTION CAUTION CAUTION NOT FULLY TESTED 487 sed s+"ARCHFLAGS = "+"ARCHFLAGS = -DNOPHYS "+g configure.wrf > yeah ; mv -f yeah configure.wrf 488 sed s+"-L../mars_lmd/libo -llmd"+""+g configure.wrf > yeah ; mv -f yeah configure.wrf 489 fi 490 fi 491 ################ 469 492 470 493 if [ ${debug} -ne 0 ] # not working for xlf! … … 657 680 echo 2. compiling WRF dynamical core ... 658 681 659 if [[ ! ( -f "call_meso_physiq.inc" ) ]] 660 then 661 echo 'did you compile the physics ? no call_meso_physiq.inc !' 662 exit 682 if [[ "${phys}" == "nophys_" ]] 683 then 684 echo 'NO LMD PHYSICS included' 685 else 686 if [[ ! ( -f "call_meso_physiq.inc" ) ]] 687 then 688 echo 'did you compile the physics ? no call_meso_physiq.inc !' 689 exit 690 fi 663 691 fi 664 692 -
trunk/MESOSCALE/NOTES.txt
r155 r156 10 10 11 11 il faut creer TMPDIR puis GCMINI WPSFEED WRFFEED actuellement 12 13 changer la gestion topo dans LES comme fait dans modele general 12 14 13 15 13min_si_Registry_modifie
Note: See TracChangeset
for help on using the changeset viewer.