ansys / pymapdl

Pythonic interface to MAPDL
https://mapdl.docs.pyansys.com
MIT License
423 stars 120 forks source link

Add server exit to python del mapdl #3394

Open dkowollik opened 1 week ago

dkowollik commented 1 week ago

Description of the feature

Hi, the server is not shut down, once a python del operator is used on the mapdl instance. Can you please add this? PyACP makes use of the weakref.finalize from python stdlib. With this in place, the callback is executed, if the instance is not referenced anymore or if the python process is finished.

Steps for implementing the feature

...

Useful links and references

...

germa89 commented 1 week ago

Hi @dkowollik

Thank you for this! I should have a look in the next days.