73 TYPE(t_region
),
POINTER :: pregion
79 CHARACTER(CHRLEN) :: rcsidentstring
80 INTEGER :: injcdiamdist,ipatch,itile,npatches,ntiles
84 REAL(RFREAL) :: randunif
85 TYPE(t_patch),
POINTER :: ppatch
93 rcsidentstring =
'$RCSfile: PLAG_InitPatchData.F90,v $ $Revision: 1.7 $'
95 global => pregion%global
98 'PLAG_InitPatchData.F90')
101 ilev = pregion%currLevel
102 npatches = pregion%nPatches
105 npatches = pregion%grid%nPatches
108 injcdiamdist = pregion%plagInput%injcDiamDist
116 ppatch => pregion%levels(ilev)%patches(ipatch)
119 ppatch => pregion%patches(ipatch)
126 SELECT CASE ( ppatch%bcType )
133 CASE ( bc_injection:bc_injection+bc_range, &
134 bc_inflow:bc_inflow+bc_range )
136 CASE ( bc_injection:bc_injection+bc_range )
141 n1 = abs(ppatch%l1end-ppatch%l1beg) + 1
142 n2 = abs(ppatch%l2end-ppatch%l2beg) + 1
146 ntiles = ppatch%nBFaces
149 ptileplag => ppatch%tilePlag
156 ptileplag%dv(dv_tile_diam,itile), &
157 ptileplag%dv(dv_tile_spload,itile))
161 IF ( randunif <= 0.0_rfreal )
THEN
162 ptileplag%dv(dv_tile_countdown,itile) = 50.0_rfreal
164 ptileplag%dv(dv_tile_countdown,itile) = -log(randunif)
subroutine plag_initpatchdata(pRegion)
subroutine registerfunction(global, funName, fileName)
subroutine plag_injcmakeparticle(region, injcDiamDist, diam, spLoad)
REAL(RFREAL) function rand1uniform(rdata)
subroutine deregisterfunction(global)