Changeset 3313 for palm/trunk/SCRIPTS


Ignore:
Timestamp:
Oct 6, 2018 3:22:48 PM (6 years ago)
Author:
knoop
Message:

Added test mode to palmrun

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/palmrun

    r3312 r3313  
    230230 remote_username=""
    231231 running_in_batch_mode=false
     232 running_in_test_mode=false
    232233 run_coupled_model=false
    233234 run_id=""
     
    284285    # READ SHELLSCRIPT-OPTIONS AND REBUILD THE PALMRUN-COMMAND STRING (prc),
    285286    # WHICH WILL BE USED TO START RESTART-JOBS
    286  while  getopts  :a:A:bBCd:FG:h:i:jkm:M:O:q:R:s:t:T:u:U:vVw:W:xX:yY:Z option
     287 while  getopts  :a:A:bBCd:FG:h:i:jkm:M:O:q:R:s:t:T:u:U:vVw:W:xX:yY:zZ option
    287288 do
    288289   case  $option  in
     
    317318       (y)   ocean_file_appendix=true; prc="$prc -y";;
    318319       (Y)   run_coupled_model=true; coupled_dist=$OPTARG; prc="$prc -Y'$OPTARG'";;
     320       (z)   running_in_test_mode=true;;
    319321       (Z)   combine_plot_fields=false; prc="$prc -Z";;
    320322       (\?)  printf "\n  +++ unknown option $OPTARG \n"
     
    21412143
    21422144
     2145    # CHECK IF THE PROGRESS BAR NEEDS TO BE DISABLED
     2146    if [[ $running_in_batch_mode = true  ||  $running_in_test_mode = true ]]
     2147    then
     2148       progress_bar_disabled=true
     2149    else
     2150       progress_bar_disabled=false
     2151    fi
     2152
     2153
    21432154       # CREATE THE NAMELIST-FILE WITH VALUES OF ENVIRONMENT-VARIABLES REQUIRED BY PALM
    21442155       # (FILE ENVPAR WILL BE READ BY PALM)
     
    21502161          maximum_cpu_time_allowed = ${cpumax}.,
    21512162          revision = '$global_revision',
    2152           batch_job = .${running_in_batch_mode}. /
     2163          progress_bar_disabled = .${progress_bar_disabled}. /
    21532164
    21542165EOF
Note: See TracChangeset for help on using the changeset viewer.