19 integer(I4B) :: nnodes
22 character(len=LENMEMPATH) :: memorypath =
''
25 real(dp),
pointer :: gwerhow => null()
26 real(dp),
pointer :: gwecpw => null()
27 real(dp),
pointer :: gwelatheatvap => null()
28 real(dp),
dimension(:),
pointer,
contiguous :: gwerhos => null()
29 real(dp),
dimension(:),
pointer,
contiguous :: gwecps => null()
65 integer(I4B),
intent(in) :: nodes
69 call this%allocate_shared_vars(nodes)
83 integer(I4B),
intent(in) :: nodes
87 allocate (this%gwecpw)
88 allocate (this%gwerhow)
89 allocate (this%gwelatheatvap)
90 allocate (this%gwerhos(nodes))
91 allocate (this%gwecps(nodes))
96 this%gwelatheatvap =
dzero
98 this%gwecps(i) =
dzero
99 this%gwerhos(i) =
dzero
117 real(dp),
intent(in) :: gwerhow
118 real(dp),
intent(in) :: gwecpw
119 real(dp),
intent(in) :: gwerhos
120 real(dp),
intent(in) :: gwecps
121 real(dp),
intent(in),
optional :: gwelatheatvap
124 if (
present(gwelatheatvap))
then
125 call this%set_gwe_shared_scalars(gwerhow, gwecpw, gwelatheatvap)
127 call this%set_gwe_shared_scalars(gwerhow, gwecpw)
131 call this%set_gwe_shared_arrays(gwerhos, gwecps)
148 real(DP),
intent(in) :: gwerhow
149 real(DP),
intent(in) :: gwecpw
150 real(DP),
intent(in),
optional :: gwelatheatvap
155 this%gwerhow = gwerhow
159 if (
present(gwelatheatvap))
then
160 this%gwelatheatvap = gwelatheatvap
176 real(DP),
intent(in) :: gwerhos
177 real(DP),
intent(in) :: gwecps
182 this%gwerhos = gwerhos
199 deallocate (this%gwelatheatvap)
200 deallocate (this%gwerhow)
201 deallocate (this%gwecpw)
204 deallocate (this%gwerhos)
205 deallocate (this%gwecps)
This module contains simulation constants.
real(dp), parameter dzero
real constant zero
integer(i4b), parameter lenmempath
maximum length of the memory path
This module defines variable data types.