type labels: restart support

This commit is contained in:
Jacob Gissinger
2021-01-19 21:52:22 -05:00
parent e138cf2476
commit 739dc46fab
14 changed files with 140 additions and 26 deletions

5
src/write_restart.cpp Normal file → Executable file
View 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