71 INTEGER,
INTENT(IN) :: readmode
72 TYPE(t_region
),
POINTER :: pregion
78 LOGICAL :: dummylogical
79 CHARACTER(CHRLEN) :: dummystring,dummystring2,iregionstring,rcsidentstring
80 INTEGER :: dummyinteger,dummyinteger2,ics,ifile,ifs,indx,ireg,iregionglobal, &
83 TYPE(t_grid),
POINTER :: pgrid
89 rcsidentstring =
'$RCSfile: RFLU_ReadPostInfo.F90,v $ $Revision: 1.7 $'
91 global => pregion%global
94 'RFLU_ReadPostInfo.F90')
96 IF ( global%myProcid == masterproc .AND. &
97 global%verbLevel > verbose_none )
THEN
98 WRITE(stdout,
'(A,1X,A)') solver_name,
'Reading post-processor info...'
99 WRITE(stdout,
'(A,3X,A,1X,I5.5)') solver_name,
'Global region:', &
100 pregion%iRegionGlobal
107 pgrid => pregion%grid
121 DO ireg = 1,global%nRegionsLocal
122 READ(ifile,
'(A)') dummystring
124 WRITE(iregionstring,
'(I5.5)') pregion%iRegionGlobal
125 indx =
index(dummystring,trim(iregionstring))
127 IF ( indx /= 0 )
THEN
128 dummystring2 = dummystring(indx:indx+len_trim(iregionstring)-1)
129 READ(dummystring2,*) iregionglobal
131 iregionglobal = crazy_value_int
138 IF ( iregionglobal == pregion%iRegionGlobal )
THEN
144 IF ( readmode == infofile_readmode_flag )
THEN
145 READ(ifile,
'(L1)') pregion%postActiveFlag
147 IF ( pregion%postActiveFlag .EQV. .true. )
THEN
148 IF ( global%myProcid == masterproc .AND. &
149 global%verbLevel > verbose_low )
THEN
150 WRITE(stdout,
'(A,3X,A)') solver_name,
'Region is active.'
153 READ(ifile,*) dummyinteger
155 DO ics = 1,dummyinteger
156 READ(ifile,*) dummyinteger2
159 READ(ifile,*) dummyinteger
161 DO ifs = 1,dummyinteger
162 READ(ifile,*) dummyinteger2
165 IF ( global%myProcid == masterproc .AND. &
166 global%verbLevel > verbose_low )
THEN
167 WRITE(stdout,
'(A,3X,A)') solver_name,
'Region is not active.'
175 ELSE IF ( readmode == infofile_readmode_data )
THEN
176 READ(ifile,
'(L1)') dummylogical
178 IF ( dummylogical .EQV. .true. )
THEN
179 READ(ifile,*) pgrid%nCellsSpecial
181 IF ( global%myProcid == masterproc .AND. &
182 global%verbLevel > verbose_low )
THEN
183 WRITE(stdout,
'(A,3X,A,1X,I3)') solver_name, &
184 'Number of special cells:', &
188 DO ics = 1,pgrid%nCellsSpecial
189 READ(ifile,*) pgrid%cellsSpecial(ics)
192 READ(ifile,*) pgrid%nFacesSpecial
194 IF ( global%myProcid == masterproc .AND. &
195 global%verbLevel > verbose_low )
THEN
196 WRITE(stdout,
'(A,3X,A,1X,I3)') solver_name, &
197 'Number of special faces:', &
201 DO ifs = 1,pgrid%nFacesSpecial
202 READ(ifile,*) pgrid%facesSpecial(1,ifs), &
203 pgrid%facesSpecial(2,ifs)
206 pgrid%nCellsSpecial = 0
207 pgrid%nFacesSpecial = 0
210 CALL
errorstop(global,err_reached_default,__line__)
218 READ(ifile,
'(L1)') dummylogical
220 IF ( dummylogical .EQV. .true. )
THEN
221 READ(ifile,*) dummyinteger
223 DO ics = 1,dummyinteger
224 READ(ifile,*) dummyinteger2
227 READ(ifile,*) dummyinteger
229 DO ifs = 1,dummyinteger
230 READ(ifile,*) dummyinteger2
240 IF ( global%myProcid == masterproc .AND. &
241 global%verbLevel > verbose_none )
THEN
242 WRITE(stdout,
'(A,1X,A)') solver_name,
'Reading post-processor info done.'
subroutine registerfunction(global, funName, fileName)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine rflu_readpostinfo(pRegion, readMode)
subroutine deregisterfunction(global)