Changeset 1597 for trunk/MESOSCALE/LMD_MM_MARS/makemeso
- Timestamp:
- Sep 14, 2016, 5:23:09 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MESOSCALE/LMD_MM_MARS/makemeso
r1590 r1597 73 73 # 74 74 # makemeso -p mars_lmd_new ## choose physics 75 # venus_lmd_new 75 76 # 76 77 # makemeso -f ## fresh start [clean -a] … … 130 131 esac 131 132 # number of processors 132 if [[ "${phys}" == *"new"* ]] #|| [[ "${phys}" == "nophys_" ]]133 if [[ "${phys}" == *"new"* ]] 133 134 then 134 135 numproc=999 … … 145 146 then 146 147 # ngrid: now dynamically set in newphys 03/2014 147 if [[ "${phys}" == *"new"* ]] 148 if [[ "${phys}" == *"new"* ]] 148 149 then 149 150 lon=999 … … 200 201 #else 201 202 # tracers: now dynamically set in newphys 09/2013 202 if [[ "${phys}" == *"new"* ]] 203 if [[ "${phys}" == *"new"* ]] 203 204 then 204 205 tra=999 … … 223 224 then 224 225 echo new folder ... link sources 225 #if [[ "${phys}" == *"new"* ]]226 #then227 # \rm copy_model_tmp > /dev/null 2> /dev/null228 # sed s+"mars_lmd"+"mars_lmd_new"+g SRC/SCRIPTS/copy_model > copy_model_tmp229 # if [[ "${config}" == "les" ]]230 # then231 # sed s+"PWD/SRC/"+"PWD/SRC/LES/"+g copy_model_tmp > yeah232 # mv yeah copy_model_tmp233 # fi234 #chmod 755 copy_model_tmp235 #./copy_model_tmp236 #\rm copy_model_tmp237 226 ############################################### 227 echo ${phys} 238 228 ./SRC/SCRIPTS/copy_model -p ${phys} -c ${config} 239 229 mv zeWRFV2 ${conf_wrf}/WRFV2 … … 242 232 then 243 233 cd ${conf_wrf}/WRFV2 244 #ln -sf mars_lmd_new mars_lmd245 234 if [[ "${config}" != "les" ]] 246 235 then … … 253 242 cd .. 254 243 255 ## remove files adapted to parallel GCM and useless for mesoscale256 #cd mars_lmd257 #cd libf/phymars258 #\rm tabfi* soil_settings* phyetat0* phyredem* iostart* writediagfi* mkstat* writediagsoil* eofdump* wstats* inistats* mod_*259 #\rm iniphysiq* init_phys_lmdz* comgeomphy* planetwide_mod*260 #mv ../dyn3d/control_mod.F90 .261 #cd ../..262 #cd ..263 264 244 else 265 # if [[ "${config}" == "les" ]]266 # then267 # #### NB: With physics: LES folder // Without physics : LESnophys_ folder268 # #### ---- because differences in 'modif' folder ----269 # #sed s+"PWD/SRC/"+"PWD/SRC/LES$phys/"+g SRC/SCRIPTS/copy_model > copy_model_tmp270 # sed s+"PWD/SRC/"+"PWD/SRC/LES/"+g SRC/SCRIPTS/copy_model > copy_model_tmp271 # else272 # cp SRC/SCRIPTS/copy_model copy_model_tmp273 # fi274 #chmod 755 copy_model_tmp275 #./copy_model_tmp276 #\rm copy_model_tmp277 #mv zeWRFV2 ${conf_wrf}/WRFV2278 245 cd ${conf_wrf}/WRFV2 279 246 cd Registry ; ./Registry.bash ; cd .. … … 283 250 if [[ "${config}" == "les" ]] 284 251 then 285 #if [[ "${phys}" == "nophys_" ]]286 #then287 # ## voir ci-dessus pour le folder288 # cp ../../SRC/LES$phys/correcfft ./289 #else290 # cp ../../SRC/LES/correcfft ./291 #fi292 252 cp ../../SRC/LES/correcfft ./ 293 253 ./correcfft … … 427 387 \rm conf > /dev/null 2> /dev/null ; touch conf ; echo 7 >> conf ; echo 1 >> conf 428 388 \rm configure.wrf > /dev/null 2> /dev/null ; ./configure < conf > /dev/null 2> /dev/null 429 sed s+"-lnetcdf"+"-lnetcdf -L../$phys/libo -llmd"+g configure.wrf > yeah ; mv -f yeah configure.wrf 389 if [[ "${phys}" != *"void"* ]] 390 then 391 sed s+"-lnetcdf"+"-lnetcdf -L../$phys/libo -llmd $NETCDF/lib/libnetcdf.a"+g configure.wrf > yeah ; mv -f yeah configure.wrf 392 else 393 sed s+"-lnetcdf"+"-lnetcdf $NETCDF/lib/libnetcdf.a"+g configure.wrf > yeah ; mv -f yeah configure.wrf 394 fi 430 395 sed s+"mpif90"+"$WHERE_MPI/mpif90"+g configure.wrf > yeah ; mv -f yeah configure.wrf 431 396 sed s+"mpicc"+"$WHERE_MPI/mpicc -DMPI2_SUPPORT"+g configure.wrf > yeah ; mv -f yeah configure.wrf 432 397 sed s+"-fastsse"+" "+g configure.wrf > yeah ; mv -f yeah configure.wrf 433 sed s+"O3"+"O3 -mcmodel=large -shared-intel"+g configure.wrf > yeah ; mv -f yeah configure.wrf 434 sed s+"-llmd"+"-llmd $NETCDF/lib/libnetcdf.a"+g configure.wrf > yeah ; mv -f yeah configure.wrf 398 sed s+"O3"+"O3 -mcmodel=large -shared-intel"+g configure.wrf > yeah ; mv -f yeah configure.wrf 435 399 #sed s+"-lnetcdf -lnetcdff"+"-lnetcdf -lnetcdff -L../mars_lmd/libo -llmd"+g configure.wrf > yeah ; mv -f yeah configure.wrf 436 400 if [ ${debug} -ne 0 ] # not working for xlf! … … 617 581 ################ 618 582 583 if [[ "${phys}" == *"venus"* ]] 584 then 585 sed s+"LIB_BUNDLED = "+"LIB_BUNDLED = /usr/lib64/liblapack.so \ "+g configure.wrf > yeah ; mv -f yeah configure.wrf 586 #sed s+"RWORDSIZE = "+"RWORDSIZE = 8 # "+g configure.wrf > yeah ; mv -f yeah configure.wrf 587 #sed s+"-DLWORDSIZE=4 "+"-DLWORDSIZE=8 "+g configure.wrf > yeah ; mv -f yeah configure.wrf 588 #sed s+"-DIWORDSIZE=4 "+"-DIWORDSIZE=8 "+g configure.wrf > yeah ; mv -f yeah configure.wrf 589 #sed s+"FCBASEOPTS ="+"FCBASEOPTS = -r8 "+g configure.wrf > yeah ; mv -f yeah configure.wrf 590 #sed s+"-fp-model precise "+"-fpconstant -fp-model precise "+g configure.wrf > yeah ; mv -f yeah configure.wrf 591 fi 592 619 593 if [ ${debug} -ne 0 ] # not working for xlf! 620 594 then … … 626 600 fi 627 601 602 #if [[ "${phys}" == *"prescribed"* ]] 603 #then 604 # donotcompilephys=1 605 #fi 606 628 607 #exit 629 608 ################################################## 630 609 # compile physics 631 610 ################################################## 632 if [ ${donotcompilephys} -eq 0 ] 611 if [ ${donotcompilephys} -eq 0 ] #|| [[ "${phys}" != *"prescribed"* ]] 633 612 then 634 613 … … 688 667 # generate the appropriate dimphys 689 668 #--------------------------------- 690 cd libf/phymars 669 if [[ "${phys}" == *"mars"* ]] 670 then 671 cd libf/phymars 672 elif [[ "${phys}" == *"venus"* ]] 673 then 674 cd libf/phyvenus 675 fi 691 676 \rm dimphys.h 2> /dev/null 692 677 # if [[ "${phys}" == "newphys_" ]] … … 727 712 echo $PWD/libo/log_compile_phys 728 713 729 if [ ${debug} -ne 0 ] 730 then 731 echo 'DEBUG DEBUG DEBUG DEBUG' 732 nohup makegcm_${compilo} -debug -t ${tra} -p mars -d ${physz} testphys1d | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys 714 if [ ${debug} -ne 0 ] 715 then 716 if [[ "${phys}" == *"mars"* ]] 717 then 718 echo 'DEBUG DEBUG DEBUG DEBUG' 719 nohup makegcm_${compilo} debug -t ${tra} -p mars -d ${physz} testphys1d | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys 720 elif [[ "${phys}" == *"venus"* ]] 721 then 722 echo 'DEBUG DEBUG DEBUG DEBUG' 723 nohup makelmdz -debug -full -p venus -d 181 rcm1d -arch linux-ifort -cpp MESOSCALE | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys 724 fi 733 725 else 734 nohup makegcm_${compilo} -t ${tra} -p mars -d ${physz} testphys1d | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys 726 if [[ "${phys}" == *"mars"* ]] 727 then 728 nohup makegcm_${compilo} -t ${tra} -p mars -d ${physz} testphys1d | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys 729 elif [[ "${phys}" == *"venus"* ]] 730 then 731 nohup makelmdz -full -p venus -d 51 rcm1d -arch linux-ifort -cpp MESOSCALE | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys 732 fi 735 733 fi 736 734 echo ... done … … 744 742 cd libo 745 743 mkdir temp 746 #cp -f LINUXfastI._${physz}_t${tra}_reg/*.a temp 747 cp -f LINUX*/*.a temp/ 744 if [[ "${phys}" == *"venus"* ]] 745 then 746 cp -f linux*/*.a temp/ 747 else 748 cp -f LINUX*/*.a temp/ 749 fi 748 750 cd temp 749 ar x libbibio.a 750 ar x libphymars.a 751 ar x libaeronomars.a 751 if [[ "${phys}" == *"mars"* ]] 752 then 753 ar x libbibio.a 754 ar x libphymars.a 755 ar x libaeronomars.a 756 else 757 ar x libphyvenus.a 758 ar x libmisc.a 759 ar x libphy_common.a 760 fi 752 761 \rm *.a 753 762 ar r liblmd.a * … … 760 769 if [[ "${phys}" == *"new"* ]] 761 770 then 762 # include modules for interfacing 763 mv *.mod ../inc/ 764 fi 771 if [[ "${phys}" == *"mars"* ]] 772 then 773 # include modules for interfacing 774 mv *.mod ../inc/ 775 else # [[ "${phys}" == *"venus"* ]] 776 mv ./libo/linux*/*.mod ../inc/ 777 778 fi 779 fi 780 765 781 766 782 # save a copy
Note: See TracChangeset
for help on using the changeset viewer.