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/mbuild

    r82 r83  
    108108 suf=f90
    109109 update=false
     110 working_directory=`pwd`
    110111
    111112 typeset -i  ih ihost=0
     
    119120    # FEHLERBEHANDLUNG
    120121    # BEI EXIT:
    121  trap 'rm -rf  tmp_mbuild
     122 trap 'rm -rf  $working_directory/tmp_mbuild
    122123       if [[ $locat != normal ]]
    123124       then
     
    129130
    130131    # BEI TERMINAL-BREAK:
    131  trap 'rm -rf  tmp_mbuild
     132 trap 'rm -rf  $working_directory/tmp_mbuild
    132133       printf "\n\n +++ mbuild killed by \"^C\" \n\n"
    133134       exit
     
    188189       HOSTNAME=`echo $line | cut -d" " -s -f2`
    189190       host_identifier=`echo $line | cut -d" " -s -f3`
    190        if [[ "$HOSTNAME" = $local_host_real_name ]]
     191       if [[ $local_host_real_name = $HOSTNAME ]]
    191192       then
    192193          local_host=$host_identifier
     
    207208
    208209
    209 # case  $local_host_real_name  in
    210 #     (atmos)                    local_host=lcide;;
    211 #     (berte)                    local_host=t3eb;;
    212 #     (bora|breva|gregale|irifi|levanto|maestro|orkan|ostria|quanero|scirocco)  local_host=lcmuk;;
    213 #     (fimm.bccs.uib.no)         local_host=lcmuk;;
    214 #     (gate)                     local_host=neck;;
    215 #     (gfdl3.yonsei.ac.kr)       local_host=decalpha;;
    216 #     (gfdl5)                    local_host=ibmy;;
    217 #     (gwdk081.gwdg.de)          local_host=ibm;;
    218 #     (hreg01a-en0|hreg02a-en0)  local_host=ibmh;;
    219 #     (nobel|nobela)             local_host=ibms;;
    220 #     (tgg*)                     local_host=lctit;;
    221 #     (t3e)                      local_host=t3eh;;
    222 #     (zam003)                   local_host=t3ej2;;
    223 #     (zam005)                   local_host=t3ej5;;
    224 #    (*)       printf "\n  +++ local host \"$local_host_real_name\" not admitted for mbuild \n"
    225 #               locat=local_host; exit;;
    226 # esac
    227210
    228211 [[ $local_host_real_name = scirocco ]]  &&  scirocco=true
     
    737720
    738721       # IP-ADRESSE DES REMOTE-RECHNERS BESTIMMEN
    739     netcdf_support=false
    740722    case  $remote_host  in
    741         (lcmuk)          remote_addres=130.75.105.3
    742                          netcdf_support=true
    743                          if [[ $scirocco = true ]]
     723        (lcmuk)          remote_addres=130.75.105.3;;
     724        (lctit)          remote_addres=172.17.75.161;;
     725        (decalpha)       remote_addres=165.132.26.56;;
     726        (ibmb)           remote_addres=130.73.230.10;;
     727        (ibmh)           remote_addres=130.75.4.10;;
     728        (ibms)           remote_addres=150.183.5.101;;
     729        (ibmy)           remote_addres=165.132.26.58;;
     730        (nech)           remote_addres=136.172.44.192;;
     731        (neck)           remote_addres=133.5.178.11;;
     732        (ground.yonsei.ac.kr) remote_addres=134.75.155.33;;
     733        (*)              if [[ $local_host != $remote_host ]]
    744734                         then
    745                             netcdf_path=/opt/netcdf/3.6.2-beta4
    746                          elif [[ $fimm = true ]]
    747                          then
    748                             netcdf_path=/local/netcdf
    749                          else
    750                             netcdf_path=/muksoft/packages/netcdf/linux
     735                            printf "\n  +++ remote host \"$remote_host\" unknown";
     736                            printf "\n      please inform S. Raasch!"
    751737                         fi;;
    752         (lctit)          remote_addres=172.17.75.161; netcdf_support=true
    753                          netcdf_path=/home/usr5/mkanda/netcdf-3.6.2; cpp_options="-Mpreprocess";;
    754         (decalpha)       remote_addres=165.132.26.56; cpp_options="-cpp"; netcdf_support=true
    755                          netcdf_path=/usr/local/netcdf-3.5.1;;
    756         (ibm)            remote_addres=134.76.99.81; cpp_options="-qsuffix=cpp=f90";;
    757         (ibmb)           remote_addres=130.73.230.10; cpp_options="-qsuffix=cpp=f90"; netcdf_support=true
    758                          netcdf_path=/aws/dataformats/netcdf-3.6.0-p1/64-32;;
    759         (ibmh)           remote_addres=130.75.4.10; cpp_options="-qsuffix=cpp=f90"; netcdf_support=true
    760                          netcdf_path=/aws/dataformats/netcdf-3.6.0-p1/64-32;;
    761         (ibms)           remote_addres=150.183.5.101; cpp_options="-qsuffix=cpp=f90"; netcdf_support=true
    762                          netcdf_path=/applic/lib/NETCDF64;;
    763         (ibmy)           remote_addres=165.132.26.58; cpp_options="-qsuffix=cpp=f90"; netcdf_support=true
    764                          netcdf_path=/usr1/users/raasch/pub/netcdf-3.6.0-p1;;
    765         (nech)           remote_addres=136.172.44.192; cpp_options="-Ep"; netcdf_support=true
    766                          netcdf_path=/pool/SX-6/netcdf/netcdf-3.6.0-p1;;
    767         (neck)           remote_addres=133.5.178.11; cpp_options="-Ep"; netcdf_support=true
    768                          netcdf_path=/home/DSRC/NC/tatuyama/pub/netcdf-3.6.0-p1;;
    769         (t3eb)           remote_addres=130.73.206.21; cpp_options="-eZ";;
    770         (t3eh)           remote_addres=130.75.4.131; cpp_options="-eZ";;
    771         (t3ej2)          remote_addres=134.94.100.22; cpp_options="-eZ";;
    772         (t3ej5)          remote_addres=134.94.100.49; cpp_options="-eZ";;
    773         (ground.yonsei.ac.kr) remote_addres=134.75.155.33;;
    774      (*)                 printf "\n  +++ remote host \"$remote_host\" unknown";
    775                          printf "\n      please inform S. Raasch!";
    776                          locat=config_file; exit;;
    777738    esac
    778739
     
    912873
    913874
    914        # PRAEPROZESSOR-DIREKTIVEN SETZEN
    915     if [[ $(echo $remote_host | cut -c1-3) = ibm ]]
    916     then
    917        if [[ $remote_host = ibms ]]
    918        then
    919           cpp_options="$cpp_options -WF,-DMPI_REAL=MPI_DOUBLE_PRECISION"
    920           [[ $netcdf_support = true ]]  &&  cpp_options="${cpp_options},-D__netcdf"
    921        else
    922           cpp_options="$cpp_options -WF,-DMPI_REAL=MPI_DOUBLE_PRECISION"
    923           [[ $netcdf_support = true ]]  &&  cpp_options="${cpp_options},-D__netcdf,-D__netcdf_64bit"
    924           [[ $remote_host = ibmy ]]  &&  cpp_options="${cpp_options},-D__ibmy_special"
    925        fi
    926     elif [[ $remote_host = lcmuk ]]
    927     then
    928        cpp_options="$cpp_options -DMPI_REAL=MPI_DOUBLE_PRECISION -DMPI_2REAL=MPI_2DOUBLE_PRECISION"
    929        [[ $netcdf_support = true ]]  &&  cpp_options="$cpp_options -D__netcdf -D__netcdf_64bit"
    930     elif [[ $remote_host = lctit ]]
    931     then
    932        cpp_options="$cpp_options -DMPI_REAL=MPI_DOUBLE_PRECISION -DMPI_2REAL=MPI_2DOUBLE_PRECISION"
    933        [[ $netcdf_support = true ]]  &&  cpp_options="$cpp_options -D__netcdf"
    934     elif [[ $remote_host = decalpha ]]
    935     then
    936        cpp_options="$cpp_options -DMPI_REAL=MPI_DOUBLE_PRECISION -DMPI_2REAL=MPI_2DOUBLE_PRECISION"
    937        [[ $netcdf_support = true ]]  &&  cpp_options="$cpp_options -D__netcdf"
    938     elif [[ $remote_host = nech  ||  $remote_host = neck ]]
    939     then
    940        cpp_options="$cpp_options -DMPI_REAL=MPI_REAL8 -DMPI_2REAL=MPI_2REAL8 -DSCFFT=DZFFT -DCSFFT=ZDFFT"
    941        [[ $netcdf_support = true ]]  &&  cpp_options="$cpp_options -D__netcdf -D__netcdf_64bit"
    942     fi
    943 
    944     if [[ $(echo $remote_host | cut -c1-3) = ibm ]]
    945     then
    946        for  string  in  $remote_host_string
    947        do
    948           if [[ $(echo $string | cut -c1-3) = ibm ]]
    949           then
    950              cpp_options="${cpp_options},-D__ibm"
    951              if [[ $remote_host = ibmy ]]
    952              then
    953                 cpp_options="${cpp_options},-D__ibmy_special"
    954              fi
    955           else
    956              cpp_options="${cpp_options},-D__$string"
    957           fi
    958        done
    959        cpp_options="$cpp_options "
    960     elif [[ $remote_host = nech  ||  $remote_host = neck ]]
    961     then
    962        for  string  in  $remote_host_string
    963        do
    964           if [[ $(echo $string | cut -c1-3) = nec ]]
    965           then
    966              cpp_options="${cpp_options} -D__nec"
    967           else
    968              cpp_options="${cpp_options} -D__$string"
    969           fi
    970        done
    971        cpp_options="$cpp_options "
    972     else
    973        for  string  in  $remote_host_string
    974        do
    975           cpp_options="$cpp_options -D__$string "
    976        done
    977     fi
    978 
    979 
    980875       # PRAEPROZESSOR-OPTIONEN/DIREKTIVEN ERMITTELN
    981876    line=""
     
    1004899       then
    1005900          cpp_options="$cpp_options -D__lc "
     901       elif [[ $(echo $remote_host | cut -c1-3) = ibm  &&  $(echo $string | cut -c1-3) = ibm ]]
     902       then
     903          cpp_options="${cpp_options},-D__ibm"
     904       elif [[ $(echo $remote_host | cut -c1-3) = nec  &&  $(echo $string | cut -c1-3) = nec ]]
     905       then
     906          cpp_options="${cpp_options} -D__nec"
    1006907       else
    1007           cpp_options="$cpp_options -D__$string "
     908          if [[ $(echo $remote_host | cut -c1-3) = ibm ]]
     909          then
     910             cpp_options="${cpp_options},-D__$string"
     911          else
     912             cpp_options="$cpp_options -D__$string "
     913          fi
    1008914       fi
    1009915    done
     
    1067973    fi
    1068974
    1069     if [[ $netcdf_support = true ]]
    1070     then
    1071        case  $remote_host  in
    1072           (decalpha)  compiler_options="-I${netcdf_path}/include  $compiler_options";;
    1073           (ibmb|ibmh) compiler_options="-I ${netcdf_path}/include-64  $compiler_options";;
    1074           (ibms)      compiler_options="-I /applic/netcdf64/src/f90  $compiler_options";;
    1075           (ibmy)      compiler_options="-I ${netcdf_path}/include  $compiler_options";;
    1076           (lctit)     compiler_options="-I ${netcdf_path}/include  $compiler_options";;
    1077           (nech|neck) compiler_options="-I ${netcdf_path}/include  $compiler_options";;
    1078        esac
    1079     fi
    1080975
    1081976
     
    1102997          # NETCDF-LIBRARY HINZUFUEGEN
    1103998       loader_options="$loader_options $netcdf_lib"
    1104     fi
    1105 
    1106     if [[ $netcdf_support = true ]]
    1107     then
    1108        case  $remote_host  in
    1109           (decalpha)             loader_options="$loader_options -L${netcdf_path}/lib -lnetcdf";;
    1110           (ibmb|ibmh|nech|neck)  loader_options="$loader_options -L${netcdf_path}/lib -lnetcdf";;
    1111           (ibms)                 loader_options="$loader_options -L${netcdf_path} -lnetcdf";;
    1112           (ibmy)                 loader_options="$loader_options -L${netcdf_path}/lib -lnetcdf";;
    1113           (lctit)                loader_options="$loader_options -L${netcdf_path}/lib -lnetcdf";;
    1114        esac
    1115999    fi
    11161000
Note: See TracChangeset for help on using the changeset viewer.