Skip to content

There is a problem when calculating the partial charge density #6101

Description

@Lweiweij

Describe the bug

I am using ABACUS 3.9.0.2 to calculate partial charge density. However, I use nband_istate or bands_to_print to specify the bands I need to calculate, and the partial charge density results I get are problematic. Specifically, only the charge density file corresponding to the first band in the bands that I specified looks correct, while the others all get wrong results, and the contents of the *.cube file are all "-nan". I want to know how to solve this problem.

Image

Expected behavior

No response

To Reproduce

INPUT_file.zip

No response

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

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions