-
Notifications
You must be signed in to change notification settings - Fork 322
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Potential bug when loading USG model #1072
Comments
Just want to clarify, the USGS example I referred above is an USG model when I downloaded the USG program from USGS website. The version is mfusg1_5 and under the folder called "test". "..\mfusg1_5\test". |
I've been meaning to fix this. I'll have a crack if no-one else does. |
Hey @cnicol-gwlogic, would be great if you could take a crack at this! Thank you. Feel free to ping me if you want to discuss. |
After briefly looking at the error message, the problem appears to be in the checker. I believe there is a simple way to turn off the checker during load (check=False). This would be worth a shot, though I suspect there could be other issues. |
No worries @langevin-usgs - good point, check=False is the quick/easy work-around. I submitted a PR regardless, as I occasionally come across problems related to this. EVT/RCH loading still needs to be addressed for mfusg models, but this needs a bit of thought. Cheers. |
@langevin-usgs @cnicol-gwlogic Thank you both for the tips and help. set check = False works for me when I try it on USGS usg model example. For my USG model, I had to set Forgive = True as well and then it will load model successfully. I do have a CLN package, wonder if that's why? |
* mfusg file checking did not previously work * add get_neighbors function clause for mfusg unstructured grids (in check class, but not mf6check) * add modflow/mfdisu/_get_neighboring_nodes function * fix pakbase/_check_flowp hk and vka for unstructured cases * modify modflow/mfbas/check function to cater for mfusg unstructured grids, in addition to structured modflow grids * modify t016_test.py to cater for modflow/mfdisu/_get_neighboring_nodes function * pakbase sidestep np jagged array deprecation warning * add mfusg load tests to t016 Co-authored-by: Mike Taves <mwtoews@gmail.com> Resolves #1072
Hey Team,
I tried to use the flopy.modflow.Modflow.load to load my existing robust USG model. It gave me error says " not enough values to unpack (expected 3, got 1)" and screenshot below. I further confirmed the error using USGS test example - folder '01B_nestedgrid_gnc'. Could you please help? Thanks!
Jack Wang
The text was updated successfully, but these errors were encountered: