Skip to content

Commit

Permalink
change made in response to
Browse files Browse the repository at this point in the history
  • Loading branch information
emorway-usgs committed Nov 3, 2023
1 parent f15d83e commit a12332c
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/Model/GroundWaterTransport/gwt1cnc1.f90
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module GwtCncModule
!
type, extends(BndExtType) :: GwtCncType

real(DP), dimension(:), pointer, contiguous :: tspvar => null() !< constant head array
real(DP), dimension(:), pointer, contiguous :: tspvar => null() !< constant concentration array
real(DP), dimension(:), pointer, contiguous :: ratecncin => null() !simulated flows into constant conc (excluding other concs)
real(DP), dimension(:), pointer, contiguous :: ratecncout => null() !simulated flows out of constant conc (excluding to other concs)
character(len=LENVARNAME) :: depvartype = '' !< stores string of dependent variable type, depending on model type
Expand Down Expand Up @@ -203,11 +203,8 @@ subroutine cnc_ad(this)
! -- Process each entry in the constant concentration cell list
do i = 1, this%nbound
node = this%nodelist(i)
if (this%iauxmultcol > 0) then
cb = this%tspvar(i) * this%auxvar(this%iauxmultcol, i)
else
cb = this%tspvar(i)
end if
cb = this%conc_mult(i)
!
this%xnew(node) = cb
this%xold(node) = this%xnew(node)
end do
Expand Down Expand Up @@ -240,7 +237,7 @@ subroutine cnc_ck(this)
do i = 1, this%nbound
node = this%nodelist(i)
! -- accumulate errors
if (this%tspvar(i) < DZERO) then
if (this%conc_mult(i) < DZERO) then
call this%dis%noder_to_string(node, nodestr)
write (errmsg, fmt=fmtcncerr) i, this%tspvar(i), trim(nodestr)
call store_error(errmsg)
Expand Down

0 comments on commit a12332c

Please sign in to comment.