Conversation
merge hytd
merge hytd
Owner
|
The process here is too long for me to carefully check everything. I suggest replacing Hexx with the full Hamiltonian output velocity matrix and comparing it with the velocity matrix from pyatb for a benchmark. |
ESROAMER
reviewed
Apr 24, 2025
| std::complex<double> kphase = std::complex<double>(cosp, sinp); | ||
|
|
||
| tmp.find_R(r_index); | ||
| tmp.add_to_matrix(hk, ncol, kphase * ModuleBase::IMAG_UNIT * std::complex<double>(dR[ix]), hk_type); |
Owner
There was a problem hiding this comment.
What is kphase * ModuleBase::IMAG_UNIT * std::complex<double>(dR[ix]) for?
Author
There was a problem hiding this comment.
source/module_ri/RI_2D_Comm.h
Outdated
| TK* hk); | ||
|
|
||
| template <typename Tdata> | ||
| extern void add_partial_Hexx(const K_Vectors& kv, |
Author
There was a problem hiding this comment.
source/module_io/td_current_io.cpp
Outdated
| = rR[i_alpha]->find_matrix(iat1, iat2, r_index.x, r_index.y, r_index.z); | ||
| if (HlocR == nullptr) | ||
| { | ||
| rR[i_alpha]->insert_pair(atom_ij); |
Owner
There was a problem hiding this comment.
You may need to allocate memory for rR here. A output test would be helpful to check if rR is consistent with ABACUS output r matrix.
Author
There was a problem hiding this comment.
It has been allocated here (
)
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Reminder
Linked Issue
Fix #...
Unit Tests and/or Case Tests for my changes
What's changed?
Any changes of core modules? (ignore if not applicable)