Molecule topology type exceeds system topology type

Dear Lammps users,

I am trying to use the molecule command for the create_atoms command.
I wrote in my input file:

molecule scAB solvoChain_l20.txt
atom_style template scAB
region myBox block 0 100 0 100 0 100
create_box 2 myBox bond/types 2
create_atoms 0 random 216 98734 myBox mol scAB 4852

and the file solvoChain_l20.txt is:

Solvochain AB l=20 -> 10 backbone A atoms and 10 side chains B atoms

20 atoms
19 bonds
0 angles
0 dihedrals
0 impropers

Coords

1 0 0 0
2 3.1875 0 0
3 6.375 0 0
4 9.5625 0 0
5 12.75 0 0
6 15.9375 0 0
7 19.125 0 0
8 22.3125 0 0
9 25.5 0 0
10 28.6875 0 0
11 0 3.5625 0
12 3.1875 3.5625 0
13 6.375 3.5625 0
14 9.5625 3.5625 0
15 12.75 3.5625 0
16 15.9375 3.5625 0
17 19.125 3.5625 0
18 22.3125 3.5625 0
19 25.5 3.5625 0
20 28.6875 3.5625 0

Types

1 1
2 1
3 1
4 1
5 1
6 1
7 1
8 1
9 1
10 1
11 2
12 2
13 2
14 2
15 2
16 2
17 2
18 2
19 2
20 2

Bonds

1 1 1 2
2 1 2 3
3 1 3 4
4 1 4 5
5 1 5 6
6 1 6 7
7 1 7 8
8 1 8 9
9 1 9 10
10 1 1 11
11 2 2 12
12 2 3 13
13 2 4 14
14 2 5 15
15 2 6 16
16 2 7 17
17 2 8 18
18 2 9 19
19 2 10 20

I get the error:
ERROR: Molecule topology type exceeds system topology type (../molecule.cpp:1004)

And I don't understand why because I said there is two types of atoms in my box, I call create_atoms command with type 0 and the molecule file has atom types 1 and 2, so it should be generating atoms of types 1 and 2, compatible with the create_box command. I also say that there is 2 types of bonds and the molecule file has bonds of type 1 and 2.

I guess there is something I am not understanding properly.... can anybody help me?
Thank you very much!

Marta

If I run what you posted, I get this:

LAMMPS (14 Jun 2014)
Created orthogonal box = (0 0 0) to (100 100 100)
1 by 1 by 1 MPI processor grid
WARNING: Molecule has bond topology but no special bond settings (…/molecule.cpp:1035)
Created 4320 atoms

In other words, it works. Are you using the current version of LAMMPS?

The error message you list, is not on the same line # in the current version.

Steve