Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RFLU_PrintProgressDots.F90
Go to the documentation of this file.
1 ! *********************************************************************
2 ! * Rocstar Simulation Suite *
3 ! * Copyright@2015, Illinois Rocstar LLC. All rights reserved. *
4 ! * *
5 ! * Illinois Rocstar LLC *
6 ! * Champaign, IL *
7 ! * www.illinoisrocstar.com *
8 ! * sales@illinoisrocstar.com *
9 ! * *
10 ! * License: See LICENSE file in top level of distribution package or *
11 ! * http://opensource.org/licenses/NCSA *
12 ! *********************************************************************
13 ! *********************************************************************
14 ! * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, *
15 ! * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES *
16 ! * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND *
17 ! * NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR *
18 ! * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
19 ! * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, *
20 ! * Arising FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE *
21 ! * USE OR OTHER DEALINGS WITH THE SOFTWARE. *
22 ! *********************************************************************
23 !******************************************************************************
24 !
25 ! Purpose: Print dots on a line to indicate progress of a length task.
26 !
27 ! Description: None.
28 !
29 ! Input:
30 ! nowValue Current value
31 ! endValye End value
32 !
33 ! Output: None.
34 !
35 ! Notes: None.
36 !
37 !******************************************************************************
38 !
39 ! $Id: RFLU_PrintProgressDots.F90,v 1.6 2008/12/06 08:44:12 mtcampbe Exp $
40 !
41 ! Copyright: (c) 2002 by the University of Illinois
42 !
43 !******************************************************************************
44 
45 SUBROUTINE rflu_printprogressdots(nowValue,endValue)
46 
47  USE moddatatypes
48  USE moderror
49  USE modglobal, ONLY: global
50  USE modparameters
51 
52  IMPLICIT NONE
53 
54 ! ... parameters
55  INTEGER, INTENT(IN) :: endvalue,nowvalue
56 
57 ! ... loop variables
58 
59 
60 ! ... local variables
61  CHARACTER(CHRLEN) :: rcsidentstring
62  REAL(RFREAL) :: pdone
63 
64 !******************************************************************************
65 
66  rcsidentstring = '$RCSfile: RFLU_PrintProgressDots.F90,v $ $Revision: 1.6 $'
67 
68  CALL registerfunction('RFLU_PrintProgressDots',&
69  'RFLU_PrintProgressDots.F90')
70 
71 ! start -----------------------------------------------------------------------
72 
73  pdone = 100.0_rfreal*nowvalue/REAL(endvalue,kind=rfreal)
74 
75  IF ( int(pdone) >= 10*global%progressCounter ) THEN
76  WRITE(stdout,'(A)',advance="NO") '.'
77  global%progressCounter = global%progressCounter + 1
78  END IF ! NINT
79 
80  IF ( nowvalue == endvalue ) THEN
81  global%progressCounter = 1
82  WRITE(stdout,'(A)') ' '
83  END IF ! nowValue
84 
85 ! end -------------------------------------------------------------------------
86 
87  CALL deregisterfunction()
88 
89 END SUBROUTINE
90 
91 !******************************************************************************
92 !
93 ! RCS Revision history:
94 !
95 ! $Log: RFLU_PrintProgressDots.F90,v $
96 ! Revision 1.6 2008/12/06 08:44:12 mtcampbe
97 ! Updated license.
98 !
99 ! Revision 1.5 2008/11/19 22:17:25 mtcampbe
100 ! Added Illinois Open Source License/Copyright
101 !
102 ! Revision 1.4 2003/05/16 02:27:44 haselbac
103 ! Removed KIND=RFREAL from NINT statements
104 !
105 ! Revision 1.3 2003/03/15 17:06:38 haselbac
106 ! Added KIND qualifyer
107 !
108 ! Revision 1.2 2002/10/27 18:54:05 haselbac
109 ! Removed tabs
110 !
111 ! Revision 1.1 2002/07/25 14:34:59 haselbac
112 ! Initial revision
113 !
114 !******************************************************************************
115 
116 
117 
118 
119 
120 
121 
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine rflu_printprogressdots(nowValue, endValue)
subroutine deregisterfunction(global)
Definition: ModError.F90:469