Skip to content

Commit 1e1090a

Browse files
authored
chore(lmp): add LAMMPS DPA-2 nopbc tests (#4220)
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 <jinzhe.zeng@rutgers.edu>
1 parent 2871fec commit 1e1090a

File tree

2 files changed

+733
-1
lines changed

2 files changed

+733
-1
lines changed

source/lmp/tests/run_mpi_pair_deepmd.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
parser.add_argument("MD_FILE", type=str)
2222
parser.add_argument("OUTPUT", type=str)
2323
parser.add_argument("--balance", action="store_true")
24+
parser.add_argument("--nopbc", action="store_true")
2425

2526
args = parser.parse_args()
2627
data_file = args.DATAFILE
@@ -38,7 +39,10 @@
3839
# 6 and 0 atoms
3940
lammps.processors("1 2 1")
4041
lammps.units("metal")
41-
lammps.boundary("p p p")
42+
if args.nopbc:
43+
lammps.boundary("f f f")
44+
else:
45+
lammps.boundary("p p p")
4246
lammps.atom_style("atomic")
4347
lammps.neighbor("2.0 bin")
4448
lammps.neigh_modify("every 10 delay 0 check no")

0 commit comments

Comments
 (0)