parallelize Flopy GWF model with MF6Splitter #2316
-
Hey there, I am trying to use Flopy to run a MODFLOW6 model in parallel. I managed to split my model into many different models with the function MF6Splitter and reassemble the output by following this guide: https://flopy.readthedocs.io/en/latest/Notebooks/mf6_parallel_model_splitting_example.html. My aim is to use multiple processors on my Windows laptop. However, my MODFLOW6 model appears to run in sequential mode, even though I followed the guide linked above. Any help would be greatly appreciated! Cheers, Douwe My code:
Output in console:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
You need to
You can also get the parallel version of MODFLOW for Windows using flopy: flopy.utils.get_modflow(
":python", repo="modflow6-nightly-build", ostag="win64par", force=True
) The example above is downloading the nightly build in the python environment running the script/notebook. You can also use |
Beta Was this translation helpful? Give feedback.
-
Hey @jdhughes-usgs, thanks a lot for helping me. I have implemented the changes you suggested. I am definitely a step further, but unfortunately I encountered an OSError. I implemented your suggestions as follows:
Where I changed ostag="win64par" to ostag="win64", because of the following error: My new full code is:
New console output
|
Beta Was this translation helpful? Give feedback.
We have seen problems when people have run models from OneDrive locations. I am not sure if this is the issue here. We have run the compiled executable on Windows 10 and 11 OSs without issues.