Skip to content

Commit

Permalink
chore(lmp): add LAMMPS DPA-2 nopbc tests (#4220)
Browse files Browse the repository at this point in the history
Adding tests to see whether #4167 is resolved. The answer is no.
Segfaults are thrown with MPI.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Introduced a new command-line argument `--nopbc` to modify boundary
conditions in LAMMPS simulations.
- **Tests**
- Added a comprehensive suite of unit tests for the DeepMD potential in
LAMMPS, covering various configurations and scenarios to ensure accuracy
and reliability.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz authored Oct 17, 2024
1 parent 2871fec commit 1e1090a
Show file tree
Hide file tree
Showing 2 changed files with 733 additions and 1 deletion.
6 changes: 5 additions & 1 deletion source/lmp/tests/run_mpi_pair_deepmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
parser.add_argument("MD_FILE", type=str)
parser.add_argument("OUTPUT", type=str)
parser.add_argument("--balance", action="store_true")
parser.add_argument("--nopbc", action="store_true")

args = parser.parse_args()
data_file = args.DATAFILE
Expand All @@ -38,7 +39,10 @@
# 6 and 0 atoms
lammps.processors("1 2 1")
lammps.units("metal")
lammps.boundary("p p p")
if args.nopbc:
lammps.boundary("f f f")
else:
lammps.boundary("p p p")
lammps.atom_style("atomic")
lammps.neighbor("2.0 bin")
lammps.neigh_modify("every 10 delay 0 check no")
Expand Down
Loading

0 comments on commit 1e1090a

Please sign in to comment.