15 character(len=LENFTYPE) ::
ftype =
'ESL'
16 character(len=16) ::
text =
' ESL'
21 real(dp),
dimension(:),
pointer,
contiguous :: senerrate => null()
44 subroutine esl_create(packobj, id, ibcnum, inunit, iout, namemodel, pakname, &
45 gwecommon, input_mempath)
49 class(
bndtype),
pointer :: packobj
50 integer(I4B),
intent(in) :: id
51 integer(I4B),
intent(in) :: ibcnum
52 integer(I4B),
intent(in) :: inunit
53 integer(I4B),
intent(in) :: iout
54 character(len=*),
intent(in) :: namemodel
55 character(len=*),
intent(in) :: pakname
57 character(len=*),
intent(in) :: input_mempath
66 call packobj%set_names(ibcnum, namemodel, pakname,
ftype, input_mempath)
70 call eslobj%allocate_scalars()
73 call packobj%pack_initialize()
75 packobj%inunit = inunit
78 packobj%ibcnum = ibcnum
85 eslobj%gwecommon => gwecommon
97 call this%BndExtType%bnd_da()
111 call this%BndExtType%allocate_scalars()
125 integer(I4B),
dimension(:),
pointer,
contiguous,
optional :: nodelist
126 real(DP),
dimension(:, :),
pointer,
contiguous,
optional :: auxvar
129 call this%BndExtType%allocate_arrays(nodelist, auxvar)
132 call mem_setptr(this%senerrate,
'SENERRATE', this%input_mempath)
135 call mem_checkin(this%senerrate,
'SENERRATE', this%memoryPath, &
136 'SENERRATE', this%input_mempath)
149 integer(I4B) :: i, node
153 if (this%nbound == 0)
return
156 do i = 1, this%nbound
157 node = this%nodelist(i)
159 if (this%ibound(node) <= 0)
then
163 q = this%bound_value(1, i)
172 subroutine esl_fc(this, rhs, ia, idxglo, matrix_sln)
175 real(DP),
dimension(:),
intent(inout) :: rhs
176 integer(I4B),
dimension(:),
intent(in) :: ia
177 integer(I4B),
dimension(:),
intent(in) :: idxglo
180 integer(I4B) :: i, n, ipos
183 if (this%imover == 1)
then
184 call this%pakmvrobj%fc()
188 do i = 1, this%nbound
190 rhs(n) = rhs(n) + this%rhs(i)
192 call matrix_sln%add_value_pos(idxglo(ipos), this%hcof(i))
196 if (this%imover == 1 .and. this%rhs(i) >
dzero)
then
197 call this%pakmvrobj%accumulate_qformvr(i, this%rhs(i))
212 this%listlabel = trim(this%filtyp)//
' NO.'
213 if (this%dis%ndim == 3)
then
214 write (this%listlabel,
'(a, a7)') trim(this%listlabel),
'LAYER'
215 write (this%listlabel,
'(a, a7)') trim(this%listlabel),
'ROW'
216 write (this%listlabel,
'(a, a7)') trim(this%listlabel),
'COL'
217 elseif (this%dis%ndim == 2)
then
218 write (this%listlabel,
'(a, a7)') trim(this%listlabel),
'LAYER'
219 write (this%listlabel,
'(a, a7)') trim(this%listlabel),
'CELL2D'
221 write (this%listlabel,
'(a, a7)') trim(this%listlabel),
'NODE'
223 write (this%listlabel,
'(a, a16)') trim(this%listlabel),
'STRESS RATE'
224 if (this%inamedbound == 1)
then
225 write (this%listlabel,
'(a, a16)') trim(this%listlabel),
'BOUNDARY NAME'
258 call this%obs%StoreObsType(
'esl', .true., indx)
263 call this%obs%StoreObsType(
'to-mvr', .true., indx)
277 integer(I4B),
intent(in) :: col
278 integer(I4B),
intent(in) :: row
284 bndval = this%senerrate(row)
This module contains the extended boundary package.
This module contains the base boundary package.
This module contains simulation constants.
real(dp), parameter dem1
real constant 1e-1
integer(i4b), parameter lenftype
maximum length of a package type (DIS, WEL, OC, etc.)
real(dp), parameter dzero
real constant zero
real(dp), parameter done
real constant 1
subroutine, public esl_create(packobj, id, ibcnum, inunit, iout, namemodel, pakname, gwecommon, input_mempath)
Create an energy source loading package.
real(dp) function esl_bound_value(this, col, row)
@ brief Return a bound value
subroutine esl_da(this)
Deallocate memory.
subroutine esl_allocate_arrays(this, nodelist, auxvar)
Allocate arrays.
subroutine esl_cf(this)
Formulate the HCOF and RHS terms.
character(len=lenftype) ftype
subroutine define_listlabel(this)
Define list labels.
subroutine esl_df_obs(this)
Define observations.
subroutine esl_fc(this, rhs, ia, idxglo, matrix_sln)
Add matrix terms related to specified energy source loading.
logical function esl_obs_supported(this)
Support function for specified energy source loading observations.
subroutine esl_allocate_scalars(this)
Allocate scalars.
This module defines variable data types.
This module contains the derived type ObsType.
subroutine, public defaultobsidprocessor(obsrv, dis, inunitobs, iout)
@ brief Process IDstring provided for each observation