ERROR: Unknown fix style (fix addtorque)

Dear all,

I can not use “fix addtorque” on ubuntu while it works correctly on windows.
You can see a simple input file and the resulted error below:

units real
dimension 3
boundary p p p

lattice fcc 5.72
region box block -1 1 -1 1 -1 1
create_box 1 box
create_atoms 1 box

mass 1 39.948
pair_style lj/cut 9.534
pair_coeff * * 0.2381 3.405

thermo 100
thermo_style custom step temp

velocity all create 300 102486
fix NVT all nvt temp 300 300 10
fix 1 all addtorque 1 1 1

run 2000

ERROR: Unknown fix style (…/modify.cpp:815)

This fix is part of the USER-MISC package. It is only enabled if LAMMPS was built with that package. See the Making LAMMPS section for more info.

This seems to trip up a lot of users. So it bears repeating:

The doc page for every command lists the package

that command is in (if it is in a package).

If you run “lmp_machine -h” it will list all the commands

that are included in that executable. Had you done

that you would have noticed fix addtorque was not there.

Which would indicate you need to find what package it

is in, and insure you build with that package.

Steve

thank you.
it worked very well.

Sent with Mailtrack