Skip to content

[Refactor] Remove redundant real2recip#7228

Merged
mohanchen merged 1 commit intodeepmodeling:developfrom
Cstandardlib:refactor/out_chg
Apr 10, 2026
Merged

[Refactor] Remove redundant real2recip#7228
mohanchen merged 1 commit intodeepmodeling:developfrom
Cstandardlib:refactor/out_chg

Conversation

@Cstandardlib
Copy link
Copy Markdown
Collaborator

@Cstandardlib Cstandardlib commented Apr 9, 2026

Linked Issue

Refs #7224

What's changed?

  • Remove useless real2recip in source/source_io/module_ctrl/ctrl_output_fp.cpp.

Copilot AI review requested due to automatic review settings April 9, 2026 17:30
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Removes a redundant FFT (real2recip) that was being executed when outputting charge density to .cube, addressing unnecessary work during charge output.

Changes:

  • Delete the pw_rhod->real2recip(chr.rho_save[is], chr.rhog_save[is]); call in the charge-density cube output path.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
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 ba3122f into deepmodeling:develop Apr 10, 2026
19 checks passed
@mohanchen mohanchen added Refactor Refactor ABACUS codes Input&Output Suitable for coders without knowing too many DFT details labels Apr 10, 2026
@Cstandardlib Cstandardlib deleted the refactor/out_chg branch April 10, 2026 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Input&Output Suitable for coders without knowing too many DFT details Refactor Refactor ABACUS codes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants