Changeset 1746 for trunk/MESOSCALE/LMD_MM_MARS/makemeso
- Timestamp:
- Jul 24, 2017, 5:06:29 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MESOSCALE/LMD_MM_MARS/makemeso
r1724 r1746 74 74 # makemeso -p mars_lmd_new ## choose physics 75 75 # venus_lmd_new 76 # generic_lmd_new77 # titan_lmd_new78 76 # 79 77 # makemeso -f ## fresh start [clean -a] … … 244 242 cd .. 245 243 246 # remove files adapted to parallel GCM and useless for mesoscale 247 #cd mars_lmd 248 #cd libf/phymars 249 #\rm tabfi* soil_settings* phyetat0* phyredem* iostart* writediagfi* mkstat* writediagsoil* eofdump* wstats* inistats* mod_* 250 #\rm iniphysiq* init_phys_lmdz* comgeomphy* planetwide_mod* 251 #mv ../dyn3d/control_mod.F90 . 252 #cd ../.. 253 #cd .. 254 255 else 256 if [[ "${config}" == "les" ]] 257 then 258 #### NB: With physics: LES folder // Without physics : LESnophys_ folder 259 #### ---- because differences in 'modif' folder ---- 260 #sed s+"PWD/SRC/"+"PWD/SRC/LES$phys/"+g SRC/SCRIPTS/copy_model > copy_model_tmp 261 sed s+"PWD/SRC/"+"PWD/SRC/LES/"+g SRC/SCRIPTS/copy_model > copy_model_tmp 262 else 263 cp SRC/SCRIPTS/copy_model copy_model_tmp 264 fi 265 chmod 755 copy_model_tmp 266 ./copy_model_tmp 267 \rm copy_model_tmp 268 mv zeWRFV2 ${conf_wrf}/WRFV2 269 cd ${conf_wrf}/WRFV2 270 cd Registry ; ./Registry.bash ; cd .. 244 else 245 cd ${conf_wrf}/WRFV2 246 cd Registry ; ./Registry.bash ; cd .. 271 247 fi 272 248 #### sparadrap consequent a l'utilisation de copy_model pour les liens … … 414 390 then 415 391 sed s+"-lnetcdf"+"-lnetcdf -L../$phys/libo -llmd $NETCDF/lib/libnetcdf.a"+g configure.wrf > yeah ; mv -f yeah configure.wrf 416 #sed s+"O3"+"O3"+g configure.wrf > yeah ; mv -f yeah configure.wrf417 392 else 418 393 sed s+"-lnetcdf"+"-lnetcdf $NETCDF/lib/libnetcdf.a"+g configure.wrf > yeah ; mv -f yeah configure.wrf … … 481 456 mv -f yeah configure.wrf ;; 482 457 mpifort_64) # MPI+IFORT, 64 bits, no nesting / nesting 483 echo 9 | ./configure > log_compile 2> log_error458 echo 9 | configure > log_compile 2> log_error 484 459 sed -f physics.sed configure.wrf > yeah ; mv -f yeah configure.wrf 485 460 sed s+"-f90=ifort"+" "+g configure.wrf > yeah ; mv -f yeah configure.wrf … … 492 467 then 493 468 echo 'DEBUG DEBUG DEBUG DEBUG' 494 sed s+"# -g"+" -g -no-ftz -traceback -ftrapuv -fp-stack-check -check"+g configure.wrf > yeah469 sed s+"# -g"+" -g -no-ftz -traceback -ftrapuv -fp-stack-check -check"+g configure.wrf > yeah 495 470 mv -f yeah configure.wrf 496 471 fi … … 512 487 sed s+"mpicc"+"mpicc -DMPI2_SUPPORT"+g configure.wrf > yeah ; mv -f yeah configure.wrf 513 488 ## !!! NETCDF must be defined 514 if [[ "${phys}" != *"void"* ]] 515 sed s+"-L../$phys/libo -llmd"+"-L../$phys/libo -llmd $NETCDF/lib/libnetcdf.a $NETCDF/lib/libnetcdff.a"+g configure.wrf > yeah 516 else 517 sed s+"-lesmf_time"+"-lesmf_time $NETCDF/lib/libnetcdf.a $NETCDFF/lib/libnetcdff.a"+g configure.wrf > yeah 518 fi 489 sed s+"-L../$phys/libo -llmd"+"-L../$phys/libo -llmd $NETCDF/lib/libnetcdf.a"+g configure.wrf > yeah 519 490 mv -f yeah configure.wrf 520 491 #### POUR LE TRAITEMENT PARTICULIERS des NESTS sur iDATAPLEX [cf. module_lmd_driver] … … 614 585 sed s+"LIB_BUNDLED = "+"LIB_BUNDLED = /usr/lib64/liblapack.so \ "+g configure.wrf > yeah ; mv -f yeah configure.wrf 615 586 #sed s+"RWORDSIZE = "+"RWORDSIZE = 8 # "+g configure.wrf > yeah ; mv -f yeah configure.wrf 616 #sed s+"PROMOTION = -i4"+'PROMOTION = -real-size "expr 8 \* $(RWORDSIZE)" -i4'+g configure.wrf > yeah ; mv -f yeah configure.wrf617 #sed s+"PROMOTION = -i4"+"PROMOTION = -real_size 64 -i4"+g configure.wrf > yeah ; mv -f yeah configure.wrf618 587 #sed s+"-DLWORDSIZE=4 "+"-DLWORDSIZE=8 "+g configure.wrf > yeah ; mv -f yeah configure.wrf 619 588 #sed s+"-DIWORDSIZE=4 "+"-DIWORDSIZE=8 "+g configure.wrf > yeah ; mv -f yeah configure.wrf … … 704 673 then 705 674 cd libf/phyvenus 706 elif [[ "${phys}" == *"generic"* ]]707 then708 cd libf/phystd709 elif [[ "${phys}" == *"titan"* ]]710 then711 cd libf/phytitan712 675 fi 713 676 \rm dimphys.h 2> /dev/null 714 #if [[ "${phys}" == "newphys_" ]]715 #then716 #ln -sf ../../meso_dimphys.h_ref . ## ne sert plus !!717 #else718 if [[ "${phys}" != "newphys_" ]]677 # if [[ "${phys}" == "newphys_" ]] 678 # then 679 # ln -sf ../../meso_dimphys.h_ref . ## ne sert plus !! 680 # else 681 if [[ "${phys}" == "mars_lmd" ]] 719 682 then 720 683 physize=$(expr ${physx} \* ${physy}) … … 722 685 head -15 dimphys.h 723 686 fi 724 ### TEST new new phys687 #### TEST new new phys 725 688 #if [[ "${phys}" == "newphys_" ]] 726 689 #then 727 690 # touch gr_fi_dyn.F.lien 728 691 # ln -sf ../dyn3d/gr_fi_dyn.F . ## dommage, a corriger 729 ############################### 730 ############################### 731 ############################### 692 ################################ 693 ################################ 694 ################################ 732 695 #fi 733 ### 734 ### 696 #### 697 #### 735 698 cd ../.. 736 699 … … 748 711 echo compilation info in: 749 712 echo $PWD/libo/log_compile_phys 750 713 751 714 if [ ${debug} -ne 0 ] 752 715 then … … 754 717 then 755 718 echo 'DEBUG DEBUG DEBUG DEBUG' 756 nohup makegcm_${compilo} debug-t ${tra} -p mars -d ${physz} testphys1d | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys719 nohup makegcm_${compilo} -debug -full -t ${tra} -p mars -d ${physz} testphys1d | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys 757 720 elif [[ "${phys}" == *"venus"* ]] 758 721 then 759 722 echo 'DEBUG DEBUG DEBUG DEBUG' 760 nohup ./makelmdz -debug -full -p venus -d 181 rcm1d -arch X64_MESU -cpp MESOSCALE | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys 761 elif [[ "${phys}" == *"generic"* ]] 762 then 763 echo 'DEBUG DEBUG DEBUG DEBUG' 764 nohup ./makegcm_ifort -debug -t ${tra} -p std -b 36x32 -d 25 rcm1d | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys 765 #nohup ./makegcm_ifort -t ${tra} -p std -b 36x32 -d 25 rcm1d | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys 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 766 724 fi 767 725 else 768 726 if [[ "${phys}" == *"mars"* ]] 769 727 then 770 728 nohup makegcm_${compilo} -t ${tra} -p mars -d ${physz} testphys1d | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys 771 729 elif [[ "${phys}" == *"venus"* ]] 772 730 then 773 nohup ./makelmdz -full -p venus -d 51 rcm1d -arch linux-ifort_meso -cpp MESOSCALE | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys # on /u/ and /planeto/ 774 nohup ./makelmdz -p venus -d 51 rcm1d -arch linux-ifort_meso -cpp MESOSCALE | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys 775 #nohup ./makelmdz -full -p venus -d 51 rcm1d -arch CICLADifort -cpp MESOSCALE | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys # on CICLAD 776 #nohup ./makelmdz -p venus -d 51 rcm1d -arch CICLADifort -cpp MESOSCALE | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys 777 #nohup ./makelmdz -full -p venus -d 51 rcm1d -arch X64_MESU -cpp MESOSCALE | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys #on MESU 778 #nohup ./makelmdz -p venus -d 51 rcm1d -arch X64_MESU -cpp MESOSCALE | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys 779 #nohup makelmdz -full -p venus -d 51 rcm1d -arch X64_OCCIGEN -cpp MESOSCALE | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys #on OCCIGEN 780 #nohup makelmdz -p venus -d 51 rcm1d -arch X64_OCCIGEN -cpp MESOSCALE | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys 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 781 732 fi 782 733 fi … … 791 742 cd libo 792 743 mkdir temp 793 if [[ ("${phys}" == *"venus"*) ]] 794 then 795 cp -f linux*/*.a temp/ # on /u/ and /planeto/ 796 #cp -f /home/mlefevre/modipsl/lib/libioipsl.a temp/ #on CICLAD 797 #cp -f X64*/*.a temp #on MESU and OCCIGEN 744 if [[ "${phys}" == *"venus"* ]] 745 then 746 cp -f linux*/*.a temp/ 798 747 cp -f ../ioipsl/libioipsl.a temp/ 799 748 else … … 806 755 ar x libphymars.a 807 756 ar x libaeronomars.a 808 elif [[ "${phys}" == *"venus"* ]] 809 then 757 else 810 758 ar x libphyvenus.a 811 759 ar x libmisc.a … … 821 769 # finish merge 822 770 cd .. 823 echo ${phys}824 771 if [[ "${phys}" == *"new"* ]] 825 772 then … … 828 775 # include modules for interfacing 829 776 mv *.mod ../inc/ 830 elif [[ ("${phys}" == *"venus"*)]] 831 then 832 mv ./libo/linux*/*.mod ../inc/ # on /u/ and /planeto/ 833 #mv ./libo/CICLAD*/*.mod ../inc/ # on CICLAD 834 #mv ./libo/X64*/*.mod ../inc/ # on MESU and OCCIGEN 777 else # [[ "${phys}" == *"venus"* ]] 778 mv ./libo/linux*/*.mod ../inc/ 835 779 cp -f ./ioipsl/*.mod ../inc/ 780 836 781 fi 837 782 fi
Note: See TracChangeset
for help on using the changeset viewer.