recover restart file into ascii format

Hi, List,

I am bumping into a file conversion problem…here is an old restart file (0.11150000.sort), and I think I created it by using a LAMMPS version that is some time before the restart2data.cpp being integrated. There is a very short period of time of the LAMMPS releases that the file conversion get troubled, as I recalled. (Maybe last November?) Namely, the restart files can only be decoded by the very version of LAMMPS that created them.

Now I do not think I have the version at hand. I tried to recover it with the old restart2data.cpp, but all the atom number labeling are gone, as seen in the attached “test” file. If I access with a new LAMMPS executable, it reads “ERROR: Invalid LAMMPS restart file (…/read_restart.cpp:1021)”.

I am using lammps-13May14, and I am compiling the latest version now. I will definitely try the latest stable version once done. Before that, I would greatly appreciate if anyone can give some hints on solving this problem. Thank you very much.

LC Liu

0.11150000.sort (237 KB)

test (269 KB)

Hi, List,

I am bumping into a file conversion problem....here is an old restart file
(0.11150000.sort), and I think I created it by using a LAMMPS version that
is some time before the restart2data.cpp being integrated. There is a very
short period of time of the LAMMPS releases that the file conversion get
troubled, as I recalled. (Maybe last November?) Namely, the restart files
can only be decoded by the very version of LAMMPS that created them.

Now I do not think I have the version at hand. I tried to recover it with
the old restart2data.cpp, but all the atom number labeling are gone, as seen
in the attached "test" file. If I access with a new LAMMPS executable, it
reads "ERROR: Invalid LAMMPS restart file (../read_restart.cpp:1021)".

I am using lammps-13May14, and I am compiling the latest version now. I will
definitely try the latest stable version once done. Before that, I would
greatly appreciate if anyone can give some hints on solving this problem.

through the git or svn repositories you have access to the entire
development history of LAMMPS.
using the "strings" command on the binary restart, you can see that it
was written by version 27 Nov 2013.

axel.