[lammps-users] new compute style

I have written a package including a new compute style: compute_xbar_atom.h(cpp)
and it has successfully compiled, I also had add it into the style.h file

but when I run the simulation using:
compute 1 all xbar/atom

the lammps returned error: invalid compute style

Is there other places i should declear this new compute command? Or there might exist other kind of mistake even compiling is succeeded

I have written a package including a new compute style:
compute_xbar_atom.h(cpp)
and it has successfully compiled, I also had add it into the style.h file

but when I run the simulation using:
compute 1 all xbar/atom

the lammps returned error: invalid compute style

Is there other places i should declear this new compute command? Or there
might exist other kind of mistake even compiling is succeeded

it is very difficult to speculate about what went wrong without
knowing what you actually did. one possibility is that you have
a typo somewhere. you can use the "nm" program to validate
if the class that you added is actually compiled in.

cheers,
   axel.

If you are using the current version of LAMMPS, then
your header file *.h should have a line in it like

ComputeStyle(xbar/atom,ComputeXbarAtom)

enclosed in an ifdef. If this is done correctly (see other computes)
and you re-compiled LAMMPS then LAMMPS should recognize
the command xbar/atom in your input script.

Steve