67 TYPE(t_region
),
POINTER :: pregion
73 CHARACTER :: infotype,stenciltype
74 CHARACTER(CHRLEN) :: rcsidentstring
75 INTEGER :: errorflag,faceindx,ifacesspecial,patchindx
77 TYPE(t_grid),
POINTER :: pgrid
78 TYPE(t_patch),
POINTER :: ppatch
84 rcsidentstring =
'$RCSfile: RFLU_PickSpecialFaces.F90,v $ $Revision: 1.3 $'
86 global => pregion%global
89 'RFLU_PickSpecialFaces.F90')
91 IF ( global%verbLevel > verbose_none )
THEN
92 WRITE(stdout,
'(A,1X,A)') solver_name,
'Picking special faces...'
93 WRITE(stdout,
'(A,3X,A,1X,I5.5)') solver_name,
'Global region:', &
101 pgrid => pregion%grid
104 pgrid%facesSpecial(1:2,1:nfaces_special_max) = 0
110 WRITE(stdout,
'(A,5X,A)') solver_name,
'Enter information on special faces:'
111 WRITE(stdout,
'(A,7X,A)') solver_name,
'b - boundary face'
112 WRITE(stdout,
'(A,7X,A)') solver_name,
'i - interior face'
113 WRITE(stdout,
'(A,7X,A)') solver_name,
'q - quit'
125 WRITE(stdout,
'(A,3X,A)') solver_name,
'Enter information type:'
126 READ(stdin,
'(A)') infotype
128 SELECT CASE ( infotype )
135 WRITE(stdout,
'(A,5X,A)') solver_name,
'Enter patch index:'
136 READ(stdin,*,iostat=errorflag) patchindx
138 IF ( errorflag /= err_none )
THEN
139 global%warnCounter = global%warnCounter + 1
141 WRITE(stdout,
'(A,5X,A)') solver_name,
'*** WARNING *** Invalid input.'
145 IF ( patchindx > 0 .AND. patchindx <= pgrid%nPatches )
THEN
146 ppatch => pregion%patches(patchindx)
148 WRITE(stdout,
'(A,5X,A)') solver_name,
'Enter face index:'
149 READ(stdin,*,iostat=errorflag) faceindx
151 IF ( errorflag /= err_none )
THEN
152 global%warnCounter = global%warnCounter + 1
154 WRITE(stdout,
'(A,5X,A)') solver_name, &
155 '*** WARNING *** Invalid input.'
159 IF ( faceindx > 0 .AND. faceindx <= ppatch%nBFacesTot )
THEN
160 IF ( ifacesspecial == nfaces_special_max )
THEN
161 CALL
errorstop(global,err_nfaces_special_max,__line__)
164 ifacesspecial = ifacesspecial + 1
165 pgrid%facesSpecial(1,ifacesspecial) = patchindx
166 pgrid%facesSpecial(2,ifacesspecial) = faceindx
168 WRITE(stdout,
'(A,5X,A,1X,I8)') solver_name,
'Added face:',faceindx
170 global%warnCounter = global%warnCounter + 1
172 WRITE(stdout,
'(A,5X,A)') solver_name, &
173 '*** WARNING *** Invalid input.'
177 global%warnCounter = global%warnCounter + 1
179 WRITE(stdout,
'(A,5X,A)') solver_name,
'*** WARNING *** Invalid input.'
188 WRITE(stdout,
'(A,5X,A)') solver_name,
'Enter interior face index:'
189 READ(stdin,*,iostat=errorflag) faceindx
191 IF ( errorflag /= err_none )
THEN
192 global%warnCounter = global%warnCounter + 1
194 WRITE(stdout,
'(A,5X,A)') solver_name,
'*** WARNING *** Invalid input.'
198 IF ( faceindx > 0 .AND. faceindx <= pgrid%nFacesTot )
THEN
199 IF ( ifacesspecial == nfaces_special_max )
THEN
200 CALL
errorstop(global,err_nfaces_special_max,__line__)
203 ifacesspecial = ifacesspecial + 1
204 pgrid%facesSpecial(1,ifacesspecial) = 0
205 pgrid%facesSpecial(2,ifacesspecial) = faceindx
207 WRITE(stdout,
'(A,5X,A,1X,I8)') solver_name,
'Added face:',faceindx
209 global%warnCounter = global%warnCounter + 1
211 WRITE(stdout,
'(A,5X,A)') solver_name,
'*** WARNING *** Invalid input.'
227 global%warnCounter = global%warnCounter + 1
229 WRITE(stdout,
'(A,5X,A)') solver_name,
'*** WARNING *** Invalid input.'
238 pgrid%nFacesSpecial = ifacesspecial
244 IF ( global%verbLevel > verbose_none )
THEN
245 WRITE(stdout,
'(A,1X,A)') solver_name,
'Picking special faces done.'
subroutine rflu_pickspecialfaces(pRegion)
subroutine registerfunction(global, funName, fileName)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)