60 rflu_closespecialcellsfile, &
61 rflu_computedimensions, &
80 LOGICAL :: specialcellfileexists
81 CHARACTER(CHRLEN) :: casename,nregions,rcsidentstring,stampstr,verbosity
82 INTEGER :: errorflag,ireg,verblevel
83 TYPE(t_region
),
POINTER :: pregion
85 TYPE(t_level
),
POINTER :: levels(:)
91 rcsidentstring =
'$RCSfile: main.F90,v $ $Revision: 1.5 $'
97 CALL getarg(1,casename)
98 CALL getarg(2,stampstr)
99 CALL getarg(3,verbosity)
101 IF ( len_trim(casename) == 0 .OR. &
102 len_trim(stampstr) == 0 .OR. &
103 len_trim(verbosity) == 0 )
THEN
104 WRITE(stdout,
'(A )') solver_name
105 WRITE(stdout,
'(A,1X,A)') solver_name,
'Usage: rflucells <casename> <stamp> <verb>'
106 WRITE(stdout,
'(A,1X,A)') solver_name,
' stamp = iteration (steady flow)'
107 WRITE(stdout,
'(A,1X,A)') solver_name,
' time (unsteady flow)'
108 WRITE(stdout,
'(A,1X,A)') solver_name,
' verb = 0 - no verbose output'
109 WRITE(stdout,
'(A,1X,A)') solver_name,
' 1 - some verbose output'
110 WRITE(stdout,
'(A,1X,A)') solver_name,
' 2 - a lot of verbose output'
111 WRITE(stdout,
'(A )') solver_name
115 READ(verbosity,*) verblevel
121 ALLOCATE(global,stat=errorflag)
122 IF ( errorflag /= err_none )
THEN
123 WRITE(stderr,
'(A,1X,A)') solver_name,
'ERROR - Pointer allocation failed.'
136 IF ( global%myProcid == masterproc )
THEN
138 IF ( global%verbLevel /= verbose_none )
THEN
147 CALL rflu_readmappingfile(global,mapfile_readmode_peek)
148 CALL rflu_imposeserialmapping(global)
155 CALL rflu_assignregionmapping(global,levels)
163 IF ( global%flowType == flow_steady )
THEN
164 READ(stampstr,*) global%currentIter
166 READ(stampstr,*) global%currentTime
173 IF ( global%nRegions == 1 )
THEN
174 pregion => levels(1)%regions(0)
182 DO ireg = 1,global%nRegionsLocal
183 pregion => levels(1)%regions(ireg)
197 IF ( global%nRegions == 1 )
THEN
198 pregion => levels(1)%regions(0)
201 IF ( global%verbLevel > verbose_none )
THEN
205 DO ireg = 1,global%nRegionsLocal
206 pregion => levels(1)%regions(ireg)
209 IF ( global%verbLevel > verbose_none )
THEN
219 IF ( global%nRegions == 1 )
THEN
220 pregion => levels(1)%regions(0)
221 CALL rflu_buildcellmapping(pregion)
224 DO ireg = 1,global%nRegionsLocal
225 pregion => levels(1)%regions(ireg)
226 CALL rflu_buildcellmapping(pregion)
235 IF ( global%nRegions == 1 )
THEN
236 pregion => levels(1)%regions(0)
239 DO ireg = 1,global%nRegionsLocal
240 pregion => levels(1)%regions(ireg)
245 CALL rflu_openspecialcellsfile(global,file_status_unknown, &
246 specialcellfileexists)
248 IF ( global%nRegions == 1 )
THEN
249 pregion => levels(1)%regions(0)
252 DO ireg = 1,global%nRegionsLocal
253 pregion => levels(1)%regions(ireg)
258 CALL rflu_closespecialcellsfile(global)
264 IF ( global%nRegions == 1 )
THEN
265 pregion => levels(1)%regions(0)
268 DO ireg = 1,global%nRegions
269 pregion => levels(1)%regions(ireg)
278 WRITE(stdout,
'(A)') solver_name
279 WRITE(stdout,
'(A,1X,A)') solver_name,
'Finished.'
280 WRITE(stdout,
'(A)') solver_name
subroutine rflu_allocatememorywrapper(pRegion)
subroutine registerfunction(global, funName, fileName)
subroutine, public rflu_readgridwrapper(pRegion)
subroutine rflu_getspecialcells(pRegion)
subroutine rflu_deallocatememorywrapper(pRegion)
subroutine rflu_writespecialcells(pRegion)
subroutine, public rflu_createfacelist(pRegion)
subroutine, public rflu_buildfacelist(pRegion)
subroutine rflu_builddatastruct(global, levels)
subroutine rflu_printgridinfo(pRegion)
subroutine, public rflu_readdimensions(pRegion)
subroutine, public rflu_createcellmapping(pRegion)
subroutine deregisterfunction(global)
subroutine rflu_writeversionstring(global)
subroutine rflu_initglobal(casename, verbLevel, communicator, global)