MODPATH create_mp7 with mpbas #2339
-
Hi all, I have this flopy code snippet that sets up a modpath simulation. I add a porosity to the simulation through an array called ' porosity' with Modpath7Bas, after setting up the simulation with create_mp7
However, when I run this code, I get this error: flopy/mbase.py:668: UserWarning: Two packages of the same type, Replacing existing 'MPBAS' package. This results from me using Modpath7Bas. I did not expect this warning and wasn't able to find a good example on how to otherwise set up this problem. It seems that it does not affect calculation results, which have an output that I would expect with changing porosity in my model. However, should I be worried about this warning and are there ways to work around it? If you have a good advise or a relevant section in the documentation or in these discussions that I missed, I'd be glad to get that from you! Looking forward to hearing your advice, Floris |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi Floris, I think it's because Lines 463 to 509 in f96d173 Maybe it's a good idea to include |
Beta Was this translation helpful? Give feedback.
Hi Floris,
I think it's because
Modpath7.create_mp7
creates already aModpath7Bas
object internally. Perhaps a possible solution is to copy the implementation insidecreate_mp7
(as linked below) to your script, then passingporosity
to theModpath7Bas
objectflopy/flopy/modpath/mp7.py
Lines 463 to 509 in f96d173