Dear all:
I want to loop the lammps program in a python script.
…
from lammps import lammps
for i in range(10):
lmp = lammps()
lmp.file(infile)
lmp.close()
…
When I use serial syntax, the loop can be executed. However, an error occurred when using the parallel syntax. The lammps program cannot be executed completely in the second loop.
…
Reading data file …
orthogonal box = (-16 -16 -16) to (16 16 16)
1 by 2 by 2 MPI processor grid
WARNING: Angle style in data file differs from currently defined angle style (…/read_data.cpp:559)
reading atoms …
1421 atoms
reading velocities …
1421 velocities
scanning bonds …
6 = max bonds/atom
scanning angles …
5 = max angles/atom
scanning dihedrals …
6 = max dihedrals/atom
reading bonds …
2077 bonds
reading angles …
1311 angles
reading dihedrals …
1545 dihedrals
Finding 1-2 1-3 1-4 neighbors …
special bond factors lj: 0 0 0
special bond factors coul: 0 0 0
7 = max # of 1-2 neighbors
34 = max # of 1-3 neighbors
203 = max # of 1-4 neighbors
40 = max # of special neighbors
Reading data file …
orthogonal box = (-16 -16 -16) to (16 16 16)
1 by 2 by 2 MPI processor grid
reading atoms …
5473 atoms
Finding 1-2 1-3 1-4 neighbors …
special bond factors lj: 0 0 0
special bond factors coul: 0 0 0
7 = max # of 1-2 neighbors
34 = max # of 1-3 neighbors
203 = max # of 1-4 neighbors
40 = max # of special neighbors
480 atoms in group rbc
1421 atoms in group cell
5473 atoms in group pipette
0 atoms in group water
…
The next message should be :Neighbor list information, But it has been stopped here and no longer continues to run. What could be the cause of this?
Shuai Zhang
Nankai University