Skip to content

Relax tolerance in parallel continuation test#7

Merged
mbuze merged 1 commit into
mainfrom
fix-parallel-test-tolerance
Mar 30, 2026
Merged

Relax tolerance in parallel continuation test#7
mbuze merged 1 commit into
mainfrom
fix-parallel-test-tolerance

Conversation

@mbuze
Copy link
Copy Markdown
Owner

@mbuze mbuze commented Mar 30, 2026

Summary

  • Parallel LAMMPS force evaluations accumulate small floating-point differences (~4e-8) due to summation order in domain decomposition, exceeding np.allclose default atol=1e-8
  • Relaxed atol to 1e-6 for the continuation run assertion — quasi-static test is unaffected

Test plan

  • Verified test passes locally with mpirun --oversubscribe -np 2 python test_parallel.py
  • CI will pass

Parallel LAMMPS force evaluations accumulate small floating-point
differences (~4e-8) due to summation order in domain decomposition,
which exceeds np.allclose default atol of 1e-8.
@mbuze
Copy link
Copy Markdown
Owner Author

mbuze commented Mar 30, 2026

@Fraser-Birks a weird change in behaviour, tests started to fail by the smallest of margins, probably something to do with LAMMPS or MPI updates

@mbuze mbuze merged commit 66ec313 into main Mar 30, 2026
1 check passed
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.

1 participant