Error when using "bond_style hybrid harmonic zero"

Hi LAMMPS users,

I want to apply hybrid bond_style, in this case harmonic and zero.

But I encountered with this error:

ERROR: Unknown bond style (…/force.cpp:301)

When I only use “bond_style harmonic” there is no error.

I have this problem with “angle_style hybrid cosine/squared harmonic zero” as well. With " angle_style hybrid cosine/squared harmonic" there is no problem.

I have attached my .in and .data file.

Sincerely yours,
Amin

p.s. the version of my LAMMPS is 11-Aug-2017.

polymer-water.in (3.92 KB)

polymer-water.data (22.6 KB)

Hi LAMMPS users,

I want to apply hybrid bond_style, in this case harmonic and zero.

But I encountered with this error:

ERROR: Unknown bond style (../force.cpp:301)

When I only use "bond_style harmonic" there is no error.

​i cannot reproduce this with the attached input files. this is with the
current patch version (5 Feb 2018) and a version older than yours (10 Mar
2017).
there is an error about connected shake clusters, but that is at the end of
the input.

I have this problem with "angle_style hybrid cosine/squared harmonic zero"
as well. With " angle_style hybrid cosine/squared harmonic" there is no
problem.

​carefully check your input for non-ASCII characters. check your locale
settings (try LC_ALL=C).

axel.​