Closed emorway-usgs closed 5 years ago
fixed with commit 0c3902f
This recently became an issue again. Turns out the previous fix was incomplete. There are two cases that need to be handled:
As commented in commit 65cba36, both test models seem to be OK now. Attaching the test model passed along by @jwhite79 in case it is needed for future reference. The other test model referenced in this issue, "SFT_CrnkNic" can be found on the MT3D-USGS repo. JWub_LinkerTest.zip
This is also related to issue #19 on MT3D-USGS
Currently, the variable 'qa' is the flow at the upstream end of a reach. This presents a problem when the user specifies a negative value for FLOW in the SFR input (item 4b in the Online Guide to MF-NWT) because in the code below, a negative value is being sent in causing a negative cross-sectional area to be calculated (but actually creates a floating point error). Recall that a negative value signifies a direct withdraw from the channel (and that water is removed from the model). We want to instead send in the flow at the end of the reach to CALC_XSA
STRM(31,l) = CALC_XSA(qa,qcnst,cdpth,awdth,fdpth,bwdth,
+ icalc,slope,istsg,nreach,itstr,width,
+ depthtr)