Skip to content

MD simulation process reports an error indicating that the x-coordinate of an atom is negative #6681

Open

Description

@tang070205

Describe the bug

Image

The version used is 3.10.1 and the installation method is toolchain_gnu

test.zip

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).

Activity

  1. added
    Questions
    Long-Time Support (LTS)
    on Nov 5, 2025
  2. samomoyed commented on Nov 26, 2026

    @samomoyed

    I reproduced the failure using the attached test.zip with ABACUS v3.11.0-beta13, using LCAO and cuSOLVER on an RTX 4090. The unpatched run aborted in Charge::renormalize_rho() with the assertion omega > 0.0.

    This is because md_pfreq was set too large, causing the velocity to change too quickly. Changing md_pfreq from 1.0 to 0.005 at md_dt = 0.5 fs, the case completed all 10 MD steps with exit code 0. The cell volume went from 2491.876 to 2496.346 ų. The SCF convergence threshold was not met at MD steps 7–9.

    Replaying the NPT barostat update from the trajectory showed the accumulated velocity scale underflowing to zero. A later exponential overflowed, so the multiplication produced NaN. The failure originates in the barostat update, before the cell-volume assertion.

    I tested a patch that stops at the invalid barostat update. With the original input, it exits with Invalid NPT barostat velocity scale. Check md_pfreq and md_dt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Long-Time Support (LTS)Questions

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions