ERROR: KSpace style is incompatible with Pair style (MSM Kspace)

Hello,

I am trying to simulate a system consisting of C,H,O. I have defined 6 atom types in the system. I am using hybrid potential function of lj/cut/coul/long and rebo. I get the following error when I use “msm” kspace_style. I have attached the a portion of the input file. I don’t know why I receive this error. I appreciate your help in advance.

ERROR: KSpace style is incompatible with Pair style (…/kspace.cpp:161)

units metal
dimension 3
boundary p p s
atom_style full

pair_style hybrid/overlay lj/cut/coul/long 10.0 rebo
pair_coeff * * rebo CH.airebo C NULL C NULL NULL NULL
pair_coeff 1 1 lj/cut/coul/long 0.0 0.0
pair_coeff 1 2 lj/cut/coul/long 0.0 0.0
pair_coeff 1 3 lj/cut/coul/long 0.0 0.0
pair_coeff 1 4 lj/cut/coul/long 0.0 0.0
pair_coeff 1 5 lj/cut/coul/long 0.0 0.0
pair_coeff 1 6 lj/cut/coul/long 0.087 0.86
pair_coeff 2 2 lj/cut/coul/long 0.0 0.0
pair_coeff 2 3 lj/cut/coul/long 0.0 0.0
pair_coeff 2 4 lj/cut/coul/long 0.0 0.0
pair_coeff 2 5 lj/cut/coul/long 0.0 0.0
pair_coeff 2 6 lj/cut/coul/long 0.0 0.0
pair_coeff 3 3 lj/cut/coul/long 0.0 0.0
pair_coeff 3 4 lj/cut/coul/long 0.0 0.0
pair_coeff 3 5 lj/cut/coul/long 0.0 0.0
pair_coeff 3 6 lj/cut/coul/long 0.087 0.86
pair_coeff 4 4 lj/cut/coul/long 0.0 0.0
pair_coeff 4 5 lj/cut/coul/long 0.0 0.0
pair_coeff 4 6 lj/cut/coul/long 0.0 0.0
pair_coeff 5 5 lj/cut/coul/long 0.0 0.0
pair_coeff 5 6 lj/cut/coul/long 0.0 0.0
pair_coeff 6 6 lj/cut/coul/long 0.0067 3.166

bond_style harmonic

bond_coeff 1 0.0 0.0
bond_coeff 2 0.0 0.0

bond_coeff 3 7.669 1.0
angle_style harmonic
angle_coeff 1 1.829 109.47
kspace_style msm 1.0e-5

Farshad

I think I found the problem. I have to use the LJ potential compatible with msm Kspace_style. I should have used### lj/cut/coul/msm instead of lj/cut/coul/long.