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
427 stars 150 forks source link

Issue with recalling the run function #59

Closed khashabri closed 4 years ago

khashabri commented 4 years ago

Hello guys, the following line in the run function (python interface) is useless and it causes an error when calling run(..., cleanup=True) multiple times in the same script. https://github.com/thliebig/openEMS/blob/cc5a709e743fa246474c1d071a8beb0f77027a82/python/openEMS/openEMS.pyx#L431 Solution: this line should be deleted, and the c++ file should be recompiled.

thliebig commented 4 years ago

Well yeah, makes sense. Do you want to commit a patch and pull request for it? ;)