restart input-output format

Dear Lammps Users,

Is there any document on how the ‘restart’ command write the output format (How they actually write the file) ?
Also for input format information for ‘read_data’ and ‘read_restart’ ?
I am sure this read and write function is inside the source code. Can somebody tell me which file I should go through ?

Thanks,
Erik

Dear Lammps Users,
Is there any document on how the 'restart' command write the output format
(How they actually write the file) ?
Also for input format information for 'read_data' and 'read_restart' ?

the data file format is explained at great length in
the documentation of - gasp - the "read_data" command.

restart files are binary don't use a standardized format.
to find out what they contain, you have to read the sources.
there is the beginnings of a developer's guide that explains
the flow of control in lammps. you can use that as a starting
point to read what you want to know from reading the sources.

http://lammps.sandia.gov/doc/Developer.pdf

I am sure this read and write function is inside the source code. Can
somebody tell me which file I should go through ?

grep is your friend.

axel.

src/write_restart.cpp
src/read_restart.cpp
src/read_data.cpp

Steve