Skip to content

Commit cc4ab9c

Browse files
committed
cleanup
1 parent b8ffcee commit cc4ab9c

File tree

8 files changed

+5
-23
lines changed

8 files changed

+5
-23
lines changed

src/Model/ParticleTracking/prt-prp.f90

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,7 @@ subroutine release(this, ip, trelease)
429429

430430
! Accumulate mass for release point
431431
this%rptm(ip) = this%rptm(ip) + DONE
432+
432433
end subroutine release
433434

434435
subroutine initialize_particle(this, particle, ip, trelease)

src/Model/ParticleTracking/prt.f90

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -959,10 +959,8 @@ subroutine prt_solve(this)
959959
! Get and apply the tracking method
960960
call this%method%apply(particle, tmax)
961961

962-
! Reset previous cell, subcell, and zone numbers
962+
! Reset previous cell and zone numbers
963963
particle%icp = 0
964-
particle%iscp = 0
965-
particle%iscefp = 0
966964
particle%izp = 0
967965

968966
! Update particle storage

src/Solution/ParticleTracker/Method.f90

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,7 @@ recursive subroutine track(this, particle, level, tmax)
114114
nextlevel = level + 1
115115
do while (advancing)
116116
call this%load(particle, nextlevel, submethod)
117-
if (particle%istatus > 1) then
118-
advancing = .false.
119-
else
120-
call submethod%apply(particle, tmax)
121-
end if
117+
call submethod%apply(particle, tmax)
122118
call this%try_pass(particle, nextlevel, advancing)
123119
end do
124120
end subroutine track
@@ -188,7 +184,6 @@ subroutine save(this, particle, reason)
188184
end if
189185

190186
call this%trackctl%save(particle, kper=per, kstp=stp, reason=reason)
191-
192187
end subroutine save
193188

194189
!> @brief Check reporting/terminating conditions before tracking.

src/Solution/ParticleTracker/MethodCellTernary.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ subroutine vertvelo(this)
359359
real(DP), allocatable, dimension(:) :: vm0y
360360
real(DP), allocatable, dimension(:) :: vm1x
361361
real(DP), allocatable, dimension(:) :: vm1y
362-
real(DP), allocatable, dimension(:, :) :: poly
362+
! real(DP), allocatable, dimension(:, :) :: poly
363363
integer(I4B) :: nvert
364364

365365
select type (cell => this%cell)

src/Solution/ParticleTracker/MethodSubcellTernary.f90

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ end subroutine apply_mst
6363

6464
!> @brief Track a particle across a triangular subcell.
6565
subroutine track_subcell(this, subcell, particle, tmax)
66-
! modules
67-
use TdisModule, only: kper, kstp
6866
! dummy
6967
class(MethodSubcellTernaryType), intent(inout) :: this
7068
class(SubcellTriType), intent(in) :: subcell
@@ -289,10 +287,6 @@ subroutine track_subcell(this, subcell, particle, tmax)
289287
particle%ttrack = t
290288
particle%iboundary(3) = exitFace
291289

292-
! save previous subcell id and exit face
293-
particle%iscp = particle%idomain(3)
294-
particle%iscefp = particle%iboundary(3)
295-
296290
call this%save(particle, reason=reason)
297291
end subroutine track_subcell
298292

@@ -358,7 +352,7 @@ subroutine calculate_dt(v1, v2, dx, xL, v, dvdx, &
358352
vv = v1a
359353
if (v2a .gt. vv) vv = v2a
360354
vvv = dva / vv
361-
if (vvv .lt. 1.0d-3) then
355+
if (vvv .lt. 1.0d-4) then
362356
zro = tol
363357
zrom = -zro
364358
v = v1

src/Solution/ParticleTracker/Particle.f90

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ module ParticleModule
4545
integer(I4B), allocatable, public :: idomain(:) !< tracking domain hierarchy ! TODO: rename to itdomain? idomain
4646
integer(I4B), allocatable, public :: iboundary(:) !< tracking domain boundaries
4747
integer(I4B), public :: icp !< previous cell number (reduced)
48-
integer(I4B), public :: iscp !< previous subcell number
49-
integer(I4B), public :: iscefp !< previous subcell exit face
5048
integer(I4B), public :: icu !< user cell number
5149
integer(I4B), public :: ilay !< grid layer
5250
integer(I4B), public :: izone !< current zone number
@@ -243,8 +241,6 @@ subroutine load_particle(this, store, imdl, iprp, ip)
243241
this%istopzone = store%istopzone(ip)
244242
this%idrymeth = store%idrymeth(ip)
245243
this%icp = 0
246-
this%iscp = 0
247-
this%iscefp = 0
248244
this%icu = store%icu(ip)
249245
this%ilay = store%ilay(ip)
250246
this%izone = store%izone(ip)

src/Solution/ParticleTracker/TernarySolveTrack.f90

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,6 @@ subroutine solve_coefs(alpi, beti)
297297

298298
!> @brief Step (evaluate) analytically depending on case
299299
subroutine step_analytical(t, alp, bet)
300-
use TdisModule, only: kper
301300
! -- dummy
302301
real(DP), intent(in) :: t
303302
real(DP) :: alp

src/Timing/tdis.f90

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ subroutine tdis_set_counters()
131131
write (line, fmtvspts) kper, kstp
132132
case (MNORMAL)
133133
write (line, fmtspts) cpref, kper, kstp, trim(cend)
134-
! write (line, "(a)") ""
135134
end select
136135
if (isim_level >= VALL) &
137136
call write_message(line)

0 commit comments

Comments
 (0)