Changeset 1682 for palm/trunk/SOURCE/progress_bar.f90
- Timestamp:
- Oct 7, 2015 11:56:08 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/progress_bar.f90
r1469 r1682 1 MODULE progress_bar 2 1 !> @file progress_bar.f90 3 2 !--------------------------------------------------------------------------------! 4 3 ! This file is part of PALM. … … 20 19 ! Current revisions: 21 20 ! ----------------- 22 ! 21 ! Code annotations made doxygen readable 23 22 ! 24 23 ! Former revisions: … … 31 30 ! Description: 32 31 ! ------------ 33 ! This routine prints either a progress bar on the standard output in case of 34 ! interactive runs, or it prints the progress in a separate file called 35 ! PROGRESS. 36 !------------------------------------------------------------------------------! 32 !> This routine prints either a progress bar on the standard output in case of 33 !> interactive runs, or it prints the progress in a separate file called 34 !> PROGRESS. 35 !------------------------------------------------------------------------------! 36 MODULE progress_bar 37 37 38 38 39 USE control_parameters, & … … 50 51 PUBLIC batch_job, finish_progress_bar, output_progress_bar 51 52 52 CHARACTER(LEN=60) :: bar ! :progress bar, initially filled with "_"53 CHARACTER(LEN=60) :: crosses ! :filled with "X"54 55 INTEGER(iwp) :: ilength ! :length of progress bar filled with "X"56 57 LOGICAL :: batch_job = .FALSE. ! :switch to determine the run mode58 59 REAL(wp) :: time_to_be_simulated ! :in sec60 61 LOGICAL :: initialized = .FALSE. ! :switch to determine if bar is initialized53 CHARACTER(LEN=60) :: bar !< progress bar, initially filled with "_" 54 CHARACTER(LEN=60) :: crosses !< filled with "X" 55 56 INTEGER(iwp) :: ilength !< length of progress bar filled with "X" 57 58 LOGICAL :: batch_job = .FALSE. !< switch to determine the run mode 59 60 REAL(wp) :: time_to_be_simulated !< in sec 61 62 LOGICAL :: initialized = .FALSE. !< switch to determine if bar is initialized 62 63 63 64 SAVE … … 65 66 CONTAINS 66 67 68 !------------------------------------------------------------------------------! 69 ! Description: 70 ! ------------ 71 !> Initialize the progress bar/file 72 !------------------------------------------------------------------------------! 73 67 74 SUBROUTINE init_progress_bar 68 !------------------------------------------------------------------------------!69 ! Description:70 ! ------------71 ! Initialize the progress bar/file72 !------------------------------------------------------------------------------!73 75 74 76 IMPLICIT NONE … … 113 115 114 116 117 !------------------------------------------------------------------------------! 118 ! Description: 119 ! ------------ 120 !> Print progress data to standard output (interactive) or to file (batch jobs) 121 !------------------------------------------------------------------------------! 122 115 123 SUBROUTINE output_progress_bar 116 !------------------------------------------------------------------------------!117 ! Description:118 ! ------------119 ! Print progress data to standard output (interactive) or to file (batch jobs)120 !------------------------------------------------------------------------------!121 124 122 125 IMPLICIT NONE 123 126 124 REAL(wp) :: remaining_time_in_percent ! :remaining time to be simulated125 ! :in the job126 REAL(wp) :: remaining_time_in_percent_total ! :total remaining time of127 ! :the job chain127 REAL(wp) :: remaining_time_in_percent !< remaining time to be simulated 128 !< in the job 129 REAL(wp) :: remaining_time_in_percent_total !< total remaining time of 130 !< the job chain 128 131 129 132 IF ( .NOT. initialized ) CALL init_progress_bar … … 170 173 END SUBROUTINE output_progress_bar 171 174 175 !------------------------------------------------------------------------------! 176 ! Description: 177 ! ------------ 178 !> Finalization of the progress bar/file 179 !------------------------------------------------------------------------------! 180 172 181 SUBROUTINE finish_progress_bar 173 !------------------------------------------------------------------------------!174 ! Description:175 ! ------------176 ! Finalization of the progress bar/file177 !------------------------------------------------------------------------------!178 182 179 183 IMPLICIT NONE
Note: See TracChangeset
for help on using the changeset viewer.