Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TFLU_CorrectNedges.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: correct global number of edges
26 !
27 ! Description: to this point number of edges is calculated by increamenting
28 ! global%tofluNedges by 3 times number of vertices over all
29 ! regions subtracted by overcalculated edges due to connecting
30 ! patches. There remains overcalculated edges at the patches
31 ! with lbound = 2, 4, and 6. This has to be corrected.
32 !
33 ! Input: iReg = region number
34 ! regions = data for all regions
35 !
36 ! Output: updated global%tofluNedges
37 !
38 ! Notes: none.
39 !
40 !******************************************************************************
41 !
42 ! $Id: TFLU_CorrectNedges.F90,v 1.3 2008/12/06 08:44:53 mtcampbe Exp $
43 !
44 ! Copyright: (c) 2001 by the University of Illinois
45 !
46 !******************************************************************************
47 
48 SUBROUTINE correctnedges( global )
49 
50  USE moddatatypes
51  USE moderror
52  USE modglobal, ONLY : t_global
53  IMPLICIT NONE
54 
55 ! ... parameters
56  TYPE(t_global), POINTER :: global
57 
58 ! ... loop variables
59  INTEGER :: ibv, lbound
60 
61 !******************************************************************************
62 
63  CALL registerfunction( global,'CorrectNedges',&
64  'TFLU_CorrectNedges.F90' )
65 
66 ! start -----------------------------------------------------------------------
67 
68  DO ibv = 1,global%tofluMaxBind
69  DO lbound = 1,6
70 
71  IF (lbound==2 .AND. global%tofluBType(2,ibv)==1) THEN
72  global%tofluNEdges = global%tofluNEdges - 1
73 
74  ELSEIF (lbound==4 .AND. global%tofluBType(4,ibv)==1) THEN
75  global%tofluNEdges = global%tofluNEdges - 1
76 
77  ELSEIF (lbound==6 .AND. global%tofluBType(6,ibv)==1) THEN
78  global%tofluNEdges = global%tofluNEdges - 1
79 
80  ENDIF
81  ENDDO ! lbound
82  ENDDO ! iBv
83 
84 ! finalize --------------------------------------------------------------------
85 
86  CALL deregisterfunction( global )
87 
88 END SUBROUTINE correctnedges
89 
90 !******************************************************************************
91 !
92 ! RCS Revision history:
93 !
94 ! $Log: TFLU_CorrectNedges.F90,v $
95 ! Revision 1.3 2008/12/06 08:44:53 mtcampbe
96 ! Updated license.
97 !
98 ! Revision 1.2 2008/11/19 22:18:03 mtcampbe
99 ! Added Illinois Open Source License/Copyright
100 !
101 ! Revision 1.1 2004/12/03 02:59:30 wasistho
102 ! added prefix
103 !
104 ! Revision 1.1 2004/12/03 00:58:20 wasistho
105 ! lower to upper case
106 !
107 ! Revision 1.1 2004/08/18 02:15:12 wasistho
108 ! added new routines to create dimension file
109 !
110 !
111 !******************************************************************************
112 
113 
114 
115 
116 
117 
118 
subroutine correctnedges(global)
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine deregisterfunction(global)
Definition: ModError.F90:469