Changeset 3313 for palm/trunk
- Timestamp:
- Oct 6, 2018 3:22:48 PM (6 years ago)
- Location:
- palm/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/palmrun
r3312 r3313 230 230 remote_username="" 231 231 running_in_batch_mode=false 232 running_in_test_mode=false 232 233 run_coupled_model=false 233 234 run_id="" … … 284 285 # READ SHELLSCRIPT-OPTIONS AND REBUILD THE PALMRUN-COMMAND STRING (prc), 285 286 # 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 option287 while getopts :a:A:bBCd:FG:h:i:jkm:M:O:q:R:s:t:T:u:U:vVw:W:xX:yY:zZ option 287 288 do 288 289 case $option in … … 317 318 (y) ocean_file_appendix=true; prc="$prc -y";; 318 319 (Y) run_coupled_model=true; coupled_dist=$OPTARG; prc="$prc -Y'$OPTARG'";; 320 (z) running_in_test_mode=true;; 319 321 (Z) combine_plot_fields=false; prc="$prc -Z";; 320 322 (\?) printf "\n +++ unknown option $OPTARG \n" … … 2141 2143 2142 2144 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 2143 2154 # CREATE THE NAMELIST-FILE WITH VALUES OF ENVIRONMENT-VARIABLES REQUIRED BY PALM 2144 2155 # (FILE ENVPAR WILL BE READ BY PALM) … … 2150 2161 maximum_cpu_time_allowed = ${cpumax}., 2151 2162 revision = '$global_revision', 2152 batch_job = .${running_in_batch_mode}. /2163 progress_bar_disabled = .${progress_bar_disabled}. / 2153 2164 2154 2165 EOF -
palm/trunk/SOURCE/parin.f90
r3298 r3313 307 307 ! 308 308 ! 1402 2014-05-09 14:25:13Z raasch 309 ! location messages modified, batch_jobincluded in envpar-NAMELIST309 ! location messages modified, progress_bar_disabled included in envpar-NAMELIST 310 310 ! 311 311 ! 1384 2014-05-02 14:31:06Z raasch … … 495 495 496 496 USE progress_bar, & 497 ONLY : batch_job497 ONLY : progress_bar_disabled 498 498 499 499 USE radiation_model_mod, & … … 722 722 termination_time_needed, vnest_start_time 723 723 724 NAMELIST /envpar/ batch_job, host, local_dvrserver_running,&724 NAMELIST /envpar/ progress_bar_disabled, host, local_dvrserver_running, & 725 725 maximum_cpu_time_allowed, maximum_parallel_io_streams, & 726 726 read_svf, revision, run_identifier, tasks_per_node, & -
palm/trunk/SOURCE/progress_bar_mod.f90
r3232 r3313 80 80 81 81 PRIVATE 82 PUBLIC batch_job, finish_progress_bar, output_progress_bar82 PUBLIC progress_bar_disabled, finish_progress_bar, output_progress_bar 83 83 84 84 CHARACTER(LEN=60) :: bar !< progress bar, initially filled with "_" … … 87 87 INTEGER(iwp) :: ilength !< length of progress bar filled with "X" 88 88 89 LOGICAL :: batch_job = .FALSE. !< switch to determine the run mode89 LOGICAL :: progress_bar_disabled = .FALSE. !< envpar-Namelist switch 90 90 91 91 REAL(wp) :: time_to_be_simulated !< in sec … … 121 121 ENDIF 122 122 123 IF ( batch_job) THEN123 IF ( progress_bar_disabled ) THEN 124 124 125 125 CALL check_open ( 117 ) … … 183 183 ! 184 184 !-- In batch mode, use a file (PROGRESS), otherwise use progress bar 185 IF ( batch_job) THEN185 IF ( progress_bar_disabled ) THEN 186 186 187 187 BACKSPACE ( 117 ) … … 226 226 IMPLICIT NONE 227 227 228 IF ( batch_job) THEN228 IF ( progress_bar_disabled ) THEN 229 229 230 230 CALL close_file ( 117 )
Note: See TracChangeset
for help on using the changeset viewer.