thliebig / openEMS

openEMS is a free and open-source electromagnetic field solver using the EC-FDTD method.
http://openEMS.de
GNU General Public License v3.0
459 stars 156 forks source link

MPI issue with python interface #64

Closed matthuszagh closed 4 years ago

matthuszagh commented 4 years ago

I'm experiencing an openmpi issue when using the python interface. I'm getting the following error message:

Create FDTD operator (compressed SSE + multi-threading)
*** The MPI_Comm_size() function was called before MPI_INIT was invoked.
*** This is disallowed by the MPI standard.
*** Your MPI job will now abort.

This occurs when attempting to call FDTD.Run(). For instance, this happens if I run

$ python Simple_Patch_Antenna.py

where Simple_Patch_Antenna.py is from the openems python tutorials directory. I built openems with MPI support and mpirun is in PATH.

Have you encountered this? I haven't experienced any issues when using the matlab/octave interface.

thliebig commented 4 years ago

No, but I never tried openmpi support with the python interface. Try to disable the MPI support it is not really useful in any case ;)

matthuszagh commented 4 years ago

That worked. I'll close this. Thanks so much for the quick reply @thliebig!