pypr / pysph

A framework for Smoothed Particle Hydrodynamics in Python
http://pysph.readthedocs.io
Other
441 stars 137 forks source link

Reuse interpolators instead of creating afresh. #371

Closed prabhuramachandran closed 1 year ago

prabhuramachandran commented 1 year ago

Earlier this was not a problem but a recent PR has introduced group names, so each time the interpolator is constructed, it creates new Equation groups which have their own names and each name is unique, so this means the compilation is performed on each data file being processed. I have changed this for now to reuse the interpolator while post-processing.