MODFLOW 6  version 6.7.0.dev1
USGS Modular Hydrologic Model
spdisworkarraymodule Module Reference

Data Types

type  spdisworkarraytype
 Helper class with work arrays for the SPDIS calculation in NPF. More...
 

Functions/Subroutines

subroutine create (this, nr_conns)
 
logical(lgp) function is_created (this)
 
subroutine reset (this)
 
subroutine destroy (this)
 

Function/Subroutine Documentation

◆ create()

subroutine spdisworkarraymodule::create ( class(spdisworkarraytype this,
integer(i4b)  nr_conns 
)

Definition at line 32 of file SpdisWorkArray.f90.

33  class(SpdisWorkArrayType) :: this
34  integer(I4B) :: nr_conns
35 
36  allocate (this%vi(nr_conns))
37  allocate (this%di(nr_conns))
38  allocate (this%viz(nr_conns))
39  allocate (this%diz(nr_conns))
40  allocate (this%nix(nr_conns))
41  allocate (this%niy(nr_conns))
42  allocate (this%wix(nr_conns))
43  allocate (this%wiy(nr_conns))
44  allocate (this%wiz(nr_conns))
45  allocate (this%bix(nr_conns))
46  allocate (this%biy(nr_conns))
47 

◆ destroy()

subroutine spdisworkarraymodule::destroy ( class(spdisworkarraytype this)
private

Definition at line 81 of file SpdisWorkArray.f90.

82  class(SpdisWorkArrayType) :: this
83 
84  deallocate (this%vi)
85  deallocate (this%di)
86  deallocate (this%viz)
87  deallocate (this%diz)
88  deallocate (this%nix)
89  deallocate (this%niy)
90  deallocate (this%wix)
91  deallocate (this%wiy)
92  deallocate (this%wiz)
93  deallocate (this%bix)
94  deallocate (this%biy)
95 

◆ is_created()

logical(lgp) function spdisworkarraymodule::is_created ( class(spdisworkarraytype this)
private

Definition at line 52 of file SpdisWorkArray.f90.

53  class(SpdisWorkArrayType) :: this
54  logical(LGP) :: created
55 
56  created = allocated(this%vi)
57 

◆ reset()

subroutine spdisworkarraymodule::reset ( class(spdisworkarraytype this)
private

Definition at line 62 of file SpdisWorkArray.f90.

63  class(SpdisWorkArrayType) :: this
64 
65  this%vi(:) = dzero
66  this%di(:) = dzero
67  this%viz(:) = dzero
68  this%diz(:) = dzero
69  this%nix(:) = dzero
70  this%niy(:) = dzero
71  this%wix(:) = dzero
72  this%wiy(:) = dzero
73  this%wiz(:) = dzero
74  this%bix(:) = dzero
75  this%biy(:) = dzero
76