131 include
'roccomf90.h'
142 CHARACTER(*) :: casestring
143 INTEGER,
INTENT(IN) :: verblevel
149 CHARACTER(CHRLEN) :: casename
151 CHARACTER(CHRLEN) :: surfwinnameinput,volwinnameinput
153 INTEGER :: errorflag,ilev,ireg,ireglow,iregupp
155 INTEGER :: handleobtain
157 TYPE(t_region
),
POINTER :: pregion,pregionserial
159 TYPE(t_level
),
POINTER :: levels(:)
161 TYPE(t_plag),
POINTER :: pplag,pplagserial
167 ALLOCATE(global,stat=errorflag)
168 IF ( errorflag /= err_none )
THEN
169 WRITE(stderr,
'(A,1X,A)') solver_name,
'ERROR - Pointer allocation failed.'
173 casename = casestring(1:len(casestring))
196 IF ( global%myProcid == masterproc )
THEN
198 IF ( global%verbLevel /= verbose_none )
THEN
226 surfwinnameinput =
'RocfluInputSurf'
227 volwinnameinput =
'RocfluInputVol TEMP'
229 global%winNameIn = trim(global%winName)//
'-IN'
230 global%winNameOut = trim(global%winName)//
'-OUT'
232 CALL rocin_load_module(trim(global%winNameIn))
233 CALL rocout_load_module(trim(global%winNameOut))
235 handleobtain = com_get_function_handle(trim(global%winNameIn)// &
244 pregionserial => levels(1)%regions(0)
273 IF ( global%nRegions == 1 )
THEN
278 iregupp = global%nRegions
287 global%plagUsedSave = global%plagUsed
289 global%plagUsed = .false.
296 SELECT CASE ( global%initFlowFlag )
302 CASE ( initflow_fromscratch )
303 DO ireg = ireglow,iregupp
304 pregion => levels(1)%regions(ireg)
309 IF ( pregion%grid%nPatches > 0 )
THEN
347 IF ( global%verbLevel > verbose_none )
THEN
372 CASE ( initflow_fromfile )
373 IF ( global%nRegions > 1 )
THEN
374 pregionserial => levels(1)%regions(0)
381 IF ( pregionserial%grid%nPatches > 0 )
THEN
392 DO ireg = 1,global%nRegions
393 pregion => levels(1)%regions(ireg)
398 IF ( pregion%grid%nPatches > 0 )
THEN
416 IF ( global%verbLevel > verbose_none )
THEN
442 CASE ( initflow_fromhardcode )
443 DO ireg = ireglow,iregupp
444 pregion => levels(1)%regions(ireg)
449 IF ( pregion%grid%nPatches > 0 )
THEN
464 IF ( global%verbLevel > verbose_low )
THEN
506 IF ( global%verbLevel > verbose_none )
THEN
532 CASE ( initflow_fromcombo_serial )
533 IF ( global%nRegions > 1 )
THEN
534 pregionserial => levels(1)%regions(0)
541 IF ( pregionserial%grid%nPatches > 0 )
THEN
552 DO ireg = 1,global%nRegions
553 pregion => levels(1)%regions(ireg)
558 IF ( pregion%grid%nPatches > 0 )
THEN
564 IF ( global%verbLevel > verbose_low )
THEN
603 IF ( global%verbLevel > verbose_none )
THEN
628 CASE ( initflow_fromcombo_parallel )
632 DO ireg = 1,global%nRegions
633 pregion => levels(1)%regions(ireg)
638 IF ( pregion%grid%nPatches > 0 )
THEN
644 IF ( global%verbLevel > verbose_low )
THEN
674 IF ( global%verbLevel > verbose_none )
THEN
693 CALL
errorstop(global,err_reached_default,__line__)
701 global%plagUsed = global%plagUsedSave
707 IF ( global%plagUsed .EQV. .true. )
THEN
708 pregionserial => levels(1)%regions(0)
709 pplagserial => pregionserial%plag
714 IF ( pregionserial%grid%nPatches > 0 )
THEN
727 SELECT CASE ( global%initPlagFlag )
728 CASE ( plag_init_fromscratch )
730 CASE ( plag_init_fromrandomstate )
732 CASE ( plag_init_fromfile )
736 CALL
errorstop(global,err_reached_default,__line__)
739 CALL
errorstop(global,err_reached_default,__line__)
763 IF ( global%nRegions == 1 )
THEN
765 IF ( global%solutFormat == format_ascii )
THEN
767 ELSE IF ( global%solutFormat == format_binary )
THEN
770 CALL
errorstop(global,err_reached_default,__line__)
784 IF ( global%nRegions > 1 )
THEN
788 DO ireg = 1,global%nRegions
789 pregion => levels(1)%regions(ireg)
790 pplag => pregion%plag
795 IF ( pregion%grid%nPatches > 0 )
THEN
801 IF ( global%verbLevel > verbose_low )
THEN
817 IF ( global%solutFormat == format_ascii )
THEN
819 ELSE IF ( global%solutFormat == format_binary )
THEN
822 CALL
errorstop(global,err_reached_default,__line__)
857 DO ireg = ireglow,iregupp
858 pregion => levels(1)%regions(ireg)
864 IF ( pregion%grid%nPatches > 0 )
THEN
908 CALL com_delete_window(trim(global%volWinNameInput))
909 CALL com_delete_window(trim(global%surfWinNameInput))
925 WRITE (*,*)
"rfluinit finished sucessfully"
subroutine rfluinit(caseString, verbLevel)
subroutine rflu_creategrid(pRegion)
subroutine, public plag_setdimensions(pRegion, nPcls)
subroutine, public plag_dstr_destroypcllistcsr(pRegion)
subroutine plag_rflu_deallocmemsol(pRegion, pPlag)
subroutine, public rflu_buildbvertexlists(pRegion)
subroutine, public rflu_rnmb_readpxx2sxxmaps(pRegion)
subroutine, public rflu_genx_creategridsurf(pRegion)
subroutine, public rflu_genx_createattrflow(pRegion)
subroutine rflu_initflowhardcodelimwrapper(pRegion)
subroutine, public rflu_writebcdatafile(pRegion)
subroutine, public rflu_genx_destroygridsurf(pRegion)
subroutine, public rflu_genx_hardcodewindowname(global)
subroutine rflu_destroygrid(pRegion)
subroutine rflu_printwarninfo(global)
subroutine plag_initpatchdata(pRegion)
subroutine, public rflu_deallocatememorygspeeds(pRegion)
subroutine, public rflu_destroyregionmapping(global, mapType)
LOGICAL function, public rflu_decidereadwritebcdatafile(pRegion)
subroutine, public rflu_genx_registergridsurf(pRegion)
subroutine, public rflu_genx_createattrgridsurf(pRegion)
subroutine, public rflu_readdimensionswrapper(pRegion)
subroutine, public rflu_destroyfacelist(pRegion)
subroutine rflu_setdependentvars(pRegion, icgBeg, icgEnd)
subroutine, public rflu_rnmb_destroypbf2sbfmap(pRegion)
subroutine, public rflu_writeflowwrapper(pRegion)
subroutine plag_rflu_allocmemsol(pRegion, pPlag)
subroutine, public rflu_writegridspeedswrapper(pRegion)
subroutine, public rflu_destroygeometry(pRegion)
subroutine plag_rflu_initsolfromserial(pRegion, pRegionSerial)
subroutine registerfunction(global, funName, fileName)
subroutine, public rflu_bxv_destroyvarsdv(pRegion)
subroutine, public rflu_genx_storenameshandles(global, surfWinNameInput, volWinNameInput, handleObtain)
subroutine, public rflu_genx_createattrinterf(pRegion)
subroutine, public rflu_readgridwrapper(pRegion)
subroutine rflu_setrestarttimeflag(global)
subroutine plag_rflu_deallocmemsoltile(pRegion)
subroutine, public rflu_buildgeometry(pRegion, sypeFaceFlag)
subroutine, public rflu_rnmb_destroypc2scmap(pRegion)
LOGICAL function, public rflu_decideneedgridspeeds(pRegion)
subroutine, public plag_dstr_createpcllistcsr(pRegion)
subroutine scalerotatevector(global, vect)
subroutine rflu_setvarinfowrapper(pRegion)
subroutine, public rflu_setregionmappingserial(global)
subroutine plag_rflu_writesolutionascii(pRegion)
subroutine rflu_initflowhardcodewrapper(pRegion)
subroutine, public rflu_readloc2globcellmapping(pRegion)
LOGICAL function, public rflu_nscbc_decidehavenscbc(pRegion)
subroutine, public rflu_genx_createwindows(pRegion, communicator)
subroutine rflu_initflowscratchwrapper(pRegion)
subroutine, public rflu_createfacelist(pRegion)
subroutine, public rflu_genx_setconnsize(pRegion)
subroutine, public rflu_bxv_destroyvarscv(pRegion)
subroutine, public rflu_bxv_createvarsdv(pRegion)
subroutine, public rflu_buildglob2loccellmapping(pRegion)
subroutine, public rflu_genx_registerdataflow(pRegion)
subroutine, public rflu_genx_createattrgspeeds(pRegion)
subroutine rflu_deallocmemsolwrapper(pRegion)
subroutine, public plag_dstr_buildcell2pcllist(pRegion)
subroutine, public rflu_buildfacelist(pRegion)
subroutine, public rflu_bxv_initvars(pRegion)
subroutine, public rflu_renumberbfacelists(pRegion)
subroutine, public rflu_genx_getdimensionsderived(pRegion)
subroutine, public rflu_rnmb_destroypv2svmap(pRegion)
subroutine, public rflu_genx_storecommunicator(global, communicator)
subroutine rflu_setgasvars(pRegion, icgBeg, icgEnd)
subroutine, public rflu_readregionmappingfile(global, readMode, myProcId)
subroutine, public rflu_destroycellmapping(pRegion)
subroutine rflu_builddatastruct(global, levels)
subroutine, public rflu_readflowwrapper(pRegion)
subroutine rflu_allocmemsolwrapper(pRegion)
subroutine, public rflu_rnmb_createpc2scmap(pRegion)
subroutine, public rflu_destroybvertexlists(pRegion)
subroutine, public rflu_createbvertexlists(pRegion)
subroutine rflu_setmoduletype(global, moduleType)
subroutine rflu_randominit(regions)
subroutine, public plag_setmaxdimensions(pRegion)
subroutine rflu_initflowserialwrapper(pRegion, pRegionSerial)
subroutine rflu_printgridinfo(pRegion)
subroutine, public rflu_readdimensions(pRegion)
subroutine, public rflu_genx_registergridvol(pRegion)
subroutine, public rflu_rnmb_createpv2svmap(pRegion)
subroutine, public rflu_genx_readctrlfile(global)
subroutine plag_rflu_allocmemsoltile(pRegion)
subroutine, public rflu_genx_readwindow(pRegion, windowType)
subroutine, public rflu_genx_registerdatagspeeds(pRegion)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine, public plag_dstr_destroycell2pcllist(pRegion)
subroutine rflu_initbcdatahardcode(pRegion)
subroutine, public rflu_createcellmapping(pRegion)
subroutine plag_rflu_initsolserialwrapper(pRegion)
subroutine, public rflu_allocatememorygspeeds(pRegion)
subroutine, public plag_rflu_writedimensions(pRegion)
subroutine, public rflu_rnmb_createpbf2sbfmap(pRegion)
subroutine deregisterfunction(global)
subroutine plag_rflu_writesolutionbinary(pRegion)
subroutine plag_rflu_initsolutionrandom(pRegion)
subroutine, public rflu_creategeometry(pRegion)
subroutine rflu_writeversionstring(global)
subroutine, public rflu_applyregionmapping(global, levels)
subroutine rflu_initglobal(casename, verbLevel, communicator, global)
subroutine rflu_readrestartinfo(global)
subroutine, public rflu_bxv_writevarswrapper(pRegion)
subroutine, public rflu_imposeregionmappingserial(global)
subroutine, public rflu_createregionmapping(global, mapType)
subroutine rflu_printflowinfowrapper(pRegion)
subroutine plag_rflu_initsolutionscratch(pRegion)
subroutine, public rflu_bxv_createvarscv(pRegion)