Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhughes-usgs committed Sep 24, 2024
1 parent 4d45b7f commit f12d474
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/Model/GroundWaterFlow/submodules/gwf-sfr-transient.f90
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@
real(DP) :: dd2

weight = this%storage_weight
dq = this%deps !DEM6 !DEM4 !this%deps
qtol = dq * DTWO !1e-9 !dq * DTWO
dq = this%deps
qtol = dq * DTWO

celerity = DZERO
qgwf = DZERO

qlat = (qr + qro - qe) / this%length(n)
qlat = qr + qro - qe

this%usinflow(n) = qu + qi + qfrommvr

Expand Down Expand Up @@ -98,7 +98,7 @@
end if

! calculate maximum wave speed and courant number
q = qc + qlat - qgwf
q = qc + qlat - qgwf
call this%sfr_calc_reach_depth(n, q, d)
a = this%calc_area_wet(n, d)
if (d > DZERO) then
Expand All @@ -107,8 +107,11 @@
a2 = this%calc_area_wet(n, d2)
celerity = (q2 - q) / (a2 - a)
courant = celerity * delt / this%length(n)
! write(*,*) this%length(n), courant * delt
end if

qlat = qlat / this%length(n)

number_picard = this%maxsfrpicard
if (igwfconn == 1) then
number_picard = this%maxsfrpicard
Expand Down Expand Up @@ -162,7 +165,7 @@
qsrc, this%length(n), weight, delt, &
courant)

if (abs(delq) < qtol) then ! .and. abs(residual_final) < qtol) then
if (abs(delq) < qtol .and. abs(residual_final) < qtol) then
exit newton
end if

Expand Down

0 comments on commit f12d474

Please sign in to comment.