rniswon / mfnwt

MODFLOW-NWT - Version: 1.1.0 Newton Formulation for MODFLOW-2005 For more information go to http://water.usgs.gov/ogw/modflow-nwt
4 stars 7 forks source link

LMT8: Doesn't correctly account for negative values of FLOW in SFR input #14

Closed emorway-usgs closed 6 years ago

emorway-usgs commented 6 years ago

When using PACKAGE_FLOW SFR keyword option in the LMT package, code will write reach-by-reach flows to the linker file for MT3D-USGS to solve the surface-water network distributed concentrations. There seems to be an issue when negative values are specified for FLOW in the SFR input package. Negative values are not getting written to the linker file.

emorway-usgs commented 6 years ago

Minor adjustment to SFRBD for correcting how the index variable that counts the number of connections was made; also, minor adjustment to LMT8 for performing the same operation when the user specifies a negative value for FLOW in the SFR input file as when they specify positive values for flow. Verified with Vivek that the existing code on the MT3D-USGS side properly accounts for the new terms that will be written to the linker file with this fix.