Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wpbonelli committed Nov 26, 2024
1 parent dbced05 commit c7a0c73
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 11 deletions.
Binary file modified autotest/__snapshots__/test_prt_dry/test_mf6model[0-prtdry].npy
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion autotest/test_prt_dry.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ def check_output(idx, test, snapshot):
mf6pathlines = pd.read_csv(trackcsv_path)
startpts = mf6pathlines[mf6pathlines.ireason == 0]

assert snapshot == mf6pathlines.drop("name", axis=1).round(3).to_records(
assert snapshot == mf6pathlines.drop(["name", "icell"], axis=1).round(3).to_records(
index=False
)

Expand Down
19 changes: 9 additions & 10 deletions src/Solution/ParticleTracker/Method.f90
Original file line number Diff line number Diff line change
Expand Up @@ -202,13 +202,12 @@ subroutine prepare(this, particle, cell_defn)
integer(I4B) :: ic

! stop zone
if (cell_defn%izone .ne. 0) then
if (particle%istopzone .eq. cell_defn%izone) then
particle%advancing = .false.
particle%istatus = 6
call this%save(particle, reason=3)
return
end if
particle%izone = cell_defn%izone
if (cell_defn%izone > 0 .and. particle%istopzone == cell_defn%izone) then
particle%advancing = .false.
particle%istatus = 6
call this%save(particle, reason=3)
return
end if

! dry
Expand All @@ -228,7 +227,7 @@ subroutine prepare(this, particle, cell_defn)
return
end if
else if (locn_dry) then
particle%z = this%cell%defn%top
particle%z = cell_defn%top
call this%save(particle, reason=1)
end if
else if (particle%idry == 1) then
Expand All @@ -244,15 +243,15 @@ subroutine prepare(this, particle, cell_defn)

! cell with no exit face (mutually exclusive with
! dry because a dry cell will have no exit face)
else if (cell_defn%inoexitface .ne. 0) then
else if (cell_defn%inoexitface > 0) then
particle%advancing = .false.
particle%istatus = 5
call this%save(particle, reason=3)
return
end if

! weak sink
if (cell_defn%iweaksink .ne. 0) then
if (cell_defn%iweaksink > 0) then
if (particle%istopweaksink == 0) then
call this%save(particle, reason=4)
else
Expand Down

0 comments on commit c7a0c73

Please sign in to comment.