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
413 stars 146 forks source link

No multithreading in Mur ABC? #122

Open gadiLhv opened 11 months ago

gadiLhv commented 11 months ago

At the end of Engine_Ext_Mur_ABC::Engine_Ext_Mur_ABC the number of threads is set to 1

SetNumberOfThreads(1);

https://github.com/thliebig/openEMS/blob/782a7381bf8fb7e2100fa1358f076a1085d21bdd/FDTD/extensions/engine_ext_mur_abc.cpp#L26C1-L62C2

I am not sure if this overwritten somewhere in the code, or this means that multi-threading is disabled for the BC.

thliebig commented 11 months ago

I would have to check more closely but I think that this indeed means that this BC for this one boundary only utilizes one thread. But this BC is not very numerical expensive, thus I'm not sure how much gain multi-threading would give here...