Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RFLU_PrintWarnInfo.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 information on warnings.
26 !
27 ! Description: None.
28 !
29 ! Input:
30 ! global Pointer to global data
31 !
32 ! Output: None.
33 !
34 ! Notes: None.
35 !
36 ! ******************************************************************************
37 !
38 ! $Id: RFLU_PrintWarnInfo.F90,v 1.5 2008/12/06 08:44:12 mtcampbe Exp $
39 !
40 ! Copyright: (c) 2003 by the University of Illinois
41 !
42 ! ******************************************************************************
43 
44 SUBROUTINE rflu_printwarninfo(global)
45 
46  USE moddatatypes
47  USE moderror
48  USE modglobal, ONLY: t_global
49  USE modparameters
50  USE modmpi
51 
52  IMPLICIT NONE
53 
54 ! ******************************************************************************
55 ! Definitions and declarations
56 ! ******************************************************************************
57 
58 ! ==============================================================================
59 ! Arguments
60 ! ==============================================================================
61 
62  TYPE(t_global), POINTER :: global
63 
64 ! ==============================================================================
65 ! Locals
66 ! ==============================================================================
67 
68  CHARACTER(CHRLEN) :: rcsidentstring
69 
70 ! ******************************************************************************
71 ! Start
72 ! ******************************************************************************
73 
74  rcsidentstring = '$RCSfile: RFLU_PrintWarnInfo.F90,v $ $Revision: 1.5 $'
75 
76  CALL registerfunction(global,'RFLU_PrintWarnInfo',&
77  'RFLU_PrintWarnInfo.F90')
78 
79 ! ******************************************************************************
80 ! Write info on number of warnings
81 ! ******************************************************************************
82 
83  !IF ( (global%myProcid == MASTERPROC) .AND. &
84  ! (global%verbLevel /= VERBOSE_NONE) ) THEN
85  IF ( (global%myProcid == masterproc) .AND. &
86  (global%verbLevel >= verbose_none) .AND. &
87  (global%warnCounter /= 0) ) THEN
88  WRITE(stdout,'(A)') solver_name
89  WRITE(stdout,'(A,2(1X,A),1X,I6,1X,A)') solver_name,'*** WARNING ***', &
90  'This run generated',global%warnCounter,'warning(s).'
91  END IF ! global%myProcid
92 
93 ! ******************************************************************************
94 ! End
95 ! ******************************************************************************
96 
97  CALL deregisterfunction(global)
98 
99 END SUBROUTINE rflu_printwarninfo
100 
101 ! ******************************************************************************
102 !
103 ! RCS Revision history:
104 !
105 ! $Log: RFLU_PrintWarnInfo.F90,v $
106 ! Revision 1.5 2008/12/06 08:44:12 mtcampbe
107 ! Updated license.
108 !
109 ! Revision 1.4 2008/11/19 22:17:25 mtcampbe
110 ! Added Illinois Open Source License/Copyright
111 !
112 ! Revision 1.3 2006/04/07 15:19:16 haselbac
113 ! Removed tabs
114 !
115 ! Revision 1.2 2005/04/15 15:06:18 haselbac
116 ! Now print number of warnings even if have none, cosmetics
117 !
118 ! Revision 1.1 2003/08/07 15:28:28 haselbac
119 ! Initial revision
120 !
121 ! ******************************************************************************
122 
123 
124 
125 
126 
127 
128 
subroutine rflu_printwarninfo(global)
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine deregisterfunction(global)
Definition: ModError.F90:469