Skip to content

Size mismatch for pdm in equivariant version of DeePKS. #5895

@ErjieWu

Description

@ErjieWu

Describe the bug

For DeePKS with deepks_equiv=1, the length of vector pdm seems to be inlmax in read_pdm() and in the beginning of cal_pdm(), but to be nat in the end of cal_pdm(). It should indeed be nat, but I'm not sure whether deepks_projdm.dat file support this. Also, the MPI all_reduce part lack this part. I will check it in the future.

Expected behavior

No response

To Reproduce

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions