No basis atoms in lattice

Create SiC Zincblende Structure

lattice custom 4.3589
a1 1.0 0.0 0.0
a2 0.0 1.0 0.0
a3 0.0 0.0 1.0
basis 0.00 0.00 0.00 1 # Si (type 1)
basis 0.25 0.25 0.25 2 # C (type 2)
region box block 0 8 0 8 0 8 # 888 unit cells
create_box 2 box
create_atoms 1 box # Automatically uses basis types 1 and 2

Hi, I am a new user of LAMMPS. I was trying to write a code for SiC structure. While running the script, it shows an error:

ERROR: No basis atoms in lattice (src/lattice.cpp:229)
Last command: lattice custom 4.3589

How can I solve the problem? Can someone guide me in this regard?

Your input does not follow the required syntax for the lattice command.
Please see the documentation and also read about the input parsing rules in LAMMPS and the use of the continuation character ‘&’ to have a single command span over multiple lines, which you seem to be missing here.

1 Like

Thank you for your suggestion