type labels: restart support
This commit is contained in:
5
src/write_restart.cpp
Normal file → Executable file
5
src/write_restart.cpp
Normal file → Executable file
@ -25,6 +25,7 @@
|
||||
#include "force.h"
|
||||
#include "group.h"
|
||||
#include "improper.h"
|
||||
#include "label_map.h"
|
||||
#include "memory.h"
|
||||
#include "modify.h"
|
||||
#include "mpiio.h"
|
||||
@ -520,6 +521,10 @@ void WriteRestart::header()
|
||||
void WriteRestart::type_arrays()
|
||||
{
|
||||
if (atom->mass) write_double_vec(MASS,atom->ntypes,&atom->mass[1]);
|
||||
if (atom->labelmapflag) {
|
||||
write_int(LABELMAP,atom->labelmapflag);
|
||||
atom->lmap->write_restart(fp);
|
||||
}
|
||||
|
||||
// -1 flag signals end of type arrays
|
||||
|
||||
|
||||
Reference in New Issue
Block a user