MODFLOW 6 version 6.9.0.dev0
USGS Modular Hydrologic Model
Loading...
Searching...
No Matches
indexmapmodule Module Reference

Data Types

type  indexmaptype
type  indexmapsgntype

Functions/Subroutines

subroutine add_map (this, map)
subroutine copy_map (this, map)
subroutine add_signed_map (this, signed_map)
subroutine copy_signed_map (this, signed_map)

Function/Subroutine Documentation

◆ add_map()

subroutine indexmapmodule::add_map ( class(indexmaptype) this,
class(indexmaptype) map )

Definition at line 30 of file IndexMap.f90.

31 class(IndexMapType) :: this
32 class(IndexMapType) :: map
33
34 call concatarray(this%src_idx, map%src_idx)
35 call concatarray(this%tgt_idx, map%tgt_idx)
36

◆ add_signed_map()

subroutine indexmapmodule::add_signed_map ( class(indexmapsgntype) this,
class(indexmapsgntype) signed_map )
private

Definition at line 56 of file IndexMap.f90.

57 class(IndexMapSgnType) :: this
58 class(IndexMapSgnType) :: signed_map
59
60 call concatarray(this%src_idx, signed_map%src_idx)
61 call concatarray(this%tgt_idx, signed_map%tgt_idx)
62 call concatarray(this%sign, signed_map%sign)
63

◆ copy_map()

subroutine indexmapmodule::copy_map ( class(indexmaptype) this,
class(indexmaptype) map )
private

Definition at line 39 of file IndexMap.f90.

40 class(IndexMapType) :: this
41 class(IndexMapType) :: map
42 ! local
43 integer(I4B) :: i
44
45 allocate (this%src_idx(size(map%src_idx)))
46 allocate (this%tgt_idx(size(map%tgt_idx)))
47 do i = 1, size(map%src_idx)
48 this%src_idx(i) = map%src_idx(i)
49 end do
50 do i = 1, size(map%tgt_idx)
51 this%tgt_idx(i) = map%tgt_idx(i)
52 end do
53

◆ copy_signed_map()

subroutine indexmapmodule::copy_signed_map ( class(indexmapsgntype) this,
class(indexmapsgntype) signed_map )
private

Definition at line 66 of file IndexMap.f90.

67 class(IndexMapSgnType) :: this
68 class(IndexMapSgnType) :: signed_map
69 ! local
70 integer(I4B) :: i
71
72 allocate (this%src_idx(size(signed_map%src_idx)))
73 allocate (this%tgt_idx(size(signed_map%tgt_idx)))
74 allocate (this%sign(size(signed_map%sign)))
75 do i = 1, size(signed_map%src_idx)
76 this%src_idx(i) = signed_map%src_idx(i)
77 end do
78 do i = 1, size(signed_map%tgt_idx)
79 this%tgt_idx(i) = signed_map%tgt_idx(i)
80 end do
81 do i = 1, size(signed_map%sign)
82 this%sign(i) = signed_map%sign(i)
83 end do
84