Skip to content

Conversation

@jinzx10
Copy link

@jinzx10 jinzx10 commented Nov 25, 2024

This PR is part of the grid integration (based on atom-centered overlapping grid).

In this PR, a batching algorithm based on https://people.eecs.berkeley.edu/~wkahan/MathH110/Separate.pdf is implemented, which recursively uses cut planes to divide grid points into two subsets using the "MaxMin" algorithm, until the number of points in each subset (batch) is no more than m_thr.

A preview of this algorithm is as follows:
batch

In the presence of MPI, an extra hashing is necessary to distribute grid points into different processes before applying this maxmin algorithm. This will be implemented in a future PR.

@mohanchen mohanchen added the Features Needed The features are indeed needed, and developers should have sophisticated knowledge label Nov 25, 2024
@WHUweiqingzhou WHUweiqingzhou merged commit 6df5c6d into deepmodeling:develop Nov 26, 2024
14 checks passed
Fisherd99 pushed a commit to Fisherd99/abacus-BSE that referenced this pull request Mar 31, 2025
* initial commit

* continue...

* crude test...

* continue...

* complete!

* more test

* small fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Features Needed The features are indeed needed, and developers should have sophisticated knowledge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants