Skip to content

Improved neighborhoods#7

Merged
meliao merged 16 commits intomainfrom
smaller_nbhd
Apr 15, 2026
Merged

Improved neighborhoods#7
meliao merged 16 commits intomainfrom
smaller_nbhd

Conversation

@meliao
Copy link
Copy Markdown
Owner

@meliao meliao commented Apr 9, 2026

This PR changes the neighborhood shape from squares to circles. This means each bin has fewer neighboring bins, and therefore get_addsub() requires a bit less computation. The difference is more apparent in 3D.

The radius (in bin index space) for near interactions is set to be ceil(proxy_rad / (nbinpts * dx)), which means that any bin intersecting the proxy surface is included as a neighbor.

@meliao meliao marked this pull request as ready for review April 9, 2026 20:52
@meliao meliao merged commit 9b884b0 into main Apr 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant