Changeset 3455 for palm/trunk/SCRIPTS/palmrun
- Timestamp:
- Oct 30, 2018 2:12:31 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/palmrun
r3402 r3455 27 27 # ----------------- 28 28 # $Id$ 29 # options -h and -d renamed -c and -r, respectively 30 # 31 # 3402 2018-10-23 11:49:24Z knoop 29 32 # job_id is set for compatibility reasons with older versions of config files 30 33 # … … 288 291 # READ SHELLSCRIPT-OPTIONS AND REBUILD THE PALMRUN-COMMAND STRING (prc), 289 292 # WHICH WILL BE USED TO START RESTART-JOBS 290 while getopts :a:A:bB Cd:FG:h:i:jkm:M:O:q:R:s:t:T:u:U:vVw:W:xX:yY:zZ option293 while getopts :a:A:bBc:CFG:i:jkm:M:O:q:r:R:s:t:T:u:U:vVw:W:xX:yY:zZ option 291 294 do 292 295 case $option in … … 295 298 (b) create_batch_job=true; prc="$prc -b";; 296 299 (B) delete_temporary_catalog=false; prc="$prc -B";; 300 (c) configuration_identifier=$OPTARG; prc="$prc -c$OPTARG";; 297 301 (C) restart_run=true; prc="$prc -C";; 298 (d) run_identifier=$OPTARG; prc="$prc -d$OPTARG";;299 302 (F) create_jobfile_only=true;; 300 303 (G) global_revision=$OPTARG; prc="$prc -G'$OPTARG'";; 301 (h) configuration_identifier=$OPTARG; prc="$prc -h$OPTARG";;302 304 (i) run_id_number=$OPTARG;; 303 305 (j) running_in_batch_mode=true;; … … 307 309 (O) use_openmp=true; threads_per_task=$OPTARG; prc="$prc -O$OPTARG";; 308 310 (q) queue=$OPTARG; prc="$prc -q$OPTARG";; 311 (r) run_identifier=$OPTARG; prc="$prc -r$OPTARG";; 309 312 (R) return_address=$OPTARG;; 310 313 (s) source_list=$OPTARG;; … … 344 347 printf "\n -b batch-job on local machine ---" 345 348 printf "\n -B do not delete temporary directory at end ---" 346 printf "\n - d run identifier test"349 printf "\n -c configuration identifier \"default\" " 347 350 printf "\n -F create batch job file only ---" 348 printf "\n -h host configuration \"default\" "349 351 printf "\n -k keep data from previous run" 350 352 printf "\n -m memory demand in MB (batch-jobs) 0 MB" … … 352 354 printf "\n -O threads per openMP task ---" 353 355 printf "\n -q queue \"$queue\" " 356 printf "\n -r run identifier test" 354 357 printf "\n -s filenames of routines to be compiled \"\" " 355 358 printf "\n must end with .f, .f90, .F, or .c !" … … 387 390 printf "\n*** $version " 388 391 printf "\n will be executed. Please wait ..." 389 390 391 # FOR COMPATIBILITY REASONS SET OLD ENVIRONMENT VARIABLES392 export fname=$run_identifier393 export jobname=$run_identifier394 392 395 393 … … 1869 1867 if [[ $do_trace = true ]] 1870 1868 then 1871 palmbuild - h$configuration_identifier1869 palmbuild -c $configuration_identifier 1872 1870 else 1873 palmbuild -v - h$configuration_identifier1871 palmbuild -v -c $configuration_identifier 1874 1872 fi 1875 1873 … … 1888 1886 1889 1887 # NOW CREATE THE SOURCES_FOR_RUN FOLDER 1890 palmbuild -v $use_existing_sources_folder - h $configuration_identifier -d$run_identifier1888 palmbuild -v $use_existing_sources_folder -c $configuration_identifier -r $run_identifier 1891 1889 1892 1890 if [[ ${PIPESTATUS[0]} != 0 ]] … … 2778 2776 printf "\n$dashes\n +++ creating restart run failed \n" 2779 2777 locat=create_restart 2778 rm palmrun_restart.log 2780 2779 exit 2781 rm palmrun_restart.log2782 2780 else 2783 2781 printf "\n$dashes\n *** restart run initiated \n" … … 2815 2813 2816 2814 # BUILD THE PALMRUN-COMMAND TO BE CALLED IN THE BATCH-JOB 2817 palmrun_com="$palmrun_script_name - d $run_identifier -h$configuration_identifier -m $memory -t $cpumax -q $queue -i $run_id_number -U $local_username"2815 palmrun_com="$palmrun_script_name -r $run_identifier -c $configuration_identifier -m $memory -t $cpumax -q $queue -i $run_id_number -U $local_username" 2818 2816 [[ "$activation_string_list" != "" ]] && palmrun_com=${palmrun_com}" -a \"$activation_string_list\"" 2819 2817 [[ "$global_revision" != "" ]] && palmrun_com=${palmrun_com}" -G \"$global_revision\""
Note: See TracChangeset
for help on using the changeset viewer.