MODFLOW 6  version 6.7.0.dev3
USGS Modular Hydrologic Model
methodsubcellmodule Module Reference

Data Types

type  methodsubcelltype
 Abstract base type for subcell tracking methods. More...
 

Functions/Subroutines

subroutine assess (this, particle, cell_defn, tmax)
 Assess conditions before tracking. More...
 
subroutine subcellexit (this, particle)
 Particle exits a subcell. More...
 
integer(i4b) function get_level (this)
 Get the subcell method's level. More...
 

Function/Subroutine Documentation

◆ assess()

subroutine methodsubcellmodule::assess ( class(methodsubcelltype), intent(inout)  this,
type(particletype), intent(inout), pointer  particle,
type(celldefntype), intent(inout), pointer  cell_defn,
real(dp), intent(in)  tmax 
)
private

Definition at line 24 of file MethodSubcell.f90.

25  ! dummy
26  class(MethodSubcellType), intent(inout) :: this
27  type(ParticleType), pointer, intent(inout) :: particle
28  type(CellDefnType), pointer, intent(inout) :: cell_defn
29  real(DP), intent(in) :: tmax
30  ! noop

◆ get_level()

integer(i4b) function methodsubcellmodule::get_level ( class(methodsubcelltype), intent(in)  this)
private

Definition at line 49 of file MethodSubcell.f90.

50  class(MethodSubcellType), intent(in) :: this
51  integer(I4B) :: level
52  level = level_subfeature

◆ subcellexit()

subroutine methodsubcellmodule::subcellexit ( class(methodsubcelltype), intent(inout)  this,
type(particletype), intent(inout), pointer  particle 
)
private

Definition at line 34 of file MethodSubcell.f90.

35  class(MethodSubcellType), intent(inout) :: this
36  type(ParticleType), pointer, intent(inout) :: particle
37  class(ParticleEventType), pointer :: event
38 
39  allocate (subcellexiteventtype :: event)
40  select type (event)
41  type is (subcellexiteventtype)
42  event%isc = particle%itrdomain(level_subfeature)
43  event%exit_face = particle%iboundary(level_subfeature)
44  end select
45  call this%events%dispatch(particle, event)