Changeset 29 for trunk/mesoscale/LMD_MM_MARS
- Timestamp:
- Jan 25, 2011, 4:46:17 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mesoscale/LMD_MM_MARS/makemeso
r28 r29 12 12 # Last update : January 2009 # 13 13 # November 09 # 14 # January 11 # 14 15 ############################## 15 16 … … 51 52 justphys=0 52 53 debug=0 53 while getopts "drc:njhg" options; do 54 phys="" 55 while getopts "drc:njhgp" options; do 54 56 case $options in 55 57 d ) donotcompile=1;; ## just to check the compile folder … … 59 61 j ) justphys=1;; ## just compile LMD physics 60 62 g ) debug=1;; ## debug mode 63 p ) phys="newphys_";; 61 64 h ) echo " 62 65 # Use: … … 78 81 # 79 82 # makemeso -h ## display options 83 # 84 # makemeso -p ## with new LMD physics 80 85 " ; exit ;; 81 86 esac … … 88 93 echo ' LMD Mesoscale Model Compiler. Welcome.' 89 94 echo '****************************************' 95 if [[ "${phys}" == "newphys_" ]] 96 then 97 echo '***********with new physics*************' 98 echo '****************************************' 99 fi 90 100 # computer 91 101 uname -a | grep x86_64 > /dev/null … … 147 157 #### 148 158 149 conf_wrf="${ compilo}_${machine}${single}${testflag}"159 conf_wrf="${phys}${compilo}_${machine}${single}${testflag}" 150 160 \rm what_folder 2> /dev/null 151 161 echo ${conf_wrf} > what_folder … … 173 183 then 174 184 echo new folder ... link sources 185 if [[ "${phys}" == "newphys_" ]] 186 then 187 sed s+"mars_lmd"+"mars_lmd_new"+g copy_model > copy_model_tmp 188 exit 189 else 175 190 ./copy_model 191 fi 176 192 mv WRFV2 ${conf_wrf}/ 177 193 cd ${conf_wrf}/WRFV2 … … 328 344 ######################## 329 345 346 if [[ "${phys}" == "newphys_" ]] 347 then 348 sed s+"CFLAGS = "+"CFLAGS = -DNEWPHYS "+g configure.wrf > yeah 349 mv -f yeah configure.wrf 350 fi 330 351 331 352 if [ ${debug} -ne 0 ] # not working for xlf! … … 336 357 fi 337 358 359 exit 338 360 339 361
Note: See TracChangeset
for help on using the changeset viewer.