Flopy Error When Loading USG Bas6 package with Externally read Starting Heads (STRT) #1781
-
Hi, I'm trying to load a mf-usg model that reads initial heads from an external binary head file. The bas6 package has been generated from Groundwater Vistas, and it structured in the followig way:
Which shows that the STRT array is read from unit 44. Now up to here what puzzles me is that the minus sign preceding the unit file number. I have searched in all the MODFLOW (2000 - MF6) I/O manuals and can not find a specific reference to thye preceding minus sign. The closest idea I got is a ChatGPT answer that states the minus sign is a FORTRAN convention for output files. If I remove that minus sign the reading (U2DREL?) process fails. The ultimate problem is that the standard flopy I'll appreciate any tips.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi, not sure this is "the answer" or not, but I find that including the negative sign in the name file works. |
Beta Was this translation helpful? Give feedback.
-
Hi, I asked Jim Rumbaugh about this, and he tells me that the minus sign tells Modflow it is a binary file. As to why other otuput binary files Nunits in other packages are not negative (such as the hds and cbb files), it is because this minus sign is hardcoded in the modflow bas package reading. I guess this is something worth catching when reading heads from external files, and wonder if it is a transversal MODFLOW convention or only applies to MF-USG. Should I create flopy issue from this? |
Beta Was this translation helpful? Give feedback.
Hi @javgs-bd I'm pretty confident this would also affect mfnwt, mf2005, etc too. I'm surprised it's not been catered for though. It may be worth checking through the examples / autotests for any cases with external binary input read examples (with negative sign convention), and see what their unit number is in the nam file / how / if they are dealt with. It would be an easy fix to trap for anyway, but maybe check it is not dealt with somehow before raising an issue.