110 TYPE(t_level
),
POINTER :: levels(:)
116 CHARACTER(CHRLEN) :: rcsidentstring
118 INTEGER :: errorflag,ipatch,iprobe,ireg
120 TYPE(t_grid),
POINTER :: pgrid
122 TYPE(t_patch),
POINTER :: ppatch
123 TYPE(t_region
),
POINTER :: pregion,pregionserial
129 rcsidentstring =
'$RCSfile: RFLU_EndFlowSolver.F90,v $ $Revision: 1.62 $'
137 global => levels(1)%regions(1)%global
140 'RFLU_EndFlowSolver.F90')
146 DO ireg = 1,global%nRegionsLocal
147 pregion => levels(1)%regions(ireg)
149 IF ( pregion%mixtInput%moveGrid .EQV. .true. )
THEN
163 IF ( global%plagUsed .EQV. .true. )
THEN
166 IF ( global%myProcid == masterproc )
THEN
167 pregionserial => levels(1)%regions(0)
175 DO ireg = 1,global%nRegionsLocal
176 pregion => levels(1)%regions(ireg)
180 IF ( movegrid .EQV. .true. )
THEN
188 IF ( global%patchCoeffFlag .EQV. .true. )
THEN
193 IF ( global%plagUsed .EQV. .true. )
THEN
203 IF ( global%doStat == active )
THEN
204 DO ireg = 1,global%nRegionsLocal
205 pregion => levels(1)%regions(ireg)
216 IF ( global%myProcid == masterproc .AND. &
217 global%verbLevel > verbose_none )
THEN
218 IF ( movegrid .EQV. .true. )
THEN
219 DO ireg = 1,global%nRegionsLocal
220 pregion => levels(1)%regions(ireg)
225 DO ireg = 1,global%nRegionsLocal
226 pregion => levels(1)%regions(ireg)
230 IF ( global%plagUsed .EQV. .true. )
THEN
246 DO ireg = 1,global%nRegionsLocal
247 pregion => levels(1)%regions(ireg)
248 pmixtinput => pregion%mixtInput
250 IF ( pmixtinput%spaceOrder > 1 )
THEN
254 IF ( pmixtinput%flowModel == flow_navst )
THEN
258 DO ipatch = 1,pregion%grid%nPatches
259 ppatch => pregion%patches(ipatch)
271 DO ireg = 1,global%nRegionsLocal
272 pregion => levels(1)%regions(ireg)
273 pmixtinput => pregion%mixtInput
275 IF ( pmixtinput%spaceDiscr == discr_opt_les )
THEN
284 DO ireg = 1,global%nRegionsLocal
285 pregion => levels(1)%regions(ireg)
286 pmixtinput => pregion%mixtInput
288 IF ( pmixtinput%spaceOrder > 1 )
THEN
293 IF ( pmixtinput%flowModel == flow_navst )
THEN
298 DO ipatch = 1,pregion%grid%nPatches
299 ppatch => pregion%patches(ipatch)
312 DO ireg = 1,global%nRegionsLocal
313 pregion => levels(1)%regions(ireg)
315 IF ( pregion%mixtInput%flowModel == flow_navst )
THEN
324 DO ireg = 1,global%nRegionsLocal
325 pregion => levels(1)%regions(ireg)
326 pgrid => pregion%grid
336 IF ( global%forceFlag .EQV. .true. )
THEN
342 IF ( global%plagUsed .EQV. .true. )
THEN
347 IF ( pgrid%nBorders > 0 )
THEN
351 IF ( pregion%global%plagUsed .EQV. .true. )
THEN
366 IF ( (pregion%global%plagUsed .EQV. .true.) .AND. &
367 (pregion%grid%nFacesAV > 0) )
THEN
373 IF ( pregion%mixtInput%movegrid .EQV. .true. )
THEN
385 IF ( global%myProcid == masterproc )
THEN
386 CLOSE(if_conver,iostat=errorflag)
387 global%error = errorflag
388 IF ( global%error /= 0 )
THEN
389 CALL
errorstop(global,err_file_close,__line__)
393 IF ( (global%myProcid == masterproc) .AND. (movegrid .EQV. .true.) )
THEN
394 CLOSE(if_mass,iostat=errorflag)
395 global%error = errorflag
396 IF ( global%error /= 0 )
THEN
397 CALL
errorstop(global,err_file_close,__line__)
401 IF ( global%nProbes > 0 )
THEN
402 DO ireg = 1,global%nRegionsLocal
403 pregion => levels(1)%regions(ireg)
420 IF ( global%solverType == solv_implicit_nk )
THEN
433 CALL rocprof_finalize(1)
440 CALL mpi_finalize(errorflag)
441 global%error = errorflag
442 IF ( global%error /= err_none )
THEN
443 CALL
errorstop(global,err_mpi_output,__line__)
451 IF ( global%myProcid == masterproc .AND. &
452 global%verbLevel /= verbose_none )
THEN
453 WRITE(stdout,
'(A)') solver_name
454 WRITE(stdout,
'(A,1X,A)') solver_name,
'Finalization done.'
455 WRITE(stdout,
'(A,1X,A)') solver_name,
'Program finished.'
456 WRITE(stdout,
'(A)') solver_name
subroutine, public rflu_mpi_destroybufferipclsend(pRegion, pBorder)
subroutine, public rflu_bxv_destroyvarststep(pRegion)
subroutine rflu_destroygrid(pRegion)
subroutine rflu_printwarninfo(global)
subroutine, public rflu_destroyfacelist(pRegion)
subroutine, public rflu_writedimensionswrapper(pRegion, writeMode)
subroutine, public rflu_destroyavface2patchlist(pRegion)
subroutine, public rflu_writeflowwrapper(pRegion)
LOGICAL function rflu_decideneedbgradface(pRegion, pPatch)
subroutine, public rflu_writegridspeedswrapper(pRegion)
subroutine, public rflu_destroygeometry(pRegion)
subroutine, public rflu_destroywtsbf2cwrapper(pRegion, pPatch)
subroutine, public rflu_petsc_destroyvectors(pRegion)
subroutine registerfunction(global, funName, fileName)
subroutine, public rflu_destroylistcc2cstencil(pRegion)
subroutine, public rflu_bxv_destroyvarsdv(pRegion)
subroutine, public rflu_destroylistcf2cstencil(pRegion)
subroutine, public rflu_destroyedgelist(pRegion)
subroutine, public rflu_destroyforcesmoments(pRegion)
subroutine, public rflu_destroybfacegradaccesslist(pRegion)
subroutine rflu_deallocatememorywrapper(pRegion)
subroutine, public rflu_petsc_destroyjacobian(pRegion)
subroutine rflu_writestat(region)
subroutine, public rflu_destroypatchcoeffs(pRegion)
LOGICAL function, public rflu_nscbc_decidehavenscbc(pRegion)
subroutine, public rflu_destroybf2cstencilwrapper(pRegion, pPatch)
subroutine, public rflu_destroyf2cstencilwrapper(pRegion)
subroutine, public plag_destroysurfstats(pRegion)
subroutine, public rflu_bxv_destroyvarscv(pRegion)
subroutine, public rflu_writepatchcoeffswrapper(pRegion)
subroutine, public rflu_destroyc2cstencilwrapper(pRegion)
subroutine, public rflu_destroycellmapping(pRegion)
subroutine, public rflu_destroywtsf2cwrapper(pRegion)
subroutine, public rflu_mpi_destroybufferswrapper(pRegion)
subroutine, public rflu_petsc_finalize(global)
subroutine, public rflu_writegridwrapper(pRegion)
subroutine, public plag_writesurfstatswrapper(pRegion)
subroutine, public rflu_destroyavface2borderlist(pRegion)
subroutine rflu_printgridinfo(pRegion)
subroutine, public plag_printnpclsglobal(pRegion)
subroutine, public rflu_comm_destroyborders(pRegion)
subroutine, public rflu_destroywtsc2cwrapper(pRegion)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine rflu_endflowsolver(levels)
subroutine, public rflu_destroyglobalthrustflags(pRegion)
subroutine, public plag_rflu_writedimensions(pRegion)
subroutine deregisterfunction(global)
subroutine, public plag_calcnpclsglobal(regions)
subroutine rflu_writerestartinfo(global)
subroutine, public rflu_bxv_writevarswrapper(pRegion)
subroutine, public rflu_closeprobefiles(pRegion)
subroutine, public rflu_destroystencilsweightsoles(pRegion)
subroutine, public rflu_comm_destroycommlists(pRegion)
subroutine rflu_printflowinfowrapper(pRegion)