stfc / RegentParticleDSL

A particle-method DSL based on Regent programming language
MIT License
1 stars 0 forks source link

Non periodic neighbour search #66

Closed LonelyCat124 closed 3 years ago

LonelyCat124 commented 3 years ago

Add a non-periodic neighbour search implementation useful for SPH schemes. For now we're not handling particles who fall out of the box (as we're assuming an SPH boundary condition will be present to prevent this from happening).

I think this time it will be worth trying to combine the 2D/3D neighbour search environment using something like set_dimensionality call, with a default of 3D.

LonelyCat124 commented 3 years ago

Added - dimensionality is controlled by which header is imported (2d vs 3d)