Changeset 1724 for trunk/MESOSCALE/LMD_MM_MARS/makemeso
- Timestamp:
- Jul 21, 2017, 4:07:38 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MESOSCALE/LMD_MM_MARS/makemeso
r1653 r1724 74 74 # makemeso -p mars_lmd_new ## choose physics 75 75 # venus_lmd_new 76 # generic_lmd_new 77 # titan_lmd_new 76 78 # 77 79 # makemeso -f ## fresh start [clean -a] … … 242 244 cd .. 243 245 244 else 245 cd ${conf_wrf}/WRFV2 246 cd Registry ; ./Registry.bash ; cd .. 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 .. 247 271 fi 248 272 #### sparadrap consequent a l'utilisation de copy_model pour les liens … … 390 414 then 391 415 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.wrf 392 417 else 393 418 sed s+"-lnetcdf"+"-lnetcdf $NETCDF/lib/libnetcdf.a"+g configure.wrf > yeah ; mv -f yeah configure.wrf … … 456 481 mv -f yeah configure.wrf ;; 457 482 mpifort_64) # MPI+IFORT, 64 bits, no nesting / nesting 458 echo 9 | configure > log_compile 2> log_error483 echo 9 | ./configure > log_compile 2> log_error 459 484 sed -f physics.sed configure.wrf > yeah ; mv -f yeah configure.wrf 460 485 sed s+"-f90=ifort"+" "+g configure.wrf > yeah ; mv -f yeah configure.wrf … … 467 492 then 468 493 echo 'DEBUG DEBUG DEBUG DEBUG' 469 sed s+"# 494 sed s+"#-g"+" -g -no-ftz -traceback -ftrapuv -fp-stack-check -check"+g configure.wrf > yeah 470 495 mv -f yeah configure.wrf 471 496 fi … … 487 512 sed s+"mpicc"+"mpicc -DMPI2_SUPPORT"+g configure.wrf > yeah ; mv -f yeah configure.wrf 488 513 ## !!! NETCDF must be defined 489 sed s+"-L../$phys/libo -llmd"+"-L../$phys/libo -llmd $NETCDF/lib/libnetcdf.a"+g configure.wrf > yeah 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 490 519 mv -f yeah configure.wrf 491 520 #### POUR LE TRAITEMENT PARTICULIERS des NESTS sur iDATAPLEX [cf. module_lmd_driver] … … 585 614 sed s+"LIB_BUNDLED = "+"LIB_BUNDLED = /usr/lib64/liblapack.so \ "+g configure.wrf > yeah ; mv -f yeah configure.wrf 586 615 #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.wrf 617 #sed s+"PROMOTION = -i4"+"PROMOTION = -real_size 64 -i4"+g configure.wrf > yeah ; mv -f yeah configure.wrf 587 618 #sed s+"-DLWORDSIZE=4 "+"-DLWORDSIZE=8 "+g configure.wrf > yeah ; mv -f yeah configure.wrf 588 619 #sed s+"-DIWORDSIZE=4 "+"-DIWORDSIZE=8 "+g configure.wrf > yeah ; mv -f yeah configure.wrf … … 673 704 then 674 705 cd libf/phyvenus 706 elif [[ "${phys}" == *"generic"* ]] 707 then 708 cd libf/phystd 709 elif [[ "${phys}" == *"titan"* ]] 710 then 711 cd libf/phytitan 675 712 fi 676 713 \rm dimphys.h 2> /dev/null 677 #if [[ "${phys}" == "newphys_" ]]678 #then679 #ln -sf ../../meso_dimphys.h_ref . ## ne sert plus !!680 #else681 if [[ "${phys}" == "mars_lmd" ]]714 #if [[ "${phys}" == "newphys_" ]] 715 #then 716 # ln -sf ../../meso_dimphys.h_ref . ## ne sert plus !! 717 #else 718 if [[ "${phys}" != "newphys_" ]] 682 719 then 683 720 physize=$(expr ${physx} \* ${physy}) … … 685 722 head -15 dimphys.h 686 723 fi 687 ### #TEST new new phys724 ### TEST new new phys 688 725 #if [[ "${phys}" == "newphys_" ]] 689 726 #then 690 727 # touch gr_fi_dyn.F.lien 691 728 # ln -sf ../dyn3d/gr_fi_dyn.F . ## dommage, a corriger 692 ############################### #693 ############################### #694 ############################### #729 ############################### 730 ############################### 731 ############################### 695 732 #fi 696 ### #697 ### #733 ### 734 ### 698 735 cd ../.. 699 736 … … 711 748 echo compilation info in: 712 749 echo $PWD/libo/log_compile_phys 713 750 714 751 if [ ${debug} -ne 0 ] 715 752 then … … 717 754 then 718 755 echo 'DEBUG DEBUG DEBUG DEBUG' 719 nohup makegcm_${compilo} -debug -full-t ${tra} -p mars -d ${physz} testphys1d | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys756 nohup makegcm_${compilo} debug -t ${tra} -p mars -d ${physz} testphys1d | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys 720 757 elif [[ "${phys}" == *"venus"* ]] 721 758 then 722 759 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 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 724 766 fi 725 767 else 726 if [[ "${phys}" == *"mars"* ]]768 if [[ "${phys}" == *"mars"* ]] 727 769 then 728 770 nohup makegcm_${compilo} -t ${tra} -p mars -d ${physz} testphys1d | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys 729 771 elif [[ "${phys}" == *"venus"* ]] 730 772 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 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 732 781 fi 733 782 fi … … 742 791 cd libo 743 792 mkdir temp 744 if [[ "${phys}" == *"venus"* ]] 745 then 746 cp -f linux*/*.a 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 747 798 cp -f ../ioipsl/libioipsl.a temp/ 748 799 else … … 755 806 ar x libphymars.a 756 807 ar x libaeronomars.a 757 else 808 elif [[ "${phys}" == *"venus"* ]] 809 then 758 810 ar x libphyvenus.a 759 811 ar x libmisc.a … … 769 821 # finish merge 770 822 cd .. 823 echo ${phys} 771 824 if [[ "${phys}" == *"new"* ]] 772 825 then … … 775 828 # include modules for interfacing 776 829 mv *.mod ../inc/ 777 else # [[ "${phys}" == *"venus"* ]] 778 mv ./libo/linux*/*.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 779 835 cp -f ./ioipsl/*.mod ../inc/ 780 781 836 fi 782 837 fi
Note: See TracChangeset
for help on using the changeset viewer.