46 SUBROUTINE rfluconv(caseString,stampString,verbLevel)
90 CHARACTER(*) :: casestring,stampstring
91 INTEGER,
INTENT(IN) :: verblevel
97 CHARACTER(CHRLEN) :: casename,nregions,rcsidentstring,stamp
98 INTEGER,
PARAMETER :: conv_rflu2rflu_asc2bin_grid = 10, &
99 conv_rflu2rflu_asc2bin_gridflow = 11, &
100 conv_rflu2rflu_bin2asc_grid = 20, &
101 conv_rflu2rflu_bin2asc_gridflow = 21, &
102 conv_rflu2tetm_grid = 40, &
103 conv_rflu2stl_grid = 50
104 INTEGER :: convoption,errorflag,ireg
105 TYPE(t_region
),
POINTER :: pregion
107 TYPE(t_level
),
POINTER :: levels(:)
111 rcsidentstring =
'$RCSfile: rfluconv.F90,v $ $Revision: 1.6 $'
117 ALLOCATE(global,stat=errorflag)
118 IF ( errorflag /= err_none )
THEN
119 WRITE(stderr,
'(A,1X,A)') solver_name,
'ERROR - Pointer allocation failed.'
123 casename = casestring(1:len(casestring))
124 stamp = stampstring(1:len(stampstring))
142 WRITE(stdout,
'(A,1X,A)') solver_name,
'Options:'
143 WRITE(stdout,
'(A,3X,A)') solver_name, &
144 'Convert Rocflu files from ASCII to binary format:'
145 WRITE(stdout,
'(A,5X,I2,A)') solver_name,conv_rflu2rflu_asc2bin_grid, &
147 WRITE(stdout,
'(A,5X,I2,A)') solver_name,conv_rflu2rflu_asc2bin_gridflow, &
148 ': Grid and flow file'
149 WRITE(stdout,
'(A,3X,A)') solver_name, &
150 'Convert Rocflu files from binary to ASCII format:'
151 WRITE(stdout,
'(A,5X,I2,A)') solver_name,conv_rflu2rflu_bin2asc_grid, &
153 WRITE(stdout,
'(A,5X,I2,A)') solver_name,conv_rflu2rflu_bin2asc_gridflow, &
154 ': Grid and flow file'
155 WRITE(stdout,
'(A,3X,A)') solver_name, &
156 'Convert Rocflu grid file to surface grid:'
157 WRITE(stdout,
'(A,5X,I2,A)') solver_name,conv_rflu2tetm_grid, &
158 ': Tetmesh/YAMS surface grid (msh2 format)'
159 WRITE(stdout,
'(A,5X,I2,A)') solver_name,conv_rflu2stl_grid, &
161 WRITE(stdout,
'(A,1X,A)') solver_name,
'Enter selection:'
163 READ(stdin,*) convoption
188 IF ( global%flowType == flow_steady )
THEN
189 READ(stamp,*) global%currentIter
191 READ(stamp,*) global%currentTime
198 IF ( global%nRegions == 1 )
THEN
199 pregion => levels(1)%regions(0)
204 IF ( pregion%grid%nPatches > 0 )
THEN
211 DO ireg = 1,global%nRegionsLocal
212 pregion => levels(1)%regions(ireg)
217 IF ( pregion%grid%nPatches > 0 )
THEN
230 SELECT CASE ( convoption )
241 CASE (conv_rflu2rflu_asc2bin_grid)
242 IF ( global%nRegions == 1 )
THEN
243 pregion => levels(1)%regions(0)
245 pregion%global%gridFormat = format_ascii
248 IF ( global%verbLevel > verbose_none )
THEN
252 pregion%global%gridFormat = format_binary
255 DO ireg = 1,global%nRegionsLocal
256 pregion => levels(1)%regions(ireg)
258 pregion%global%gridFormat = format_ascii
261 IF ( global%verbLevel > verbose_none )
THEN
265 pregion%global%gridFormat = format_binary
274 CASE (conv_rflu2rflu_asc2bin_gridflow)
275 IF ( global%nRegions == 1 )
THEN
276 pregion => levels(1)%regions(0)
278 pregion%global%gridFormat = format_ascii
279 pregion%global%solutFormat = format_ascii
283 IF ( global%verbLevel > verbose_none )
THEN
288 pregion%global%gridFormat = format_binary
289 pregion%global%solutFormat = format_binary
294 DO ireg = 1,global%nRegionsLocal
295 pregion => levels(1)%regions(ireg)
297 pregion%global%gridFormat = format_ascii
298 pregion%global%solutFormat = format_ascii
302 IF ( global%verbLevel > verbose_none )
THEN
307 pregion%global%gridFormat = format_binary
308 pregion%global%solutFormat = format_binary
324 CASE (conv_rflu2rflu_bin2asc_grid)
325 IF ( global%nRegions == 1 )
THEN
326 pregion => levels(1)%regions(0)
328 pregion%global%gridFormat = format_binary
331 IF ( global%verbLevel > verbose_none )
THEN
335 pregion%global%gridFormat = format_ascii
338 DO ireg = 1,global%nRegionsLocal
339 pregion => levels(1)%regions(ireg)
341 pregion%global%gridFormat = format_binary
344 IF ( global%verbLevel > verbose_none )
THEN
348 pregion%global%gridFormat = format_ascii
357 CASE (conv_rflu2rflu_bin2asc_gridflow)
358 IF ( global%nRegions == 1 )
THEN
359 pregion => levels(1)%regions(0)
361 pregion%global%gridFormat = format_binary
362 pregion%global%solutFormat = format_binary
366 IF ( global%verbLevel > verbose_none )
THEN
371 pregion%global%gridFormat = format_ascii
372 pregion%global%solutFormat = format_ascii
377 DO ireg = 1,global%nRegionsLocal
378 pregion => levels(1)%regions(ireg)
380 pregion%global%gridFormat = format_binary
381 pregion%global%solutFormat = format_binary
385 IF ( global%verbLevel > verbose_none )
THEN
390 pregion%global%gridFormat = format_ascii
391 pregion%global%solutFormat = format_ascii
406 CASE (conv_rflu2tetm_grid)
407 IF ( global%nRegions == 1 )
THEN
408 pregion => levels(1)%regions(0)
412 IF ( global%verbLevel > verbose_none )
THEN
434 CALL
errorstop(global,err_reached_default,__line__)
441 CASE (conv_rflu2stl_grid)
442 IF ( global%nRegions == 1 )
THEN
443 pregion => levels(1)%regions(0)
447 IF ( global%verbLevel > verbose_none )
THEN
472 CALL
errorstop(global,err_reached_default,__line__)
480 CALL
errorstop(global,err_reached_default,__line__)
487 IF ( global%nRegions == 1 )
THEN
488 pregion => levels(1)%regions(0)
493 DO ireg = 1,global%nRegionsLocal
494 pregion => levels(1)%regions(ireg)
subroutine rflu_creategrid(pRegion)
subroutine, public rflu_buildbvertexlists(pRegion)
subroutine, public rflu_writesurfgridtetmesh(pRegion)
subroutine rflu_destroygrid(pRegion)
subroutine rflu_printwarninfo(global)
subroutine, public rflu_destroyregionmapping(global, mapType)
subroutine, public rflu_destroyfacelist(pRegion)
subroutine, public rflu_writeflowwrapper(pRegion)
subroutine, public rflu_convrocflu2tetmesh(pRegion)
subroutine, public rflu_destroygeometry(pRegion)
subroutine registerfunction(global, funName, fileName)
subroutine, public rflu_readgridwrapper(pRegion)
subroutine, public rflu_buildgeometry(pRegion, sypeFaceFlag)
subroutine rflu_setvarinfowrapper(pRegion)
subroutine, public rflu_setregionmappingserial(global)
subroutine, public rflu_readloc2globcellmapping(pRegion)
subroutine, public rflu_createfacelist(pRegion)
subroutine, public rflu_buildglob2loccellmapping(pRegion)
subroutine rflu_deallocmemsolwrapper(pRegion)
subroutine, public rflu_buildfacelist(pRegion)
subroutine, public rflu_renumberbfacelists(pRegion)
subroutine, public rflu_readregionmappingfile(global, readMode, myProcId)
subroutine rflu_printflowinfo(pRegion)
subroutine, public rflu_destroycellmapping(pRegion)
subroutine rflu_builddatastruct(global, levels)
subroutine, public rflu_readflowwrapper(pRegion)
subroutine, public rflu_writegridwrapper(pRegion)
subroutine rflu_allocmemsolwrapper(pRegion)
subroutine, public rflu_stl_writesurfgridascii(pRegion)
subroutine, public rflu_destroybvertexlists(pRegion)
subroutine, public rflu_createbvertexlists(pRegion)
subroutine rfluconv(caseString, stampString, verbLevel)
subroutine rflu_printgridinfo(pRegion)
subroutine, public rflu_readdimensions(pRegion)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine, public rflu_createcellmapping(pRegion)
subroutine deregisterfunction(global)
subroutine, public rflu_creategeometry(pRegion)
subroutine rflu_writeversionstring(global)
subroutine, public rflu_applyregionmapping(global, levels)
subroutine rflu_initglobal(casename, verbLevel, communicator, global)
subroutine, public rflu_imposeregionmappingserial(global)
subroutine, public rflu_createregionmapping(global, mapType)