ELASTIC example issue

Hi,

When I try to run the ELASTIC example from the LAMMPS examples directory (1Feb 2014 version), I get the followng error.
ERROR: Atom count is inconsistent, cannot write restart file (write_restart.cpp:137)

Should I be using an older version of LAMMPS?

Thanks,
Anirban

Hi,

When I try to run the ELASTIC example from the LAMMPS examples directory
(1Feb 2014 version), I get the followng error.
ERROR: Atom count is inconsistent, cannot write restart file
(write_restart.cpp:137)

Should I be using an older version of LAMMPS?

Thanks,
Anirban

I just runned it and is working fine for me using the same version. Maybe you need to compile lammps with some extra packages. If you are using the parallel version, first try the serial one

The error message itself can be caused by a many underlying causes. The
ELASTIC example has not been changed since 2010 and it works for me with
the latest svn version of LAMMPS, so I don't think there is a problem with
the 1Feb_2014 distro. Perhaps you changed something? Or you are running on
dodgy hardware. Try compiling on a computer you trust.

Aidan

Thank you all for your response. It turns out this has something to do with my existing compiler options.
I recompiled using mpich2 and g++ and it works now.

Anirban