MODFLOW 6  version 6.7.0.dev0
USGS Modular Hydrologic Model
methodcellpasstobotmodule Module Reference

Data Types

type  methodcellpasstobottype
 

Functions/Subroutines

subroutine, public create_method_cell_ptb (method)
 Create a new pass-to-bottom tracking method. More...
 
subroutine deallocate (this)
 Deallocate the pass-to-bottom tracking method. More...
 
subroutine apply_ptb (this, particle, tmax)
 Pass particle vertically and instantaneously to the cell bottom. More...
 

Function/Subroutine Documentation

◆ apply_ptb()

subroutine methodcellpasstobotmodule::apply_ptb ( class(methodcellpasstobottype), intent(inout)  this,
type(particletype), intent(inout), pointer  particle,
real(dp), intent(in)  tmax 
)
private

Definition at line 43 of file MethodCellPassToBot.f90.

44  ! dummy
45  class(MethodCellPassToBotType), intent(inout) :: this
46  type(ParticleType), pointer, intent(inout) :: particle
47  real(DP), intent(in) :: tmax
48 
49  ! Check termination/reporting conditions
50  call this%check(particle, this%cell%defn)
51  if (.not. particle%advancing) return
52 
53  ! Pass to bottom face
54  particle%z = this%cell%defn%bot
55  particle%iboundary(2) = this%cell%defn%npolyverts + 2
56 
57  ! Save datum
58  call this%save(particle, reason=1)

◆ create_method_cell_ptb()

subroutine, public methodcellpasstobotmodule::create_method_cell_ptb ( type(methodcellpasstobottype), pointer  method)

Definition at line 28 of file MethodCellPassToBot.f90.

29  type(MethodCellPassToBotType), pointer :: method
30  allocate (method)
31  allocate (method%name)
32  method%name = "passtobottom"
33  method%delegates = .false.
Here is the caller graph for this function:

◆ deallocate()

subroutine methodcellpasstobotmodule::deallocate ( class(methodcellpasstobottype), intent(inout)  this)
private

Definition at line 37 of file MethodCellPassToBot.f90.

38  class(MethodCellPassToBotType), intent(inout) :: this
39  deallocate (this%name)