Ignore:
Timestamp:
Apr 4, 2019 6:23:27 AM (6 years ago)
Author:
raasch
Message:

check added, that it is not allowed to set option -b if the configuration file has been setup for running batch jobs on remote hosts, local time added to terminal output before and after saving output files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/palmrun

    r3725 r3860  
    2727# -----------------
    2828# $Id$
     29# check added, that it is not allowed to set option -b if the configuration file has been setup
     30# for running batch jobs on remote hosts,
     31# local time added to terminal output before and after saving output files
     32#
     33# 3725 2019-02-07 10:11:02Z raasch
    2934# error messages for failed restarts extended
    3035#
     
    612617 if [[ "$fast_io_catalog" = "" ]]
    613618 then
    614     printf "\n  +++ no fast_io_catalog found in $config_file"
     619    printf "\n\n  +++ no fast_io_catalog found in $config_file"
    615620    printf "\n      Please add line \"fast_io_catalog ...\" to that file."
    616621    locat=config_file; exit
     
    618623 if [[ "$compiler_name" = "" ]]
    619624 then
    620     printf "\n  +++ no compiler name found in $config_file"
     625    printf "\n\n  +++ no compiler name found in $config_file"
    621626    printf "\n      Please add line \"compiler_name ...\" to that file."
    622627    locat=config_file; exit
     
    624629 if [[ "$compiler_name_ser" = "" ]]
    625630 then
    626     printf "\n  +++ no compiler name for non-paralle compilation found in $config_file"
     631    printf "\n\n  +++ no compiler name for non-paralle compilation found in $config_file"
    627632    printf "\n      Please add line \"compiler_name_ser ...\" to that file."
    628633    locat=config_file; exit
     
    630635 if [[ "$compiler_options" = "" ]]
    631636 then
    632     printf "\n  +++ no compiler options found in $config_file"
     637    printf "\n\n  +++ no compiler options found in $config_file"
    633638    printf "\n      Please add line \"compiler_options ...\" to that file."
    634639    locat=config_file; exit
     
    636641 if [[ "$execute_command" = "" ]]
    637642 then
    638     printf "\n  +++ no execute command found in $config_file"
     643    printf "\n\n  +++ no execute command found in $config_file"
    639644    printf "\n      Please add line \"execute_command ...\" to that file."
    640645    locat=config_file; exit
     
    645650    if [[ $hostfile != auto  &&  ! -f $hostfile ]]
    646651    then
    647        printf "\n  +++ no hostfile \"$hostfile\" found"
     652       printf "\n\n  +++ no hostfile \"$hostfile\" found"
    648653       printf "\n      Please check line \"hostfile ...\" in $config_file"
    649654       locat=config_file; exit   
     
    672677        if [[ "$remote_jobcatalog" = "" ]]
    673678        then
    674            printf "\n  +++ no remote jobcatalog found in $config_file"
     679           printf "\n\n  +++ no remote jobcatalog found in $config_file"
    675680           printf "\n      Please add line \"remote_jobcatalog ...\" to that file."
    676681           locat=config_file; exit
    677682        fi
    678  
     683
     684           # CHECK THAT OPTION -b (SUBMITTING BATCH JOB ON LOCAL HOST) HASN'T BEEN SET
     685        if [[ $create_batch_job = true ]]
     686        then
     687           printf "\n\n  +++ option -b must not be set because configuration file has been setup"
     688           printf "\n      for running jobs on a remote host"
     689           locat=config_file; exit
     690        fi
    679691
    680692     fi
     
    24272439       if (( i == 1 ))
    24282440       then
    2429           printf "\n\n  *** saving OUTPUT-files:"
     2441          timestring=`date +%H:%M:%S`
     2442          printf "\n\n  *** saving OUTPUT-files:     local time: $timestring"
    24302443
    24312444             # GET RUN NUMBER ASSIGNED BY PALM
     
    27352748    if (( i != 0 ))
    27362749    then
     2750       timestring=`date +%H:%M:%S`
    27372751       if [[ $transfer_problems = true ]]
    27382752       then
    2739           printf "\n$dashes\n  *** OUTPUT-files saved"
     2753          printf "\n$dashes\n  *** OUTPUT-files saved       local time: $timestring"
    27402754          printf "\n  +++ WARNING: some data transfers failed! \n"
    27412755       else
    2742           printf "\n$dashes\n  *** all OUTPUT-files saved \n"
     2756          printf "\n$dashes\n  *** all OUTPUT-files saved       local time: $timestring \n"
    27432757       fi
    27442758    fi
Note: See TracChangeset for help on using the changeset viewer.