Skip to content

Commit 184a285

Browse files
committed
nopbc mpi test
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
1 parent bdd7522 commit 184a285

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-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")

source/lmp/tests/test_lammps_dpa_pt_nopbc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,7 @@ def test_pair_deepmd_mpi(balance_args: list):
695695
md_file,
696696
f.name,
697697
*balance_args,
698+
"--nopbc",
698699
]
699700
)
700701
arr = np.loadtxt(f.name, ndmin=1)

0 commit comments

Comments
 (0)