Skip to content

Refactor class Charge to template#6865

Closed
linpeize wants to merge 4 commits intodeepmodeling:developfrom
linpeize:Charge_template
Closed

Refactor class Charge to template#6865
linpeize wants to merge 4 commits intodeepmodeling:developfrom
linpeize:Charge_template

Conversation

@linpeize
Copy link

Refactor class Charge to template class Charge.
Currently, only Charge<double> is used in the program.

Conflicts:
	source/source_pw/module_ofdft/evolve_ofdft.cpp
	source/source_pw/module_ofdft/evolve_ofdft.h
@linpeize linpeize force-pushed the Charge_template branch 4 times, most recently from 7d5ff3e to 2ecd66a Compare January 17, 2026 11:13
@mohanchen mohanchen added the Refactor Refactor ABACUS codes label Jan 17, 2026
@linpeize linpeize force-pushed the Charge_template branch 3 times, most recently from c14f10e to 1a6a3bc Compare January 17, 2026 16:11
@mohanchen
Copy link
Collaborator

We need discussion whether to include this feature.

@zhubonan
Copy link

zhubonan commented Feb 2, 2026

Is the goal here to make the Charge class and related operations compatible with GPU compute? I found that for large cell calculations Charge related operations can take significant time (say 30%-50%).
.

@mohanchen
Copy link
Collaborator

Will write a new class without modifying the Charge class.

@mohanchen mohanchen closed this Feb 3, 2026
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.

4 participants