Invalid atom type 3

Dear LAMMPS users and developers,
I get an error when read_data with 3 atom types (while 2 types is OK):
ERROR on proc 0: Invalid atom type 3 in Atoms section of data file: 3 3 1 1 0 10 0 (src/src/atom.cpp:1194)
I am on Ubuntu 22.04.4 LTS, LAMMPS (2 Aug 2023 - Update 2)

in.scipt:


atom_style  body rounded/polygon 1 3

boundary s s p

variable    L   index 20
region      box prism 0 $L 0 $L -1 1 0.0 0.0 0.0 
create_box  2 box

read_data    data.walls add append

data.walls

LAMMPS walls
3 atoms
3 bodies
3 atom types
-10 20 xlo xhi
-10 20 ylo yhi
-1 1 zlo zhi

Atoms 

1 1 1 1 0 -6 0
2 2 1 1 0  6 0
3 3 1 1 0  10 0

Velocities

1 0  0   0 0 0 0
2 0 -0.1 0 0 0 0
3 0  0   0 0 0 0

Bodies

1 1 13
2
1 1 1 0 0 0
-6 0 0
6 0 0
0.01
2 1 13
2
1 1 1 0 0 0
-6 0 0
6 0 0
0.01
3 1 13
2
1 1 1 0 0 0
-6 0 0
6 0 0
0.01

create_box 2 box tells LAMMPS to create a box with only two atom types.

1 Like

Thanks, works now!