MODFLOW 6  version 6.5.0.dev2
MODFLOW 6 Code Documentation
packagemovermodule Module Reference

Data Types

type  packagemovertype
 

Functions/Subroutines

subroutine, public set_packagemover_pointer (packagemover, memPath)
 
subroutine, public nulllify_packagemover_pointer (packagemover)
 
subroutine ar (this, nproviders, nreceivers, memoryPath)
 
subroutine ad (this)
 
subroutine reset (this)
 
subroutine fc (this)
 
subroutine da (this)
 
subroutine allocate_scalars (this)
 
subroutine allocate_arrays (this)
 
real(dp) function get_qfrommvr (this, ireceiver)
 
real(dp) function get_qfrommvr0 (this, ireceiver)
 
real(dp) function get_qtomvr (this, iprovider)
 
subroutine accumulate_qformvr (this, iprovider, qformvr)
 

Function/Subroutine Documentation

◆ accumulate_qformvr()

subroutine packagemovermodule::accumulate_qformvr ( class(packagemovertype this,
integer, intent(in)  iprovider,
real(dp), intent(in)  qformvr 
)
private

Definition at line 218 of file PackageMover.f90.

219  class(PackageMoverType) :: this
220  integer, intent(in) :: iprovider
221  real(DP), intent(in) :: qformvr
222  this%qformvr(iprovider) = this%qformvr(iprovider) + qformvr

◆ ad()

subroutine packagemovermodule::ad ( class(packagemovertype this)
private

Definition at line 89 of file PackageMover.f90.

90  class(PackageMoverType) :: this
91  integer :: i
92  !
93  ! -- set qtomvr and qformvr to zero
94  do i = 1, this%nproviders
95  this%qtomvr(i) = dzero
96  this%qformvr(i) = dzero
97  end do
98  !
99  ! -- return
100  return

◆ allocate_arrays()

subroutine packagemovermodule::allocate_arrays ( class(packagemovertype this)
private

Definition at line 169 of file PackageMover.f90.

170  class(PackageMoverType) :: this
171  integer(I4B) :: i
172  !
173  call mem_allocate(this%iprmap, this%nproviders, 'IPRMAP', this%memoryPath)
174  call mem_allocate(this%qtformvr, this%nproviders, 'QTFORMVR', this%memoryPath)
175  call mem_allocate(this%qformvr, this%nproviders, 'QFORMVR', this%memoryPath)
176  call mem_allocate(this%qtomvr, this%nproviders, 'QTOMVR', this%memoryPath)
177  call mem_allocate(this%qfrommvr, this%nreceivers, 'QFROMMVR', this%memoryPath)
178  call mem_allocate(this%qfrommvr0, this%nreceivers, 'QFROMMVR0', &
179  this%memoryPath)
180  !
181  ! -- initialize
182  do i = 1, this%nproviders
183  this%iprmap(i) = i
184  this%qtformvr(i) = dzero
185  this%qformvr(i) = dzero
186  this%qtomvr(i) = dzero
187  end do
188  do i = 1, this%nreceivers
189  this%qfrommvr(i) = dzero
190  this%qfrommvr0(i) = dzero
191  end do
192  !
193  ! -- return
194  return

◆ allocate_scalars()

subroutine packagemovermodule::allocate_scalars ( class(packagemovertype this)
private

Definition at line 156 of file PackageMover.f90.

157  class(PackageMoverType) :: this
158  !
159  call mem_allocate(this%nproviders, 'NPROVIDERS', this%memoryPath)
160  call mem_allocate(this%nreceivers, 'NRECEIVERS', this%memoryPath)
161  !
162  this%nproviders = 0
163  this%nreceivers = 0
164  !
165  ! -- return
166  return

◆ ar()

subroutine packagemovermodule::ar ( class(packagemovertype this,
integer, intent(in)  nproviders,
integer, intent(in)  nreceivers,
character(len=*), intent(in)  memoryPath 
)
private

Definition at line 72 of file PackageMover.f90.

73  class(PackageMoverType) :: this
74  integer, intent(in) :: nproviders
75  integer, intent(in) :: nreceivers
76  character(len=*), intent(in) :: memoryPath
77  !
78  this%memoryPath = memorypath
79  call this%allocate_scalars()
80  this%nproviders = nproviders
81  this%nreceivers = nreceivers
82  !
83  call this%allocate_arrays()
84  !
85  ! -- return
86  return

◆ da()

subroutine packagemovermodule::da ( class(packagemovertype this)
private

Definition at line 134 of file PackageMover.f90.

135  class(PackageMoverType) :: this
136  !
137  ! -- arrays
138  call mem_deallocate(this%iprmap)
139  call mem_deallocate(this%qtformvr)
140  call mem_deallocate(this%qformvr)
141  call mem_deallocate(this%qtomvr)
142  call mem_deallocate(this%qfrommvr)
143  call mem_deallocate(this%qfrommvr0)
144  !
145  ! -- scalars
146  call mem_deallocate(this%nproviders)
147  call mem_deallocate(this%nreceivers)
148  !
149  ! -- pointers
150  nullify (this%iprmap)
151  !
152  ! -- return
153  return

◆ fc()

subroutine packagemovermodule::fc ( class(packagemovertype this)
private

Definition at line 121 of file PackageMover.f90.

122  class(PackageMoverType) :: this
123  integer :: i
124  !
125  ! -- set formvr to zero
126  do i = 1, this%nproviders
127  this%qformvr(i) = dzero
128  end do
129  !
130  ! -- return
131  return

◆ get_qfrommvr()

real(dp) function packagemovermodule::get_qfrommvr ( class(packagemovertype this,
integer, intent(in)  ireceiver 
)
private

Definition at line 197 of file PackageMover.f90.

198  class(PackageMoverType) :: this
199  real(DP) :: qfrommvr
200  integer, intent(in) :: ireceiver
201  qfrommvr = this%qfrommvr(ireceiver)

◆ get_qfrommvr0()

real(dp) function packagemovermodule::get_qfrommvr0 ( class(packagemovertype this,
integer, intent(in)  ireceiver 
)
private

Definition at line 204 of file PackageMover.f90.

205  class(PackageMoverType) :: this
206  real(DP) :: qfrommvr0
207  integer, intent(in) :: ireceiver
208  qfrommvr0 = this%qfrommvr0(ireceiver)

◆ get_qtomvr()

real(dp) function packagemovermodule::get_qtomvr ( class(packagemovertype this,
integer, intent(in)  iprovider 
)
private

Definition at line 211 of file PackageMover.f90.

212  class(PackageMoverType) :: this
213  real(DP) :: qtomvr
214  integer, intent(in) :: iprovider
215  qtomvr = this%qtomvr(iprovider)

◆ nulllify_packagemover_pointer()

subroutine, public packagemovermodule::nulllify_packagemover_pointer ( type(packagemovertype), intent(inout)  packagemover)

Definition at line 59 of file PackageMover.f90.

60  type(PackageMoverType), intent(inout) :: packagemover
61  packagemover%memoryPath = ''
62  packagemover%nproviders => null()
63  packagemover%nreceivers => null()
64  packagemover%iprmap => null()
65  packagemover%qtformvr => null()
66  packagemover%qformvr => null()
67  packagemover%qtomvr => null()
68  packagemover%qfrommvr => null()
69  packagemover%qfrommvr0 => null()
Here is the caller graph for this function:

◆ reset()

subroutine packagemovermodule::reset ( class(packagemovertype this)
private

Definition at line 103 of file PackageMover.f90.

104  class(PackageMoverType) :: this
105  integer :: i
106  !
107  ! -- set frommvr and qtomvr to zero
108  do i = 1, this%nreceivers
109  this%qfrommvr0(i) = this%qfrommvr(i)
110  this%qfrommvr(i) = dzero
111  end do
112  do i = 1, this%nproviders
113  this%qtomvr(i) = dzero
114  this%qtformvr(i) = this%qformvr(i)
115  end do
116  !
117  ! -- return
118  return

◆ set_packagemover_pointer()

subroutine, public packagemovermodule::set_packagemover_pointer ( type(packagemovertype), intent(inout)  packagemover,
character(len=*), intent(in)  memPath 
)

Definition at line 43 of file PackageMover.f90.

44  type(PackageMoverType), intent(inout) :: packagemover
45  character(len=*), intent(in) :: memPath
46  packagemover%memoryPath = mempath
47  call mem_setptr(packagemover%nproviders, 'NPROVIDERS', &
48  packagemover%memoryPath)
49  call mem_setptr(packagemover%nreceivers, 'NRECEIVERS', &
50  packagemover%memoryPath)
51  call mem_setptr(packagemover%iprmap, 'IPRMAP', packagemover%memoryPath)
52  call mem_setptr(packagemover%qtformvr, 'QTFORMVR', packagemover%memoryPath)
53  call mem_setptr(packagemover%qformvr, 'QFORMVR', packagemover%memoryPath)
54  call mem_setptr(packagemover%qtomvr, 'QTOMVR', packagemover%memoryPath)
55  call mem_setptr(packagemover%qfrommvr, 'QFROMMVR', packagemover%memoryPath)
56  call mem_setptr(packagemover%qfrommvr0, 'QFROMMVR0', packagemover%memoryPath)
Here is the caller graph for this function: