Skip to content
Snippets Groups Projects
Commit b569a893 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Merge branch 'DOPAIR2_improvements' into 'master'

Reverse the loop to find the exit condition in DOPAIR2() to go from the centre to the outside

Follows @jwillis' suggestion in #362.

Also implements an early exit in the outer loop. If no particle can be in range any more (based on hi_max and hj_max), no need to keep checking the next particles.

See merge request !422
parents 51a666ef e586e284
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment