Skip to content

topology: !FromFile origin; reject positions beyond a wall - #186

Merged
mlund merged 1 commit into
mainfrom
fix/177-fromfile-origin
Nov 24, 2026
Merged

mlund merged 1 commit into
mainfrom
fix/177-fromfile-origin

Conversation

@mlund

@mlund mlund commented Nov 24, 2026

Copy link
Copy Markdown
Owner

Fixes #177.

  • !FromFile {file: x.xyz, origin: center} for box-centred files; !FromFile x.xyz keeps the corner default.
  • Positions outside a wall (non-periodic direction) are an error naming the block, the count and the origin convention. Overhangs across periodic boundaries are kept, since molecules made whole across PBC are normal.
  • Same check for the structure file of blocks without insert:.
  • Docs: origin convention for !FromFile (topology.md) and trajectory output (analysis.md).
  • Regression suite: no new failures. The 7 directions-key failures and npt_water_ewald (~1e-9 drift) are already on main and are fixed by propagate: analysis frequencies count steps #184.

!FromFile {file, origin: center} reads box-centred files; the bare path
keeps the corner default. A position outside a non-periodic boundary is
now an error naming the block and the origin, instead of an infinite
energy and zero acceptance. Periodic overhangs are kept.
@mlund
mlund merged commit 76926c5 into main Nov 24, 2026
2 checks passed
@mlund
mlund deleted the fix/177-fromfile-origin branch November 24, 2026 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

!FromFile: corner-origin shift is undocumented, and out-of-cell positions fail silently

1 participant