forked from abacusmodeling/abacus-develop
-
Notifications
You must be signed in to change notification settings - Fork 145
Refactor: decrease uninitialized member values and the risk of memory leaks in abacus #5755
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 23 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
744c5b5
init variable and fix memory leak bug in module_base
A-006 8c4f7dc
fix uninit member var in module_basis
A-006 e9f4dd9
chang logic bug and uninit memeber value in the module cell
A-006 bf44f6a
chang logic bug and uninit memeber value in the module_elecstate
A-006 26d168f
chang logic bug and uninit memeber value in the module_eslover
A-006 872ea69
chang memory leak risk and uninit memeber value in the module_hamilt_…
A-006 f766db6
chang uninit memeber value in the module_hamilt_lcao
A-006 8b2776e
chang uninit memeber value in the module_hamilt_pwdft
A-006 7f9461a
fix in klist
A-006 78a3697
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] 5c416f5
fix useless assert
A-006 b27dd63
revert change in read_pp_upf100.cpp
A-006 af8000c
change uninit memeber value in module_hamilt_pw
A-006 7b2d38c
change uninit memeber value in module_hsolver
A-006 3a0b270
change uninit memeber value in module_io
A-006 70a93c2
change uninit memeber value in module_md and module_relax
A-006 cde37f0
Merge branch 'develop' into init
A-006 a9617a5
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] 4a90f3c
Merge branch 'develop' into init
A-006 b5c3ac2
update nnr init data
A-006 bcf89ff
fix uninit member value
A-006 34a92ad
Merge branch 'develop' into init
A-006 6d04a65
Merge branch 'develop' into init
A-006 d88f6f3
update value in elecstate_energy.cpp
A-006 20267ef
add init parameter for construct in sto_func
A-006 9237bd2
add value in the construct file
A-006 088428c
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] 8329a97
change magnetism.cpp
A-006 3d98185
Merge branch 'develop' into init
A-006 e6ecce4
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] 60efe2d
modify logic of elecstate_energy.cpp
A-006 1969b6a
Merge branch 'develop' into init
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
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
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
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
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
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
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 |
|---|---|---|
|
|
@@ -9,4 +9,7 @@ FAtom::FAtom() | |
| z = 0.0; | ||
| type = 0; | ||
| natom = 0; | ||
| cell_x = 0; | ||
| cell_y = 0; | ||
| cell_z = 0; | ||
| } | ||
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.