forked from abacusmodeling/abacus-develop
-
Notifications
You must be signed in to change notification settings - Fork 145
Refactor:remove MPI part funcs of ucell #5810
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 10 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
9f7d04b
modify bcast ucell and add func for ucell
A-006 68b52e5
delete bcast_ucell2
A-006 0350677
modify bcast name
A-006 da68912
add unit test for the bcast
A-006 cfc0744
add exx for compile
A-006 0dc4eaf
Merge branch 'deepmodeling:develop' into ucell22
A-006 6866397
modify back atom_tau
A-006 3b80fab
add bcast atom pseudo
A-006 8170924
fix bug in the bcast
A-006 1989a9d
Merge branch 'deepmodeling:develop' into ucell22
A-006 f11ff14
Merge branch 'develop' into ucell22
A-006 a91a5e4
change string* to vector<string>
A-006 80f5933
fix bug in the file
A-006 4fba578
Merge branch 'develop' into ucell22
A-006 f0c176f
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] 14f2227
fix bug in compile
A-006 b811a7e
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] 29c44c6
fix compile bug in deepks test
A-006 08f559d
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] 23b2056
fix bug in ucell test
A-006 5a1f69b
Merge branch 'develop' into ucell22
A-006 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,50 @@ | ||
| #ifndef BCAST_CELL_H | ||
| #define BCAST_CELL_H | ||
|
|
||
| #include "module_cell/unitcell.h" | ||
| namespace unitcell | ||
| { | ||
| /** | ||
| * @brief broadcast the tau array of the atoms | ||
| * | ||
| * @param atoms: the atoms to be broadcasted [in/out] | ||
| * @param ntype: the number of types of the atoms [in] | ||
| */ | ||
| void bcast_atoms_tau(Atom* atoms, | ||
| const int ntype); | ||
|
|
||
| /** | ||
| * @brief broadcast the pseduo of the atoms | ||
| * | ||
| * @param atoms: the atoms to be broadcasted [in/out] | ||
| * @param ntype: the number of types of the atoms [in] | ||
| */ | ||
| void bcast_atoms_pseudo(Atom* atoms, | ||
| const int ntype); | ||
| /** | ||
| * @brief broadcast the lattice | ||
| * | ||
| * @param lat: the lattice to be broadcasted [in/out] | ||
| */ | ||
| void bcast_Lattice(Lattice& lat); | ||
|
|
||
| /** | ||
| * @brief broadcast the magnetism | ||
| * | ||
| * @param magnet: the magnetism to be broadcasted [in/out] | ||
| * @param nytpe: the number of types of the atoms [in] | ||
| */ | ||
| void bcast_magnetism(Magnetism& magnet, | ||
| const int ntype); | ||
|
|
||
| /** | ||
| * @brief broadcast the unitcell | ||
| * | ||
| * @param ucell: the unitcell to be broadcasted [in/out] | ||
| */ | ||
| void bcast_unitcell(UnitCell& ucell); | ||
|
|
||
|
|
||
| } | ||
|
|
||
| #endif // BCAST_CELL_H |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.