Memory accumulation in python kernel
Hello, thanks a lot for the effort you put into gmsh. I´m working with the python api for a while now and really enjoy beeing able to automatically set up large simulation models or use it in design optimizations.
I have come across a memory problem when calling gmsh multiple times during one python session. In the attached minimal example I emulate the behaviour by meshing the same model multiple times. The memory seems to accumulate after each mesh generation process until about 12Gb of memory are used by the python kernel at the end. At a certain point restarting the python kernel is therefore inevitable.
Is there a way to explicitly free up the memory on finalizing (gmsh.finalize()) each gmsh session? Thanks!