Changeset 3917 for palm/trunk/SCRIPTS


Ignore:
Timestamp:
Apr 18, 2019 11:46:37 AM (6 years ago)
Author:
raasch
Message:

in case of batch jobs on remote machines, copying files from SOURCES_FOR_RUN folder has been rearranged to avoid that input files with original names (e.g. ..._p3d) are copied into the temporary working catalog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/palmrun

    r3860 r3917  
    2727# -----------------
    2828# $Id$
     29# in case of batch jobs on remote machines, copying files from SOURCES_FOR_RUN folder has
     30# been rearranged to avoid that input files with original names (e.g. ..._p3d) are copied
     31# into the temporary working catalog
     32#
     33# 3860 2019-04-04 06:23:27Z raasch
    2934# check added, that it is not allowed to set option -b if the configuration file has been setup
    3035# for running batch jobs on remote hosts,
     
    19791984    if [[ $running_in_batch_mode = false ]]
    19801985    then
    1981           # CREATE THE DIRECTORY AND COPY FILES FROM SOURCES_FOR_RUN_... TO THAT
    1982           # FOLDER
     1986          # CREATE THE DIRECTORY
    19831987       mkdir -p  $tempdir
    19841988       chmod  go+rx  $tempdir
    19851989       cd  $tempdir
    1986        cp  ${fast_io_catalog}/${sources_for_run_catalog}/{*,.[!.]*}  $tempdir
    19871990       printf "\n  *** changed to temporary directory: $tempdir"
    19881991
     
    21712174       printf "\n$dashes\n  *** all INPUT-files provided \n"
    21722175    fi
     2176
     2177       # NOW COPY FILES (*.f90, *.o, config files, etc.) FROM SOURCES_FOR_RUN_... TO THE TEMPORARY
     2178       # WORKING DIRECTORY
     2179    cp  ${fast_io_catalog}/${sources_for_run_catalog}/{*,.[!.]*}  $tempdir
    21732180
    21742181
     
    29953002    echo  "cd  $tempdir"                 >>  $jobfile
    29963003    echo  "export tempdir=$tempdir"      >>  $jobfile
    2997     echo  "cp  ${fast_io_catalog}/${sources_for_run_catalog}/{*,.[!.]*}  ."  >>  $jobfile
    2998     echo  "export PATH=.:\$PATH"         >>  $jobfile
     3004    echo  "cp  ${fast_io_catalog}/${sources_for_run_catalog}/.[!.]*  ."           >>  $jobfile
     3005    echo  "export PATH=.:${fast_io_catalog}/${sources_for_run_catalog}:\$PATH"    >>  $jobfile
    29993006    echo  "export execute_palmrun=true"  >>  $jobfile
    30003007
Note: See TracChangeset for help on using the changeset viewer.