Skip to content

Commit

Permalink
cleanup/comment
Browse files Browse the repository at this point in the history
  • Loading branch information
wpbonelli committed Dec 31, 2024
1 parent 862929e commit 46aae26
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Solution/ParticleTracker/MethodCellTernary.f90
Original file line number Diff line number Diff line change
Expand Up @@ -196,17 +196,16 @@ subroutine apply_mct(this, particle, tmax)
allocate (this%xvertnext(this%nverts))
allocate (this%yvertnext(this%nverts))

! New origin is the corner of the cell's
! bounding box closest to the old origin
allocate (xs(this%nverts))
allocate (ys(this%nverts))

xs = cell%defn%polyvert(1, :)
ys = cell%defn%polyvert(2, :)

xO = xs(minloc(abs(xs), dim=1))
yO = ys(minloc(abs(ys), dim=1))

deallocate (xs)
deallocatE (ys)
deallocate (ys)

! Cell vertices
do i = 1, this%nverts
Expand Down

0 comments on commit 46aae26

Please sign in to comment.