MODFLOW-USGS / mf2005

MODFLOW-2005 development repository
7 stars 3 forks source link

SFR bugs from Mike Toews #20

Closed langevin-usgs closed 7 years ago

langevin-usgs commented 7 years ago

Received this email from Mike Toews.

Hi All,

It seems my patch was a bit too early, as I've identified some issues reading the values from Data Set 1c, where the "END IF" statement needed to be moved. I've also included some additional printing of the information that was read. However, it should probably be modified to show the values of WEIGHT and FLWTOL for non-transient routing simulations too.

Cheers, Mike Toews Groundwater Modeller | Ph: +64 4 570 4021

From: Mike Toews Sent: Wednesday, 18 January 2017 15:48 To: 'langevin@usgs.gov' langevin@usgs.gov; 'rniswon@usgs.gov' rniswon@usgs.gov Subject: Bugs with GWF2SFR7AR

Hi Chris and Richard,

I've found a few low-level bugs with GWF2SFR7AR in MODFLOW-2005 and NWT (possibly other versions?).

From the documentation, Data Set 1a may have either REACHINPUT or TRANSROUTE keywords (and the code also suggests that it could be one or the other, with ITRFLG.EQ.1 .OR. IRFG.EQ.1). However, as implemented, TRANSROUTE cannot be activated without REACHINPUT, since lloc is not reset to 1.

I've attached patches for MF2005 and NWT that fixes this up, a formatting error and a few typos. I've also removed a second call to UPARLSTAL, which I don't think is needed.

Cheers, Mike Toews | Groundwater Modeller

GNS Science | Te Pū Ao 1 Fairway Drive, Avalon 5010, PO Box 30368, Lower Hutt 5040, New Zealand Ph: +64 4 570 4021 | https://www.gns.cri.nz | Email: m.toews@gns.cri.nz

gwf2sfr7_NWT.f.diff.zip

langevin-usgs commented 7 years ago

Rich fixed this.