Changeset 156 for trunk/MESOSCALE/LMD_MM_MARS/makemeso
- Timestamp:
- Jun 13, 2011, 5:36:43 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.