File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 2121parser .add_argument ("MD_FILE" , type = str )
2222parser .add_argument ("OUTPUT" , type = str )
2323parser .add_argument ("--balance" , action = "store_true" )
24+ parser .add_argument ("--nopbc" , action = "store_true" )
2425
2526args  =  parser .parse_args ()
2627data_file  =  args .DATAFILE 
3839 # 6 and 0 atoms 
3940 lammps .processors ("1 2 1" )
4041lammps .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" )
4246lammps .atom_style ("atomic" )
4347lammps .neighbor ("2.0 bin" )
4448lammps .neigh_modify ("every 10 delay 0 check no" )
Original file line number Diff line number Diff 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 )
                                 You can’t perform that action at this time. 
               
                  
0 commit comments