You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MD simulation process reports an error indicating that the x-coordinate of an atom is negative #6681
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.
Activity
samomoyed commentedon Nov 26, 2026
I reproduced the failure using the attached
test.zipwith ABACUSv3.11.0-beta13, using LCAO and cuSOLVER on an RTX 4090. The unpatched run aborted inCharge::renormalize_rho()with the assertionomega > 0.0.This is because
md_pfreqwas set too large, causing the velocity to change too quickly. Changingmd_pfreqfrom1.0to0.005atmd_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.