forked from abacusmodeling/abacus-develop
-
Notifications
You must be signed in to change notification settings - Fork 161
Fix HR output in tddft #4150
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
Fix HR output in tddft #4150
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
6fc1a30
outHR
ESROAMER 90f79bf
Merge pull request #1 from ESROAMER/master
ESROAMER ca7866f
Delete source/LM
ESROAMER f33c58e
Delete abacus_cmake.sh
ESROAMER 7ed12d2
Update H_TDDFT_pw.h
ESROAMER bb581fa
Update td_ekinetic_lcao.cpp
ESROAMER 6c2594c
Merge branch 'develop' into develop
ESROAMER 8f9be19
update HR output
ESROAMER 65371b6
Delete abacus_cmake.sh
ESROAMER f1eb009
Delete source/LM
ESROAMER b6ed202
Update H_TDDFT_pw.h
ESROAMER 344ba99
Merge branch 'develop' into master
ESROAMER d9540b5
Merge pull request #2 from ESROAMER/master
ESROAMER 1aa0619
Update LCAO_matrix.cpp
ESROAMER 4e765a2
Update Makefile.Objects
ESROAMER 73f7f20
Update esolver_ks_lcao_tddft.cpp
ESROAMER 2ac0517
Merge branch 'deepmodeling:develop' into develop
ESROAMER dc78f33
update
ESROAMER 580ec6f
Delete abacus_cmake.sh
ESROAMER fad3c08
Merge branch 'develop' into master
ESROAMER 9aca7c0
Merge pull request #3 from ESROAMER/master
ESROAMER e9d92dd
fix out_mat_R
ESROAMER c20a577
Merge pull request #4 from ESROAMER/master
ESROAMER 36a41bb
Update for_testing_input_conv.h
ESROAMER ceed678
Merge branch 'develop' into develop
mohanchen f8e8a22
remove GlobalC and GlobalV int td operators
ESROAMER 2f6f6ca
Merge pull request #5 from ESROAMER/master
ESROAMER f157130
Merge branch 'develop' into develop
ESROAMER 3ed1017
Merge branch 'deepmodeling:develop' into develop
ESROAMER 06cc01b
Merge branch 'develop' into develop
ESROAMER d83902a
Merge branch 'develop' into develop
mohanchen 19d7c4d
Merge branch 'develop' into develop
ESROAMER 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 |
|---|---|---|
|
|
@@ -133,4 +133,4 @@ class H_TDDFT_pw : public PotBase | |
|
|
||
| } // namespace elecstate | ||
|
|
||
| #endif | ||
| #endif | ||
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 |
|---|---|---|
|
|
@@ -7,6 +7,7 @@ if(ENABLE_LCAO) | |
| norm_psi.cpp | ||
| propagator.cpp | ||
| upsi.cpp | ||
| td_velocity.cpp | ||
| ) | ||
|
|
||
| add_library( | ||
|
|
||
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 |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| #include "module_base/timer.h" | ||
| #include "td_velocity.h" | ||
|
|
||
|
|
||
| bool TD_Velocity::tddft_velocity = false; | ||
| bool TD_Velocity::out_mat_R = false; | ||
| TD_Velocity* TD_Velocity::td_vel_op = nullptr; | ||
|
|
||
| TD_Velocity::TD_Velocity() | ||
| { | ||
| return; | ||
| } | ||
| TD_Velocity::~TD_Velocity() | ||
| { | ||
| this->destroy_HS_R_td_sparse(); | ||
| } | ||
|
|
||
| void TD_Velocity::destroy_HS_R_td_sparse(void) | ||
| { | ||
| std::map<Abfs::Vector3_Order<int>, std::map<size_t, std::map<size_t, std::complex<double>>>> empty_HR_sparse_td_vel_up; | ||
mohanchen marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| std::map<Abfs::Vector3_Order<int>, std::map<size_t, std::map<size_t, std::complex<double>>>> empty_HR_sparse_td_vel_down; | ||
| HR_sparse_td_vel[0].swap(empty_HR_sparse_td_vel_up); | ||
| HR_sparse_td_vel[1].swap(empty_HR_sparse_td_vel_down); | ||
| } | ||
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.