@@ -127,8 +127,6 @@ subroutine ssm_df(this)
127127 use MemoryManagerModule, only: mem_setptr
128128 ! -- dummy
129129 class(TspSsmType) :: this ! < TspSsmType object
130- ! -- local
131- ! -- formats
132130 !
133131 ! -- Return
134132 return
@@ -147,13 +145,12 @@ subroutine ssm_ar(this, dis, ibound, cnew)
147145 class(DisBaseType), pointer , intent (in ) :: dis ! < discretization package
148146 integer (I4B), dimension (:), pointer , contiguous :: ibound ! < GWT model ibound
149147 real (DP), dimension (:), pointer , contiguous :: cnew ! < GWT model dependent variable
150- ! -- local
151148 ! -- formats
152149 character (len=* ), parameter :: fmtssm = &
153150 " (1x,/1x,'SSM -- SOURCE-SINK MIXING PACKAGE, VERSION 1, 8/25/2017', &
154151 &' INPUT READ FROM UNIT ', i0, //)"
155152 !
156- ! --print a message identifying the storage package.
153+ ! -- print a message identifying the storage package.
157154 write (this% iout, fmtssm) this% inunit
158155 !
159156 ! -- store pointers to arguments that were passed in
@@ -197,7 +194,6 @@ end subroutine ssm_ar
197194 ! ! are read.
198195 ! <
199196 subroutine ssm_rp (this )
200- ! -- modules
201197 ! -- dummy
202198 class(TspSsmType) :: this ! < TspSsmType object
203199 ! -- local
@@ -227,15 +223,13 @@ end subroutine ssm_rp
227223 ! ! then ssm concenrations must be interpolated for the time step.
228224 ! <
229225 subroutine ssm_ad (this )
230- ! -- modules
231226 ! -- dummy
232227 class(TspSsmType) :: this ! < TspSsmType object
233228 ! -- local
234229 integer (I4B) :: ip
235230 type (GwtSpcType), pointer :: ssmiptr
236231 integer (I4B) :: i
237232 integer (I4B) :: node
238- ! ------------------------------------------------------------------------------
239233 !
240234 ! -- Calculate total number of existing flow boundaries. It is possible
241235 ! that a node may equal zero. In this case, the bound should be
@@ -315,23 +309,24 @@ subroutine ssm_term(this, ipackage, ientry, rrate, rhsval, hcofval, &
315309 !
316310 ! -- If qbnd is positive, then concentration represents the inflow
317311 ! concentration. If qbnd is negative, then the outflow concentration
318- ! is set equal to the simulated cell concentration
312+ ! (or temperature) is set equal to the simulated cell's concentration
313+ ! (or temperature).
319314 if (qbnd >= DZERO) then
320315 omega = DZERO ! rhs
321316 else
322317 ctmp = this% cnew(n)
323318 omega = DONE ! lhs
324319 if (ctmp < DZERO) then
325- omega = DZERO ! concentration is negative, so set mass flux to zero
320+ omega = DZERO ! concentration/temperature is negative, so set mass flux to zero
326321 end if
327322 end if
328323 else
329324 !
330325 ! -- lauxmixed value indicates that this is a mixed sink type where
331- ! the concentration value represents the injected concentration if
332- ! qbnd is positive. If qbnd is negative, then the withdrawn water
333- ! is equal to the minimum of the aux concentration and the cell
334- ! concentration.
326+ ! the concentration value represents the injected concentration (or
327+ ! temperature) if qbnd is positive. If qbnd is negative, then the
328+ ! withdrawn water is equal to the minimum of the aux concentration
329+ ! (or temperature) and the cell concentration (or temperature) .
335330 if (qbnd >= DZERO) then
336331 omega = DZERO ! rhs (ctmp is aux value)
337332 else
@@ -386,11 +381,11 @@ subroutine get_ssm_conc(this, ipackage, ientry, nbound_flow, conc, &
386381 ! -- local
387382 integer (I4B) :: isrctype
388383 integer (I4B) :: iauxpos
389-
384+ !
390385 conc = DZERO
391386 lauxmixed = .false.
392387 isrctype = this% isrctype(ipackage)
393-
388+ !
394389 select case (isrctype)
395390 case (1 , 2 )
396391 iauxpos = this% iauxpak(ipackage)
@@ -411,7 +406,6 @@ end subroutine get_ssm_conc
411406 ! ! updating the a matrix and right-hand side vector.
412407 ! <
413408 subroutine ssm_fc (this , matrix_sln , idxglo , rhs )
414- ! -- modules
415409 ! -- dummy
416410 class(TspSsmType) :: this
417411 class(MatrixBaseType), pointer :: matrix_sln
@@ -453,11 +447,10 @@ end subroutine ssm_fc
453447 ! > @ brief Calculate flow
454448 ! !
455449 ! ! Calculate the resulting mass flow between the boundary and the connected
456- ! ! GWT model cell. Update the diagonal position of the flowja array so that
457- ! ! it ultimately contains the solute balance residual.
450+ ! ! GWT/GWE model cell. Update the diagonal position of the flowja array so
451+ ! ! that it ultimately contains the solute balance residual.
458452 ! <
459453 subroutine ssm_cq (this , flowja )
460- ! -- modules
461454 ! -- dummy
462455 class(TspSsmType) :: this ! < TspSsmType object
463456 real (DP), dimension (:), contiguous, intent (inout ) :: flowja ! < flow across each face in the model grid
@@ -735,7 +728,6 @@ subroutine allocate_scalars(this)
735728 use MemoryManagerModule, only: mem_allocate, mem_setptr
736729 ! -- dummy
737730 class(TspSsmType) :: this ! < TspSsmType object
738- ! -- local
739731 !
740732 ! -- allocate scalars in NumericalPackageType
741733 call this% NumericalPackageType% allocate_scalars()
@@ -786,7 +778,6 @@ end subroutine allocate_arrays
786778 ! ! Read and set the SSM Package options
787779 ! <
788780 subroutine read_options (this )
789- ! -- modules
790781 ! -- dummy
791782 class(TspSsmType) :: this ! < TspSsmType object
792783 ! -- local
@@ -868,8 +859,6 @@ subroutine read_sources_aux(this)
868859 logical :: isfound, endOfBlock
869860 logical :: pakfound
870861 logical :: lauxmixed
871- ! -- formats
872- ! -- data
873862 !
874863 ! -- initialize
875864 isfound = .false.
@@ -971,8 +960,6 @@ subroutine read_sources_fileinput(this)
971960 logical :: isfound, endOfBlock
972961 logical :: pakfound
973962 logical :: lauxmixed
974- ! -- formats
975- ! -- data
976963 !
977964 ! -- initialize
978965 isfound = .false.
@@ -1052,7 +1039,7 @@ subroutine read_sources_fileinput(this)
10521039 !
10531040 ! -- Store the source type (3 or 4)
10541041 this% isrctype(ip) = isrctype
1055-
1042+ !
10561043 end do
10571044 write (this% iout, ' (1x,a)' ) ' END PROCESSING FILEINPUT'
10581045 else
@@ -1135,12 +1122,12 @@ subroutine set_ssmivec(this, ip, packname)
11351122 call this% parser% GetString(filename)
11361123 inunit = getunit()
11371124 call openfile(inunit, this% iout, filename, ' SPC' , filstat_opt= ' OLD' )
1138-
1125+ !
11391126 ! -- Create the SPC file object
11401127 ssmiptr = > this% ssmivec(ip)
11411128 call ssmiptr% initialize(this% dis, ip, inunit, this% iout, this% name_model, &
11421129 trim (packname))
1143-
1130+ !
11441131 write (this% iout, ' (4x, a, a, a, a, a)' ) ' USING SPC INPUT FILE ' , &
11451132 trim (filename), ' TO SET ' , trim (this% depvartype), &
11461133 ' S FOR PACKAGE ' , trim (packname)
0 commit comments