OpenSeesPy
OpenSeesPy copied to clipboard
About OpenSees Parallel
Hi, thanks for your excellent work, I have learned quite a lot from that.
However, when I was trying to follow the instructions about parallel processing with openseespy on https://openseespydoc.readthedocs.io/en/latest/src/hello.html, there is something unpleasant pops out. The function getNP seems doesn't work (always return 1) and then getPID always returns 0. I am not sure if there are some configurations that need to be set at first since when I was running parallel codes with the original OpenseesMP on another PC, a similar problem also exists. Have you encountered the same problem before?
I've encountered the very same problem even after I've switched my code from Windows to WSL. After some attempts, I guess it might be due to the installation method of MPI.
The wrong case: I installed MPI with conda install mpi
.
The right case: When I use conda install mpich
or sudo apt install mpich
instead, it works.