Changeset 1210 for palm/trunk/SCRIPTS
- Timestamp:
- Aug 14, 2013 10:58:20 AM (11 years ago)
- Location:
- palm/trunk/SCRIPTS
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/mbuild
r1197 r1210 22 22 # Current revisions: 23 23 # ------------------ 24 # adjustments for CSC Helsinki (lccrayf)24 # fftw support added 25 25 # 26 26 # Former revisions: 27 27 # ----------------- 28 28 # $Id$ 29 # 30 # 1197 2013-07-04 06:19:45Z raasch 31 # adjustments for CSC Helsinki (lccrayf) 29 32 # 30 33 # 1099 2013-02-10 01:47:43Z raasch … … 450 453 fi 451 454 455 fftw_inc="" 456 fftw_lib="" 452 457 modules="" 453 458 netcdf_inc="" … … 705 710 706 711 707 # NETCDF-OPTIONEN ERMITTELN712 # get netCDF options 708 713 line="" 709 714 grep "$remote_host_string" $config_file | grep "%netcdf_inc" > $tmp_mbuild … … 738 743 # EVENTUELLE DOPPELPUNKTE AUS OPTIONSSTRING ENTFERNEN 739 744 netcdf_lib=`echo $line | cut -d" " -s -f2 | sed 's/::/%DUM%/g' | sed 's/:/ /g' | sed 's/%DUM%/:/g'` 745 fi 746 747 done < $tmp_mbuild 748 749 750 751 # get fftw options 752 line="" 753 grep "$remote_host_string" $config_file | grep "%fftw_inc" > $tmp_mbuild 754 while read line1 755 do 756 757 if [[ $(echo $line1 | cut -d" " -s -f3-) = "$remote_host_string" ]] 758 then 759 line="$line1" 760 fi 761 762 if [[ "$line" != "" && $(echo $line | cut -c1) != "#" ]] 763 then 764 # EVENTUELLE DOPPELPUNKTE AUS OPTIONSSTRING ENTFERNEN 765 fftw_inc=`echo $line | cut -d" " -s -f2 | sed 's/::/%DUM%/g' | sed 's/:/ /g' | sed 's/%DUM%/:/g'` 766 fi 767 768 done < $tmp_mbuild 769 770 line="" 771 grep "$remote_host_string" $config_file | grep "%fftw_lib" > $tmp_mbuild 772 while read line1 773 do 774 775 if [[ $(echo $line1 | cut -d" " -s -f3-) = "$remote_host_string" ]] 776 then 777 line="$line1" 778 fi 779 780 if [[ "$line" != "" && $(echo $line | cut -c1) != "#" ]] 781 then 782 # EVENTUELLE DOPPELPUNKTE AUS OPTIONSSTRING ENTFERNEN 783 fftw_lib=`echo $line | cut -d" " -s -f2 | sed 's/::/%DUM%/g' | sed 's/:/ /g' | sed 's/%DUM%/:/g'` 740 784 fi 741 785 … … 785 829 found=true 786 830 787 # NETCDF-INCLUDEVERZEICHNIS HINZUFUEGEN788 compiler_options="$compiler_options $netcdf_inc "831 # add include paths for netCDF and fftw 832 compiler_options="$compiler_options $netcdf_inc $fftw_inc" 789 833 fi 790 834 … … 857 901 found=true 858 902 859 # NETCDF-LIBRARY HINZUFUEGEN860 loader_options="$loader_options $netcdf_lib "903 # add netCDF- and fftw-library 904 loader_options="$loader_options $netcdf_lib $fftw_lib" 861 905 fi 862 906 … … 1303 1347 echo " *** execute \"make\" on local host" 1304 1348 1349 echo "make $make_options PROG=$mainprog F90=$compiler_name COPT="$cpp_options" F90FLAGS="$compiler_options" LDFLAGS="$loader_options" 2>&1 | tee ${remote_host}_last_make_protokoll" 1305 1350 make $make_options PROG=$mainprog F90=$compiler_name COPT="$cpp_options" F90FLAGS="$compiler_options" LDFLAGS="$loader_options" 2>&1 | tee ${remote_host}_last_make_protokoll 1306 1351 -
palm/trunk/SCRIPTS/mrun
r1203 r1210 22 22 # Current revisions: 23 23 # ------------------ 24 # 24 # fftw support added 25 25 # 26 26 # Former revisions: … … 143 143 executable="" 144 144 execution_error=false 145 fftw_inc="" 146 fftw_lib="" 147 fftw_support=false 145 148 fimm=false 146 149 fname=test … … 1917 1920 1918 1921 # COMPILE- UND LINK-OPTIONEN BESTIMMEN 1919 fopts="$fopts $netcdf_inc $ dvr_inc"1920 lopts="$lopts $netcdf_lib $ dvr_lib"1922 fopts="$fopts $netcdf_inc $fftw_inc $dvr_inc" 1923 lopts="$lopts $netcdf_lib $fftw_lib $dvr_lib" 1921 1924 ROPTS="$ropts" 1922 1925 # if [[ ( $(echo $host | cut -c1-3) = nec || $(echo $host | cut -c1-3) = ibm || $host = lckyoto || $host = lcsgih || $host = lcsgib || $host = lctit || $host = lcfimm || $host = lcflow || $host = lcxe6 || $host = lcxt5m || $host = lck || $host = lckiaps || $host = lckordi || $host = lcsb || $host ) && -n $numprocs ]]
Note: See TracChangeset
for help on using the changeset viewer.