Skip to content

LCAO Gamma-only density matrix output does not have the correct precision #3181

Description

@jinzx10

Describe the bug

I'm looking for the density matrices from some LCAO, Gamma-only calculations. When running with input option "out_dm 1", the matrix elements in the output file "SPIN1_DM" contain an insane number of digits (~20000) as shown below:

image

The output looks normal in v3.4.0 and the problem was introduced in v3.4.1.

Expected behavior

No response

To Reproduce

The problem seems to be general. For example, one can simply append the following to examples/scf/lcao_Si2/INPUT to reproduce the problem:

gamma_only 1
out_dm 1

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

BugsBugs that only solvable with sufficient knowledge of DFT

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