[lammps-users] "Did not assign all atoms correctly" or "Unexpected end of data file"

Hello,

When I use read_data to read a text file, I always get one of the two error message:
“Did not assign all atoms correctly”, “Unexpected end of data file”

I have searched the mailing list. It looks like there are two cases which might cause this problem: too small box, no blank line below the section keyword. After I checked my data file, I didn’t find these two mistakes. Could anyone tell me why I got this error message? The following is my data file ( for a 2D system, atom_style is hybrid charge bond):

LAMMPS Description

2080 atoms
3042 bonds

2 atom types
1 bond types

0 80.0 xlo xhi
0 80.0 ylo yhi
-1 1 zlo zhi

Masses ## must have one blank line

1 12.01
2 12.01

Pair Coeffs

1 1 1.0 2.5 5.0
2 1 1.0 1.0 5.0

Atoms

1 1 -0.3 0 0 0 1
2 1 -0.3 0 1 0 1
3 1 -0.3 0 2 0 1
4 1 -0.3 0 3 0 1
.
.
.
2078 2 1 66 15 0 479
2079 2 1 66 16 0 480
2080 2 1 66 17 0 481

Bonds

1 1 2 1
2 1 41 1
3 2 3 1
.
.
.
3039 1558 1559 1
3040 1558 1598 1
3041 1559 1560 1
3042 1559 1599 1