Got a error of Stress/atom

Hi all,
I recently started to use the latest version of lammps3 April 2015 with lmp_serial
but got this error.

compute 1 middle stress/atom
ERROR: Illegal compute stress/atom command (…/compute_stress_atom.cpp:41)

Hi all,
I recently started to use the latest version of lammps3 April 2015 with
lmp_serial
but got this error.

compute 1 middle stress/atom
ERROR: Illegal compute stress/atom command (../compute_stress_atom.cpp:41)

please *always* first consult the manual *before* reporting problems
with error messages.
nobody wants discuss errors that are due to incorrect use of a
command, but only if the command does not behave as documented.

I don't know why? though I had run this code with lmp_win_mpi.exe of 2013
and got no problem....

that is irrelevant. as new features are added to LAMMPS the syntax of
commands may change. most of the time such backwards incompatibilities
are reported on this page: http://lammps.sandia.gov/bug.html and the
respective versions for previous years.

axel.

I had checked with manual and didn’t find anychanges, That’s why I posted here.
I read the links you gave me, thanks
but when i run the " patch.6Apr15>patch -bp1" command, I got “Access is denied”.
Can you please guid me what to do?
Thanks

I had checked with manual and didn't find anychanges, That's why I posted
here.
I read the links you gave me, thanks
but when i run the " patch.6Apr15>patch -bp1" command, I got "Access is
denied".

this command is complete nonsense.

Can you please guid me what to do?

read the manual more carefully! i am certain that the manual is
correct and you are wrong. the error message you have *clearly*
indicates that you are not using the compute command correctly. if you
still believe that your input is correct, then you have to explain in
detail, where the manual disagrees with LAMMPS' behavior

axel.

Dear Axel,

first, about command compute stress/atom
I wrote my code in my 1st email but I rewrote it here with the style mentiond in manual:

Manual : LAMMPS-ICMS Users Manual-3 Apr 2015 version---- stress/atom command:
compute ID group-ID stress/atom temp-ID keyword …
· ID, group-ID are documented in compute command
· stress/atom = style name of this compute command
· temp-ID = ID of compute that calculates temperature, can be NULL if not needed
· zero or more keywords may be appended
· keyword = ke or pair or bond or angle or dihedral or improper or kspace or fix or virial

my Code :
compute 1 middle stress/atom

using lmp_serial for latest version of lammps 3Apr2015 got this error:

ERROR: Illegal compute stress/atom command (…/compute_stress_atom.cpp:41)

May friends accept my appology for big fonts, which caused by exact copy from manual.

Dear Axel,

first, about command compute stress/atom
I wrote my code in my 1st email but I rewrote it here with the style
mentiond in manual:

Manual : LAMMPS-ICMS Users Manual-3 Apr 2015 version---- stress/atom
command:
compute ID group-ID stress/atom temp-ID keyword ...
· ID, group-ID are documented in compute command
· stress/atom = style name of this compute command
· temp-ID = ID of compute that calculates temperature, can be NULL if not
needed
· zero or more keywords may be appended
· keyword = ke or pair or bond or angle or dihedral or improper or kspace or
fix or virial

my Code :
compute 1 middle stress/atom

using lmp_serial for latest version of lammps 3Apr2015 got this error:

ERROR: Illegal compute stress/atom command (../compute_stress_atom.cpp:41)
-----------------------------------------------------------------------------------------------------------------------

as you should! where is the "temp-ID"?

second, as I read the links you gave me I downloaded the patch.6Apr15 and
tried to fix the bugs as said in here
http://lammps.sandia.gov/download.html#patches

but when I run the " patch.6Apr15>patch -bp1" command, I got "Access is
denied".

yes, because that is not how patching works and not how it is
described in the manual.

anyway, the bug is in your input and patching LAMMPS will not fix that.

axel.

Thank you very much