How to make the improper style of harmonic available?


I’m a senior student in the University of Science and Technology Beijing. I major in thermal science and energy engineering. I’m using lammps to simulate the thermal properties of COFs.Now I need to use improper_harmonic. However, it is said “This improper style can only be used if LAMMPS was built with the MOLECULAR package (which it is by default).” And t saw your reply about this question. So I modify "MOLECULAR " to “MOLECULE” in the improper_harmonic.txt manually. But after I rebuilt LAMMPS and run my program, it still tell me “invalid improper style”. How can I successfully use this improper style?
Expecting your good solution!

Runzhi Wei
Apr 29th, 2015.

It is the MOLECULE package that you need, not MOLECULAR (which by the way does not exist). See this doc page ( for more details on how to build LAMMPS with additional packages.