-
Notifications
You must be signed in to change notification settings - Fork 349
Closed
Description
Hi,
I'm using flopy (develop branch) to build, write and load an mf6 disu model, with water mover package. On loading mvr, I receive this error:
MFDataException: An error occurred in data element "perioddata" model "mymodel" package "mvr". The error occurred while setting array data in the "_build_recarray" method.
Additional Information:
(1) An error occurred when storing data "perioddata" in a recarray. perioddata data is a one or two dimensional list containing the variables "<pname1> <id1> <pname2> <id2> <mvrtype> <value>" (some variables may be optional, see MF6 documentation), but data "[('drn', (0,), 'maw', (0,), 'factor', 1.0), ('drn', (1,), 'maw', (0,), 'factor', 1.0), ('drn', (2,), 'maw', (0,), 'factor', 1.0)]" was supplied.
(2) Error occurred while loading data "perioddata" in block "period" from file "temp\t504_mf6disu\.\mymodel.mvr".
I have replicated the issue with a modified form of autotest t504 test_mf6disu(). See here.
If I change the mvr file perioddata id1 and id2 variables to be tuples (in the mvr modflow file...eg "(1,)" rather than "1"), flopy will load it ok. Mf6 however spits it on this as I would expect. Flopy writes the mvr correctly (no tuples), but as far as I can tell it is expecting some unusual recarray shape on load for the perioddata item.
Advice appreciated. Thanks a lot.
Metadata
Metadata
Assignees
Labels
No labels