Skip to content

LCAO Partial charge density calculation failed by get_pchg: Outputs NaN in v3.9.0.4, Works in older v3.8.5 #6228

@xdzhu

Description

@xdzhu

Describe the bug

When using ABACUS version 3.9.0.4 to calculate the Partial charge density by using get_pchg, the resulting .cube files for pchg contain only NaN values. However, when I revert to version 3.8.5 and perform the same calculation, the output is generated correctly. Please investigate and fix any bugs introduced in the newer version that may be causing this issue.

in 3.9.0.4, the .cube is like

Image

and the file is full filled with nan
Image

in 3.8.5, it can run correctly
Image

the original file is like:
Image

Expected behavior

No response

To Reproduce

Only the charge density file has been uploaded due to file size limitations. The wavefunction coefficients and partial charge density can be generated from this zip file.

issue_get_pchg.zip

Environment

No response

Additional Context

No response

Task list for Issue attackers (only for developers)

  • Verify the issue is not a duplicate.
  • Describe the bug.
  • Steps to reproduce.
  • Expected behavior.
  • Error message.
  • Environment details.
  • Additional context.
  • Assign a priority level (low, medium, high, urgent).
  • Assign the issue to a team member.
  • Label the issue with relevant tags.
  • Identify possible related issues.
  • Create a unit test or automated test to reproduce the bug (if applicable).
  • Fix the bug.
  • Test the fix.
  • Update documentation (if necessary).
  • Close the issue and inform the reporter (if applicable).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions