Skip to content

Conversation

@ESROAMER
Copy link
Collaborator

PR #6369 accidentally reverted the changes in PR #5959. Fixes resubmitted.

@mohanchen
Copy link
Collaborator

LGTM

@mohanchen mohanchen added the Refactor Refactor ABACUS codes label Jul 23, 2025
@mohanchen mohanchen merged commit afd9b08 into deepmodeling:develop Jul 23, 2025
14 checks passed
for (int i = 0; i < 3; i++)
{
tmp_c[i] = this->current_term[i]->find_matrix(iat1, iat2, R_vector[0], R_vector[1], R_vector[2])->get_pointer();
hamilt::BaseMatrix<std::complex<double>>* matrix_ptr = this->current_term[i]->find_matrix(iat1, iat2, R_vector[0], R_vector[1], R_vector[2]);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move this line in front of line 296 for better performance?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move this line in front of line 296 for better performance?

Ok,I'll do it in the next PR.

for (int i = 0; i < 3; i++)
{
tmp_c[i] = this->current_term[i]->find_matrix(iat1, iat2, R_index2)->get_pointer();
hamilt::BaseMatrix<std::complex<double>>* matrix_ptr = this->current_term[i]->find_matrix(iat1, iat2, R_index2);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move this line in front of line 437 for better performance?

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

Labels

Refactor Refactor ABACUS codes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants