Skip to content

Commit

Permalink
changes in response to:
Browse files Browse the repository at this point in the history
  • Loading branch information
emorway-usgs committed Nov 7, 2023
1 parent f3e87f0 commit 7345130
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 21 deletions.
8 changes: 4 additions & 4 deletions src/Model/GroundWaterTransport/gwt1lkt1.f90
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
module GwtLktModule

use KindModule, only: DP, I4B
use ConstantsModule, only: DZERO, DONE, LINELENGTH, LENVARNAME
use ConstantsModule, only: DZERO, DONE, LINELENGTH
use SimModule, only: store_error
use BndModule, only: BndType, GetBndFromList
use TspFmiModule, only: TspFmiType
Expand Down Expand Up @@ -106,9 +106,9 @@ subroutine lkt_create(packobj, id, ibcnum, inunit, iout, namemodel, pakname, &
character(len=*), intent(in) :: pakname
type(TspFmiType), pointer :: fmi
real(DP), intent(in), pointer :: eqnsclfac !< governing equation scale factor
character(len=LENVARNAME), intent(in) :: dvt !< For GWT, set to "CONCENTRATION" in TspAptType
character(len=LENVARNAME), intent(in) :: dvu !< For GWT, set to "mass" in TspAptType
character(len=LENVARNAME), intent(in) :: dvua !< For GWT, set to "M" in TspAptType
character(len=*), intent(in) :: dvt !< For GWT, set to "CONCENTRATION" in TspAptType
character(len=*), intent(in) :: dvu !< For GWT, set to "mass" in TspAptType
character(len=*), intent(in) :: dvua !< For GWT, set to "M" in TspAptType
! -- local
type(GwtLktType), pointer :: lktobj
!
Expand Down
8 changes: 4 additions & 4 deletions src/Model/GroundWaterTransport/gwt1mwt1.f90
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
module GwtMwtModule

use KindModule, only: DP, I4B
use ConstantsModule, only: DZERO, LINELENGTH, LENVARNAME
use ConstantsModule, only: DZERO, LINELENGTH
use SimModule, only: store_error
use BndModule, only: BndType, GetBndFromList
use TspFmiModule, only: TspFmiType
Expand Down Expand Up @@ -99,9 +99,9 @@ subroutine mwt_create(packobj, id, ibcnum, inunit, iout, namemodel, pakname, &
character(len=*), intent(in) :: pakname
type(TspFmiType), pointer :: fmi
real(DP), intent(in), pointer :: eqnsclfac !< governing equation scale factor
character(len=LENVARNAME), intent(in) :: dvt !< For GWT, set to "CONCENTRATION" in TspAptType
character(len=LENVARNAME), intent(in) :: dvu !< For GWT, set to "mass" in TspAptType
character(len=LENVARNAME), intent(in) :: dvua !< For GWT, set to "M" in TspAptType
character(len=*), intent(in) :: dvt !< For GWT, set to "CONCENTRATION" in TspAptType
character(len=*), intent(in) :: dvu !< For GWT, set to "mass" in TspAptType
character(len=*), intent(in) :: dvua !< For GWT, set to "M" in TspAptType
! -- local
type(GwtMwtType), pointer :: mwtobj
!
Expand Down
8 changes: 4 additions & 4 deletions src/Model/GroundWaterTransport/gwt1sft1.f90
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
module GwtSftModule

use KindModule, only: DP, I4B
use ConstantsModule, only: DZERO, DONE, LINELENGTH, LENVARNAME
use ConstantsModule, only: DZERO, DONE, LINELENGTH
use SimModule, only: store_error
use BndModule, only: BndType, GetBndFromList
use TspFmiModule, only: TspFmiType
Expand Down Expand Up @@ -103,9 +103,9 @@ subroutine sft_create(packobj, id, ibcnum, inunit, iout, namemodel, pakname, &
character(len=*), intent(in) :: pakname
type(TspFmiType), pointer :: fmi
real(DP), intent(in), pointer :: eqnsclfac !< governing equation scale factor
character(len=LENVARNAME), intent(in) :: dvt !< For GWT, set to "CONCENTRATION" in TspAptType
character(len=LENVARNAME), intent(in) :: dvu !< For GWT, set to "mass" in TspAptType
character(len=LENVARNAME), intent(in) :: dvua !< For GWT, set to "M" in TspAptType
character(len=*), intent(in) :: dvt !< For GWT, set to "CONCENTRATION" in TspAptType
character(len=*), intent(in) :: dvu !< For GWT, set to "mass" in TspAptType
character(len=*), intent(in) :: dvua !< For GWT, set to "M" in TspAptType
! -- local
type(GwtSftType), pointer :: sftobj
!
Expand Down
8 changes: 4 additions & 4 deletions src/Model/GroundWaterTransport/gwt1uzt1.f90
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
module GwtUztModule

use KindModule, only: DP, I4B
use ConstantsModule, only: DZERO, DONE, LINELENGTH, LENVARNAME
use ConstantsModule, only: DZERO, DONE, LINELENGTH
use SimModule, only: store_error
use BndModule, only: BndType, GetBndFromList
use TspFmiModule, only: TspFmiType
Expand Down Expand Up @@ -91,9 +91,9 @@ subroutine uzt_create(packobj, id, ibcnum, inunit, iout, namemodel, pakname, &
character(len=*), intent(in) :: pakname
type(TspFmiType), pointer :: fmi
real(DP), intent(in), pointer :: eqnsclfac !< governing equation scale factor
character(len=LENVARNAME), intent(in) :: dvt !< For GWT, set to "CONCENTRATION" in TspAptType
character(len=LENVARNAME), intent(in) :: dvu !< For GWT, set to "mass" in TspAptType
character(len=LENVARNAME), intent(in) :: dvua !< For GWT, set to "M" in TspAptType
character(len=*), intent(in) :: dvt !< For GWT, set to "CONCENTRATION" in TspAptType
character(len=*), intent(in) :: dvu !< For GWT, set to "mass" in TspAptType
character(len=*), intent(in) :: dvua !< For GWT, set to "M" in TspAptType
! -- local
type(GwtUztType), pointer :: uztobj
!
Expand Down
9 changes: 4 additions & 5 deletions src/Model/TransportModel/tsp1apt1.f90
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ module TspAptModule
public :: apt_process_obsID12

character(len=LENFTYPE) :: ftype = 'APT'
character(len=16) :: text = ' APT'
character(len=LENVARNAME) :: text = ' APT'
character(len=LENVARNAME) :: tsptype = 'GWT' !< to be removed once TSP refactor is further sorted out

type, extends(BndType) :: TspAptType
Expand All @@ -80,7 +80,6 @@ module TspAptModule
integer(I4B), pointer :: idxprepak => null() !< budget-object index that precedes package-specific budget objects
integer(I4B), pointer :: idxlastpak => null() !< budget-object index of last package-specific budget object
real(DP), dimension(:), pointer, contiguous :: strt => null() !< starting feature concentration (or temperature)
real(DP), dimension(:), pointer, contiguous :: ktf => null() !< thermal conductivity between the apt and groundwater cell
real(DP), dimension(:), pointer, contiguous :: rfeatthk => null() !< thickness of streambed/lakebed/filter-pack material through which thermal conduction occurs
integer(I4B), dimension(:), pointer, contiguous :: idxlocnode => null() !< map position in global rhs and x array of pack entry
integer(I4B), dimension(:), pointer, contiguous :: idxpakdiag => null() !< map diag position of feature in global amat
Expand Down Expand Up @@ -1039,7 +1038,7 @@ subroutine apt_ot_dv(this, idvsave, idvprint)
end if
this%dbuff(n) = c
end do
write (text, '(a)') str_pad_left(this%depvartype, 16)
write (text, '(a)') str_pad_left(this%depvartype, LENVARNAME)
call ulasav(this%dbuff, text, kstp, kper, pertim, totim, &
this%ncv, 1, 1, ibinun)
end if
Expand Down Expand Up @@ -2280,7 +2279,7 @@ subroutine apt_fill_budobj(this, x, flowja)
nlist = this%ncv
call this%budobj%budterm(idx)%reset(nlist)
do j = 1, nlist
call this%apt_fmvr_term(j, n1, n2, q) ! kluge note: don't really need to do this in apt_fmvr_term now, since no override by uze
call this%apt_fmvr_term(j, n1, n2, q)
call this%budobj%budterm(idx)%update_term(n1, n1, q)
call this%apt_accumulate_ccterm(n1, q, ccratin, ccratout)
end do
Expand Down Expand Up @@ -2420,7 +2419,7 @@ subroutine apt_fmvr_term(this, ientry, n1, n2, rrate, &
! -- Calculate MVR-related terms
n1 = ientry
n2 = n1
if (present(rrate)) rrate = this%qmfrommvr(n1) ! presumably in terms of energy already for heat transport???
if (present(rrate)) rrate = this%qmfrommvr(n1) ! NOTE: When bringing in GWE, ensure this is in terms of energy. Might need to apply eqnsclfac here.
if (present(rhsval)) rhsval = this%qmfrommvr(n1)
if (present(hcofval)) hcofval = DZERO
!
Expand Down

0 comments on commit 7345130

Please sign in to comment.