ECP-WarpX/WarpX

Function to get particle cell index.

roelof-groenewald opened this issue · 1 comments

It would be useful to have a function (maybe in ParticleUtils.cpp) that returns the cell indices for a given particle. This would allow cleaning up code in several places (for example in TemperateFunctor.cpp.

Originally posted by @roelof-groenewald in #4942 (comment)

I can try and tackle this early next week

EDIT: JK, made a PR now