Changeset 54 for trunk/mesoscale/LMD_MM_MARS/makemeso
- Timestamp:
- Feb 2, 2011, 10:14:07 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mesoscale/LMD_MM_MARS/makemeso
r50 r54 52 52 justphys=0 53 53 debug=0 54 fresh_start=0 54 55 phys="" 55 while getopts "drc:njhgp " options; do56 while getopts "drc:njhgpf" options; do 56 57 case $options in 57 58 d ) donotcompile=1;; ## just to check the compile folder … … 61 62 j ) justphys=1;; ## just compile LMD physics 62 63 g ) debug=1;; ## debug mode 63 p ) phys="newphys_";; 64 p ) phys="newphys_";; ## with new physics 65 f ) fresh_start=1;; ## a fresh start 64 66 h ) echo " 65 67 # Use: … … 83 85 # 84 86 # makemeso -p ## with new LMD physics 87 # 88 # makemeso -f ## fresh start [clean -a] 85 89 " ; exit ;; 86 90 esac … … 185 189 if [[ "${phys}" == "newphys_" ]] 186 190 then 187 sed s+"mars_lmd"+"mars_lmd_new"+g copy_model > copy_model_tmp188 chmod 755 copy_model_tmp189 ./copy_model_tmp190 \rm copy_model_tmp191 mv WRFV2 ${conf_wrf}/192 cd ${conf_wrf}/WRFV2193 ln -sf mars_lmd_new mars_lmd194 ln -sf meso_callkeys_newphys.h meso_callkeys.h195 cd Registry ; Registry.bash ; cd ..191 sed s+"mars_lmd"+"mars_lmd_new"+g copy_model > copy_model_tmp 192 chmod 755 copy_model_tmp 193 ./copy_model_tmp 194 \rm copy_model_tmp 195 mv WRFV2 ${conf_wrf}/ 196 cd ${conf_wrf}/WRFV2 197 ln -sf mars_lmd_new mars_lmd 198 ln -sf meso_callkeys_newphys.h meso_callkeys.h 199 cd Registry ; Registry.bash ; cd .. 196 200 else 197 ./copy_model198 mv WRFV2 ${conf_wrf}/199 cd ${conf_wrf}/WRFV2200 cd Registry ; Registry.bash ; cd ..201 fi201 ./copy_model 202 mv WRFV2 ${conf_wrf}/ 203 cd ${conf_wrf}/WRFV2 204 cd Registry ; Registry.bash ; cd .. 205 fi 202 206 else 203 207 cd ${conf_wrf}/WRFV2 204 echo Did you modify anything in the Registry or clean ? y for yes, any key for no ; read answer 205 case ${answer} in 206 y) cd Registry ; mv Registry Registry.bak ; Registry.bash ; cd .. ;; 207 *) answer='no' ;; 208 esac 208 if [ ${fresh_start} -eq 1 ] 209 then 210 echo '*** FRESH START, I clean everything' 211 clean -a > /dev/null 2> /dev/null 212 cd Registry ; mv Registry Registry.bak ; Registry.bash ; cd .. 213 answer='y' ## a voir... pas si sur 214 else 215 echo Did you modify anything in the Registry or clean ? y for yes, any key for no ; read answer 216 case ${answer} in 217 y) cd Registry ; mv Registry Registry.bak ; Registry.bash ; cd .. ;; 218 *) answer='no' ;; 219 esac 220 fi 209 221 fi 210 222 # summary
Note: See TracChangeset
for help on using the changeset viewer.