Skip to content
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

Refactor LCAO force: merge gamma and k #4263

Merged
merged 3 commits into from
Jun 1, 2024

Conversation

maki49
Copy link
Collaborator

@maki49 maki49 commented May 29, 2024

Background

In #2460 I want to call ftable and its subfunctions cal_foverlap, cal_fvl_dphi, etc. in the same way for both gamma_only and multi-k. I think it's possible to merge all the member functions of Force_LCAO_Gamma and Force_LCAO_k (i.e. to unify the parameters of those interfaces) -- and even the two classes. Then I just try and succeed.

What's Changed

  • Merge Force_LCAO_Gamma and Force_LCAO_k into a template class Force_LCAO
  • Remove unused pointers DM, DM_R and related parameter loc in the grid integral interface

@WHUweiqingzhou
Copy link
Collaborator

I have checked that this PR will not conflict with my plan #4274.

Copy link
Collaborator

@mohanchen mohanchen left a comment

Choose a reason for hiding this comment

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

LGTM

@mohanchen mohanchen merged commit c21848a into deepmodeling:develop Jun 1, 2024
13 checks passed
@mohanchen mohanchen added the Refactor Refactor ABACUS codes label Jun 2, 2024
@maki49 maki49 deleted the refactorforce branch July 15, 2024 08:04
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