stfc / RegentParticleDSL

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

Code refactoring - Neighbour search algorithms #76

Closed LonelyCat124 closed 3 years ago

LonelyCat124 commented 3 years ago

At the moment there is a lot of duplicated code in the neighbour search algorithms. The things that need doing are (at least):

I want to add this in while I'm currently adding in reduction clauses if possible, once I've tested that they work correctly.

LonelyCat124 commented 3 years ago

Its also possible task generated code is independent of periodicity - may be worth a future look.

Edit: This would require custom neighbour distance code/quote but could be doable at some point.

LonelyCat124 commented 3 years ago

There is a start for the implementation for the last 3 bullet points now in the reduction_priv branch. Hopefully once done this will massively cut down on code replication.

LonelyCat124 commented 3 years ago

Every thing is now done and tested for the firrst 3 bullet points.

LonelyCat124 commented 3 years ago

This is done with improved performance also