@@ -70,8 +70,8 @@ module ParticleModule
7070 integer (I4B), public :: istopzone ! < stop zone number
7171 integer (I4B), public :: idrymeth ! < dry tracking method
7272 ! state
73- integer (I4B), allocatable , public :: idomain(: ) ! < tracking domain hierarchy ! TODO: rename to itdomain? idomain
74- integer (I4B), allocatable , public :: iboundary(: ) ! < tracking domain boundaries
73+ integer (I4B), public :: itrdomain(MAX_LEVEL ) ! < tracking domain indices
74+ integer (I4B), public :: iboundary(MAX_LEVEL ) ! < tracking domain boundary indices
7575 integer (I4B), public :: icp ! < previous cell number (reduced)
7676 integer (I4B), public :: icu ! < user cell number
7777 integer (I4B), public :: ilay ! < grid layer
@@ -117,7 +117,7 @@ module ParticleModule
117117 integer (I4B), dimension (:), pointer , public , contiguous :: istopzone ! < stop zone number
118118 integer (I4B), dimension (:), pointer , public , contiguous :: idrymeth ! < stop in dry cells
119119 ! state
120- integer (I4B), dimension (:, :), pointer , public , contiguous :: idomain ! < array of indices for domains in the tracking domain hierarchy
120+ integer (I4B), dimension (:, :), pointer , public , contiguous :: itrdomain ! < array of indices for domains in the tracking domain hierarchy
121121 integer (I4B), dimension (:, :), pointer , public , contiguous :: iboundary ! < array of indices for tracking domain boundaries
122122 integer (I4B), dimension (:), pointer , public , contiguous :: icu ! < cell number (user)
123123 integer (I4B), dimension (:), pointer , public , contiguous :: ilay ! < layer
@@ -150,8 +150,6 @@ subroutine create_particle(particle)
150150 type (ParticleType), pointer :: particle ! < particle
151151 allocate (particle)
152152 allocate (particle% history)
153- allocate (particle% idomain(MAX_LEVEL))
154- allocate (particle% iboundary(MAX_LEVEL))
155153 end subroutine create_particle
156154
157155 ! > @brief Allocate particle store
@@ -184,7 +182,7 @@ subroutine create_particle_store(store, np, mempath)
184182 call mem_allocate(store% extol, np, ' PLEXTOL' , mempath)
185183 call mem_allocate(store% extend, np, ' PLIEXTEND' , mempath)
186184 call mem_allocate(store% icycwin, np, ' PLICYCWIN' , mempath)
187- call mem_allocate(store% idomain , np, MAX_LEVEL, ' PLIDOMAIN' , mempath)
185+ call mem_allocate(store% itrdomain , np, MAX_LEVEL, ' PLIDOMAIN' , mempath)
188186 call mem_allocate(store% iboundary, np, MAX_LEVEL, ' PLIBOUNDARY' , mempath)
189187 end subroutine create_particle_store
190188
@@ -216,16 +214,14 @@ subroutine destroy(this, mempath)
216214 call mem_deallocate(this% extol, ' PLEXTOL' , mempath)
217215 call mem_deallocate(this% extend, ' PLIEXTEND' , mempath)
218216 call mem_deallocate(this% icycwin, ' PLICYCWIN' , mempath)
219- call mem_deallocate(this% idomain , ' PLIDOMAIN' , mempath)
217+ call mem_deallocate(this% itrdomain , ' PLIDOMAIN' , mempath)
220218 call mem_deallocate(this% iboundary, ' PLIBOUNDARY' , mempath)
221219 end subroutine destroy
222220
223221 ! > @brief Destroy a particle after use.
224222 subroutine destroy_particle (particle )
225223 class(ParticleType), intent (inout ) :: particle ! < particle
226224 deallocate (particle% history)
227- deallocate (particle% idomain)
228- deallocate (particle% iboundary)
229225 end subroutine destroy_particle
230226
231227 ! > @brief Reallocate particle storage to the given size.
@@ -259,7 +255,7 @@ subroutine resize(this, np, mempath)
259255 call mem_reallocate(this% extol, np, ' PLEXTOL' , mempath)
260256 call mem_reallocate(this% extend, np, ' PLIEXTEND' , mempath)
261257 call mem_reallocate(this% icycwin, np, ' PLICYCWIN' , mempath)
262- call mem_reallocate(this% idomain , np, MAX_LEVEL, ' PLIDOMAIN' , mempath)
258+ call mem_reallocate(this% itrdomain , np, MAX_LEVEL, ' PLIDOMAIN' , mempath)
263259 call mem_reallocate(this% iboundary, np, MAX_LEVEL, ' PLIBOUNDARY' , mempath)
264260 end subroutine resize
265261
@@ -298,9 +294,9 @@ subroutine get(this, particle, imdl, iprp, ip)
298294 particle% tstop = this% tstop(ip)
299295 particle% ttrack = this% ttrack(ip)
300296 particle% advancing = .true.
301- particle% idomain (1 :MAX_LEVEL) = &
302- this% idomain (ip, 1 :MAX_LEVEL)
303- particle% idomain (1 ) = imdl
297+ particle% itrdomain (1 :MAX_LEVEL) = &
298+ this% itrdomain (ip, 1 :MAX_LEVEL)
299+ particle% itrdomain (1 ) = imdl
304300 particle% iboundary(1 :MAX_LEVEL) = &
305301 this% iboundary(ip, 1 :MAX_LEVEL)
306302 particle% ifrctrn = this% ifrctrn(ip)
@@ -334,10 +330,10 @@ subroutine put(this, particle, ip)
334330 this% trelease(ip) = particle% trelease
335331 this% tstop(ip) = particle% tstop
336332 this% ttrack(ip) = particle% ttrack
337- this% idomain ( &
333+ this% itrdomain ( &
338334 ip, &
339335 1 :MAX_LEVEL) = &
340- particle% idomain (1 :MAX_LEVEL)
336+ particle% itrdomain (1 :MAX_LEVEL)
341337 this% iboundary( &
342338 ip, &
343339 1 :MAX_LEVEL) = &
0 commit comments