Skip to content

The unit of coordinate in abacus.json is incorrect #7750

Description

@MoseyQAQ

Describe the bug

The unit of coordinate in abacus.json is actually Bohr:

coordinateArray.JPushBack(tau[j][0]*lat0);
coordinateArray.JPushBack(tau[j][1]*lat0);
coordinateArray.JPushBack(tau[j][2]*lat0);

However, all doucment states that its unit is Angstrom, includes:

  1. the header says that "comment": "Unless otherwise specified, the unit of energy is eV and the unit of length is Angstrom",
  2. Also in the document related to this item:
    - `coordinate` - [array(array(double))] The cartesian coordinates of each atom. Unit in Angstrom.

Expected behavior

The output should be in unit of Angstrom. (or the related document should be corrected)

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

No one assigned

    Labels

    BugsBugs that only solvable with sufficient knowledge of DFT

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions