74 TYPE(t_region
),
POINTER :: pregion
81 CHARACTER(CHRLEN) :: errorstring,rcsidentstring
82 INTEGER :: dicg,dicgdel,dicgmax,dicgmin,errorflag,icg,icg2,ipcl
83 REAL(RFREAL) :: idx,
xmax,
xmin,xpcl,ypcl,zpcl
85 TYPE(t_grid),
POINTER :: pgrid
86 TYPE(t_plag),
POINTER :: pplag
93 '$RCSfile: PLAG_RFLU_InitSolSerial_1D.F90,v $ $Revision: 1.4 $'
95 global => pregion%global
98 'PLAG_RFLU_InitSolSerial_1D.F90')
100 IF ( global%verbLevel > verbose_none )
THEN
101 WRITE(stdout,
'(A,1X,A)') solver_name,
'Initializing particle solution '// &
102 'for serial region in 1d...'
103 WRITE(stdout,
'(A,3X,A,1X,I5.5)') solver_name,
'Global region:', &
104 pregion%iRegionGlobal
111 pgrid => pregion%grid
112 pplag => pregion%plag
118 xmin = minval(pgrid%xyz(xcoord,1:pgrid%nVert))
119 xmax = maxval(pgrid%xyz(xcoord,1:pgrid%nVert))
133 DO ipcl = 1,pplag%nPcls
139 xpcl = pplag%cv(cv_plag_xpos,ipcl)
140 ypcl = pplag%cv(cv_plag_ypos,ipcl)
141 zpcl = pplag%cv(cv_plag_zpos,ipcl)
143 icg = int(1.0_rfreal + idx*(xpcl-
xmin))
150 pplag%aiv(aiv_plag_icells,ipcl) = icg
151 pplag%aiv(aiv_plag_regini,ipcl) = pregion%iRegionGlobal
164 ELSE IF ( icg == pgrid%nCells )
THEN
176 DO dicg = dicgmin,dicgmax,dicgdel
180 pplag%aiv(aiv_plag_icells,ipcl) = icg2
181 pplag%aiv(aiv_plag_regini,ipcl) = pregion%iRegionGlobal
191 IF ( foundflag .EQV. .false. )
THEN
192 WRITE(errorstring,
'(I6)') ipcl
193 CALL
errorstop(global,err_plag_pcl_not_found,__line__,trim(errorstring))
208 IF ( global%verbLevel > verbose_none )
THEN
209 WRITE(stdout,
'(A,1X,A)') solver_name, &
210 'Initializing particle solution for serial region in 1d done.'
subroutine, public rflu_buildcell2facelist(pRegion)
subroutine, public rflu_destroycell2facelist(pRegion)
subroutine, public rflu_createcell2facelist(pRegion)
subroutine registerfunction(global, funName, fileName)
LOGICAL function, public rflu_ict_testincell(pRegion, xLoc, yLoc, zLoc, icg)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)
subroutine plag_rflu_initsolserial_1d(pRegion)