Changeset 83 for palm/trunk/SCRIPTS/mrun


Ignore:
Timestamp:
Apr 19, 2007 4:27:07 PM (18 years ago)
Author:
raasch
Message:

New:
---

Changed:


PALM can be generally installed on any kind of Linux-, IBM-AIX-, or NEC-SX-system by adding appropriate settings to the configuration file.

Scripts are also running under the public domain ksh.

All system relevant compile and link options as well as the host identifier (local_host) are specified in the configuration file.

Filetransfer by ftp removed (options -f removed from mrun and mbuild).

Call of (system-)FLUSH routine moved to new routine local_flush.

return_addres and return_username are read from ENVPAR-NAMELIST-file instead of using local_getenv.

Preprocessor strings for different linux clusters changed to "lc", some preprocessor directives renamed (new: intel_openmp_bug), preprocessor directives for old systems removed

advec_particles, check_open, cpu_log, cpu_statistics, data_output_dvrp, flow_statistics, header, init_dvrp, init_particles, init_1d_model, init_dvrp, init_pegrid, local_getenv, local_system, local_tremain, local_tremain_ini, modules, palm, parin, run_control

new:
local_flush

mbuild, mrun

Errors:


File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/mrun

    r82 r83  
    252252    # FEHLERBEHANDLUNG
    253253    # BEI EXIT:
    254  trap 'rm -rf  tmp_mrun
     254 trap 'rm -rf  $working_directory/tmp_mrun
    255255       if [[ $locat != localhost ]]
    256256       then
     
    318318
    319319    # BEI TERMINAL-BREAK:
    320  trap 'rm -rf  tmp_mrun
     320 trap 'rm -rf  $working_directory/tmp_mrun
    321321       [[ $tmpcreate = true ]]  &&  (cd; rm -rf $TEMPDIR)
    322322       if [[ -f ~/job_queue/JOBINFO.$QSUB_REQID ]]
     
    472472       HOSTNAME=`echo $line | cut -d" " -s -f2`
    473473       host_identifier=`echo $line | cut -d" " -s -f3`
    474        if [[ "$HOSTNAME" = $localhost_realname ]]
     474       if [[ $localhost_realname = $HOSTNAME ]]
    475475       then
    476476          localhost=$host_identifier
     
    547547        (ibm|ibmb|ibmh|ibms|ibmy|nech|neck|lctit|unics)  true;;
    548548        (*)  printf "\n"
    549              printf "\n  +++ execution host \"$host\" not admitted for MRUN,"
    550              printf "\n      or NQS not available on execution host!"
     549             printf "\n  +++ sorry: execution of batch jobs on remote host \"$host\""
     550             printf "\n      is not available"
    551551             locat=nqs; (( iec = 0 )); exit;;
    552552    esac
     
    665665                   case  $host  in
    666666                       (ibm|ibms|ibmy|lctit|nech|neck|unics)  true;;
    667                        (*)  printf "\n  +++ no queueing system available on execution host \"$host\""
     667                       (*)  printf "\n  +++ sorry: execution of batch jobs on remote host \"$host\""
     668                            printf "\n      is not available"
    668669                            locat=nqs; exit;;
    669670                   esac
     
    789790    export  interpreted_config_file=.icf.$RANDOM
    790791
    791 #    case  $localhost_realname  in
    792 #        (caurus|twister)      interpret_config.hp;;
    793 #        (bora|breva|elephanta|gallego|gregale|hababai|maestro|orkan|ostria)  export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/muksoft/packages/intel_ifc/8.1/lib/; interpret_config_9.x;;
    794 #        (levanto|vorias)      export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/muksoft/packages/intel/ifort/9.1.037/lib/; interpret_config_9.x_levanto;;
    795 #        (quanero)             export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/intel_fc_80/lib; interpret_config_9.x;;
    796 #        (*)                   interpret_config.x;;
    797 #    esac
    798792
    799793
     
    925919        (ibm|ibmb|ibmh|ibms|ibmy|lctit|nech|neck|unics)  true;;
    926920        (*)  printf "\n"
    927              printf "\n  +++ execution host \"$host\" not admitted for MRUN,"
    928              printf "\n      or no queueing system available on execution host!"
     921             printf "\n  +++ sorry: execution of batch jobs on remote host \"$host\""
     922             printf "\n      is not available"
    929923             locat=nqs; (( iec = 0 )); exit;;
    930924    esac
     
    10791073
    10801074
    1081     # EVTL. NETCDF-UNTERSTUETZUNG SETZEN
    1082 # case  $host  in
    1083 #     (decalpha)   netcdf_support=true
    1084 #                  netcdf_path=/usr/local/netcdf-3.5.1;;
    1085 #     (ibmb|ibmh)  netcdf_support=true
    1086 #                  netcdf_path=/aws/dataformats/netcdf-3.6.0-p1/64-32;;
    1087 #     (ibms)       netcdf_support=true
    1088 #                  netcdf_path=/applic/lib/NETCDF64;;
    1089 #     (ibmy)       netcdf_support=true
    1090 #                  netcdf_path=/usr1/users/raasch/pub/netcdf-3.6.0-p1;;
    1091 #     (lcmuk)      if [[ $scirocco = true ]]
    1092 #                  then
    1093 #                     netcdf_path=/opt/netcdf/3.6.2-beta4
    1094 #                  elif [[ $fimm = true ]]
    1095 #                  then
    1096 #                     netcdf_path=/local/netcdf
    1097 #                  else
    1098 #                     netcdf_path=/muksoft/packages/netcdf/linux
    1099 #                  fi;;
    1100 #     (lctit)      netcdf_support=true
    1101 #                  netcdf_path=/home2/usr5/mkanda/netcdf-3.6.2;;
    1102 #     (nech)       netcdf_support=true
    1103 #                  netcdf_path=/pool/SX-6/netcdf/netcdf-3.6.0-p1;;
    1104 #     (neck)       netcdf_support=true
    1105 #                  netcdf_path=/home/DSRC/NC/tatuyama/pub/netcdf-3.6.0-p1;;
    1106 # esac
    1107 
    1108 
    11091075    # VOLLSTAENDIGE DATEINAMEN DER INPUT-FILES BILDEN,
    11101076    # INPUT-DATEIEN AUF VORHANDENSEIN PRUEFEN UND EVTL. HOECHSTE ZYKLUSNUMMER
     
    13371303
    13381304
     1305     # DAS DVRP-PAKET ERFORDERT EINE ENTSPRECHENDE BIBLIOTHEK
     1306 if [[ $(echo $package_list | grep -c dvrp_graphics) != 0 ]]
     1307 then
     1308    if [[ "$dvrp_inc" = "" ]]
     1309    then
     1310       printf "\n\n  +++ no value for \"dvrp_inc\" given in configuration file"
     1311       printf "\n      This is required for the dvrp_graphics package.\n"
     1312       locat=dvrp; exit
     1313    fi
     1314    if [[ "$dvrp_lib" = "" ]]
     1315    then
     1316       printf "\n\n  +++ no value for \"dvrp_lib\" given in configuration file"
     1317       printf "\n      This is required for the dvrp_graphics package.\n"
     1318       locat=dvrp; exit
     1319    fi
     1320 fi
     1321
     1322
    13391323     # PRUEFEN, OB ENTWEDER HAUPTPROGRAMM ODER NUR EIN AUSFUEHRBARES
    13401324     # PROGRAMM VEREINBART WURDE (IN DIESEM FALL BRAUCHT IM WEITEREN NICHT
     
    16521636       # PRAEPROZESSOR-DIREKTIVEN ZUM SELEKTIVEN AUSWAEHLEN VON CODETEILEN
    16531637       # ZUSAMMENSETZEN
     1638       # DIREKTIVEN ZUM AKTIVIEREN VON RECHNERSPEZIFISCHEM CODE
    16541639    if [[ $(echo $localhost | cut -c1-3) = ibm ]]
    16551640    then
     
    16641649       cpp_options="$cpp_options -D__$localhost"
    16651650    fi
     1651
     1652       # DIREKTIVEN DIE DURCH OPTION -K BESTIMMT WERDEN (Z.B. PARALLEL)
    16661653    if [[ $(echo $localhost | cut -c1-3) = ibm ]]
    16671654    then
    16681655       [[ -n $cond1 ]]  &&  cpp_options="${cpp_options},-D__$cond1=__$cond1"
    16691656       [[ -n $cond2 ]]  &&  cpp_options="${cpp_options},-D__$cond2=__$cond2"
    1670 #       if [[ $netcdf_support = true ]]
    1671 #       then
    1672 #          PPOPTS="$PPOPTS -Dnetcdf=netcdf"
    1673 #          [[ $localhost != ibms ]]      &&  PPOPTS="$PPOPTS -Dnetcdf_64bit=netcdf_64bit"
    1674 #       fi
    1675 #       if [[ $localhost = ibmy ]]
    1676 #       then
    1677 #          PPOPTS="$PPOPTS -Dibmy_special=ibmy_special"
    1678 #       fi
    16791657    else
    16801658       [[ -n $cond1 ]]  &&  cpp_options="$cpp_options -D__$cond1"
    16811659       [[ -n $cond2 ]]  &&  cpp_options="$cpp_options -D__$cond2"
    1682 #       if [[ $netcdf_support = true ]]
    1683 #       then
    1684 #          PPOPTS="$PPOPTS -Dnetcdf"
    1685 #          [[ $localhost != decalpha  &&  $localhost != lctit ]]  &&  PPOPTS="$PPOPTS -Dnetcdf_64bit"
    1686 #       fi
    1687     fi
     1660    fi
     1661
     1662       # DIREKTIVEN DIE SOFTWAREPAKETE AKTIVIEREN (OPTION -p)
    16881663    if [[ -n $package_list ]]
    16891664    then
     
    17101685       done
    17111686    fi
     1687
     1688       # DIREKTIVEN DIE DURCH OPTION -D FESTGELEGT SIND
    17121689    if [[ -n $cpp_opts ]]
    17131690    then
     
    17231700    fi
    17241701
    1725        # OPTION ZUM EINSCHALTEN DES PRAEPROZESSORS HINZUFUEGEN
    1726 #    if [[ $host = decalpha ]]
    1727 #    then
    1728 #       C_PPOPTS="-cpp  -DMPI_REAL=MPI_DOUBLE_PRECISION -DMPI_2REAL=MPI_2DOUBLE_PRECISION $PPOPTS"
    1729 #    elif [[ $(echo $host | cut -c1-3) = ibm ]]
    1730 #    then
    1731 #          # blanks in PPOPTS muessen durch "," ersetzt werden
    1732 #       PPOPTS=`echo $PPOPTS | sed 's/ -/,-/g'`
    1733 #       C_PPOPTS="-qsuffix=cpp=f90 -WF,-DMPI_REAL=MPI_DOUBLE_PRECISION,$PPOPTS"
    1734 #    elif [[ $host = lcmuk ]]
    1735 #    then
    1736 #       C_PPOPTS="$PPOPTS -DMPI_REAL=MPI_DOUBLE_PRECISION -DMPI_2REAL=MPI_2DOUBLE_PRECISION"
    1737 #    elif [[ $host = lctit ]]
    1738 #    then
    1739 #       C_PPOPTS="$PPOPTS -Mpreprocess -DMPI_REAL=MPI_DOUBLE_PRECISION -DMPI_2REAL=MPI_2DOUBLE_PRECISION"
    1740 #    elif [[ $(echo $host | cut -c1-3) = nec ]]
    1741 #    then
    1742 #       C_PPOPTS="-Ep -DMPI_REAL=MPI_REAL8 -DMPI_2REAL=MPI_2REAL8 -DSCFFT=dzfft -DCSFFT=zdfft $PPOPTS"
    1743 #    else
    1744 #       C_PPOPTS="$PPOPTS"
    1745 #    fi
    1746 
    17471702 else
    17481703
     
    17781733    locat=compiler_name; exit
    17791734
    1780 #    case  $localhost  in
    1781 #        (unics)                                 compiler_name=f77;;
    1782 #        (lctit)                                 if [[ "$cond1" = parallel  ||  "$cond2" = parallel ]]
    1783 #                                                then
    1784 #                                                   compiler_name=mpif90
    1785 #                                                   echo ">>> compiler=mpif90"
    1786 #                                                else
    1787 #                                                   compiler_name=pgf95
    1788 #                                                   echo ">>> compiler=pgf95"
    1789 #                                                fi;;
    1790 #        (nech)                                  compiler_name=sxmpif90;;
    1791 #        (decalpha)                              compiler_name=f95;;
    1792 #        (ibm|ibmb|ibmh|ibms|ibmy)               compiler_name=mpxlf95_r;;
    1793 #        (*)      printf "\n  +++ unknown host name: $localhost \n";
    1794 #                 locat=localhost; exit;;
    1795 #    esac
    17961735 fi
    17971736
     
    18001739 [[ $localhost = neck ]]  &&  compiler_name=mpif90
    18011740
    1802 
    1803 
    1804     # PRAEPROZESSOR-PFAD BESTIMMEN
    1805  case  $localhost  in
    1806      (decalpha|ibm|ibmb|ibmh|ibms|ibmy|unics)  praeproc=cpp;;
    1807  esac
    18081741
    18091742
     
    18611794
    18621795
    1863     # BEI VERWENDUNG VON DVRP-SOFTWARE MUSS ENTSPECHENDE GRAFIK-BIBLIOTHEK
    1864     # MIT EINGEBUNDEN WERDEN
    1865 # if [[ -n $package_list ]]
    1866 # then
    1867 #    if [[ $(echo $package_list | grep -c dvrp_graphics) != 0 ]]
    1868 #    then
    1869 #
    1870 #          # DVRP-GRAFIK GIBT ES NUR AUF DER IBM AM HLRN, AUF NECH/NECK UND
    1871 #          # DEM NOTEBOOK SCIROCCO
    1872 #       if [[ $host != ibmh  &&  $host != nech  &&  $host != neck  &&  $host != lcmuk  &&  "$local_compile" != true ]]
    1873 #       then
    1874 #          printf "\n"
    1875 #          printf "\n  +++ option -p with package \"dvrp_graphics\" only allowed on nech and ibmh"
    1876 #          locat=parameter; exit
    1877 #       fi
    1878 #       if [[ $host = ibmh ]]
    1879 #       then
    1880 #          if [[ $cond1 = debug  ||  $cond2 = debug ]]
    1881 #          then
    1882 #             fopts="-I/home/h/hzazchmi/lib/debug  $fopts"
    1883 #             lopts="$lopts -L/home/h/hzazchmi/lib/debug -lDVRP2 -lftp"
    1884 #          else
    1885 #             fopts="-I/home/h/nikevita/lib_stable/optimize  $fopts"
    1886 #             lopts="$lopts -L/home/h/nikevita/lib_stable/optimize -lDVRP2 -lftp"
    1887 #          fi
    1888 #       elif [[ $host = nech ]]
    1889 #       then
    1890 #          fopts="-I/import/ds9b/ipf2/b/b323014/lib/optimize  $fopts"
    1891 #          lopts="$lopts -L/import/ds9b/ipf2/b/b323014/lib/optimize -lDVRP2 -lftp"
    1892 #       elif [[ $host = neck ]]
    1893 #       then
    1894 #          fopts="-I/home/DSRC/NC/tatuyama/pub/dvrp  $fopts"
    1895 #          lopts="$lopts -L/home/DSRC/NC/tatuyama/pub/dvrp -lDVRP2 -lftp"
    1896 #       elif [[ $host = lcmuk ]]
    1897 #       then
    1898 #          fopts="-I/usr/local/lib/dvrp/optimize  $fopts"
    1899 #          lopts="$lopts -L/usr/local/lib/dvrp/optimize -lDVRP2 -lftp"
    1900 #       fi
    1901 #    fi
    1902 # fi
    1903 
    1904 
    1905     # EVTL. EINBINDEN DER NETCDF-BIBLIOTHEK
    1906 # if [[ $netcdf_support = true ]]
    1907 # then
    1908 #    case  $host  in
    1909 #       (decalpha)   fopts="-I${netcdf_path}/include  $fopts"
    1910 #                    lopts="$lopts -L${netcdf_path}/lib -lnetcdf";;
    1911 #       (ibmb|ibmh)  fopts="-I ${netcdf_path}/include-64  $fopts"
    1912 #                    lopts="$lopts -L${netcdf_path}/lib -lnetcdf";;
    1913 #       (ibms)       fopts="-I /applic/netcdf64/src/f90  $fopts"
    1914 #                    lopts="$lopts -L${netcdf_path} -lnetcdf";;
    1915 #       (ibmy)       fopts="-I ${netcdf_path}/include  $fopts"
    1916 #                    lopts="$lopts -L${netcdf_path}/lib -lnetcdf";;
    1917 #       (nech|neck)  fopts="-I ${netcdf_path}/include  $fopts"
    1918 #                    lopts="$lopts -L${netcdf_path}/lib -lnetcdf";;
    1919 #       (lctit)      fopts="-I ${netcdf_path}/include  $fopts"
    1920 #                    lopts="$lopts -L${netcdf_path}/lib -lnetcdf";;
    1921 #
    1922 #    esac
    1923 # fi
    19241796
    19251797    # PRUEFEN DER CPU-ZEIT. (CPUMAX WIRD ALS ENV-VARIABLE VOM HAUTPRO-
Note: See TracChangeset for help on using the changeset viewer.