Changeset 118 for trunk/mesoscale/LMD_MM_MARS/makemeso
- Timestamp:
- May 12, 2011, 9:27:42 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mesoscale/LMD_MM_MARS/makemeso
r111 r118 34 34 fresh_start=0 35 35 phys="" 36 while getopts "drc:njhgpf" options; do 36 scenario="" 37 while getopts "drc:njhgpfs:" options; do 37 38 case $options in 38 d ) donotcompile=1;; ## just to check the compile folder 39 r ) donotallow=1;; ## allow only known config (useful with 'makemeso < last') 40 c ) config="${OPTARG}";; ## idealized cases 41 n ) donotcompilephys=1;; ## do not recompile physics 42 j ) justphys=1;; ## just compile LMD physics 43 g ) debug=1;; ## debug mode 44 p ) phys="newphys_";; ## with new physics 45 f ) fresh_start=1;; ## a fresh start 39 d ) donotcompile=1;; ## just to check the compile folder 40 r ) donotallow=1;; ## allow only known config (useful with 'makemeso < last') 41 c ) config="${OPTARG}";; ## idealized cases 42 n ) donotcompilephys=1;; ## do not recompile physics 43 j ) justphys=1;; ## just compile LMD physics 44 g ) debug=1;; ## debug mode 45 p ) phys="newphys_";; ## with new physics 46 f ) fresh_start=1;; ## a fresh start 47 s ) scenario="${OPTARG}";; ## a specific scenario, you need a corresponding "mars_lmd_..." 46 48 h ) echo " 47 49 # Use: … … 69 71 # 70 72 # makemeso -f ## fresh start [clean -a] 73 # 74 # makemeso -s storm ## a specific scenario, you need a corresponding mars_lmd_... (only for newphys) 71 75 " ; exit ;; 72 76 esac … … 143 147 #### 144 148 145 conf_wrf="${ phys}${compilo}_${machine}${single}${testflag}"149 conf_wrf="${scenario}${phys}${compilo}_${machine}${single}${testflag}" 146 150 \rm what_folder 2> /dev/null 147 151 echo ${conf_wrf} > what_folder … … 172 176 then 173 177 \rm copy_model_tmp > /dev/null 174 sed s+"mars_lmd"+"mars_lmd_new"+g copy_model > copy_model_tmp 178 if [[ "${scenario}" == "" ]] 179 then 180 sed s+"mars_lmd"+"mars_lmd_new"+g copy_model > copy_model_tmp 181 else 182 echo SCENARIO ${scenario} DID YOU INCLUDE THE RIGHT copy_model ? ; read dummy 183 sed s+"mars_lmd"+"mars_lmd_new_${scenario}"+g copy_model > copy_model_tmp 184 fi 175 185 chmod 755 copy_model_tmp 176 186 ./copy_model_tmp … … 178 188 mv WRFV2 ${conf_wrf}/ 179 189 cd ${conf_wrf}/WRFV2 180 ln -sf mars_lmd_new mars_lmd 190 if [[ "${scenario}" == "" ]] 191 then 192 ln -sf mars_lmd_new mars_lmd 193 else 194 ln -sf mars_lmd_new_${scenario} mars_lmd 195 cp ../../SRC/WRFV2/mars_lmd_new_${scenario}/Registry.EM mars_lmd_new_${scenario}/ 196 cp ../../SRC/WRFV2/mars_lmd_new_${scenario}/*.inc mars_lmd_new_${scenario}/ 197 cd Registry ; ln -sf ../mars_lmd_new_${scenario}/Registry.EM . ; cd .. 198 fi 181 199 ln -sf meso_callkeys_newphys.h meso_callkeys.h 182 200 cd Registry ; Registry.bash ; cd .. … … 356 374 fi 357 375 376 if [[ ! ("${scenario}" == "") ]] 377 then 378 sed s+"ARCHFLAGS = "+"ARCHFLAGS = -D${scenario} "+g configure.wrf > yeah 379 mv -f yeah configure.wrf 380 fi 381 358 382 if [ ${debug} -ne 0 ] # not working for xlf! 359 383 then
Note: See TracChangeset
for help on using the changeset viewer.