add warning when writing incomplete data file due to bonus data

This commit is contained in:
Axel Kohlmeyer
2019-02-27 14:57:25 -05:00
parent a0450fbd2b
commit 0efc3765f8

View File

@ -177,6 +177,17 @@ void WriteData::write(char *file)
MPI_Allreduce(&nimpropers_local,&nimpropers,1,MPI_LMP_BIGINT,MPI_SUM,world);
}
// check for bonus data.
if (me == 0) {
if ((atom->nellipsoids > 0)
|| (atom->nlines > 0)
|| (atom->ntris > 0)
|| (atom->nbodies > 0))
error->warning(FLERR,"System has ellipsoids, lines, triangles, or bodies. "
"Those are not yet supported by write_data. The data file "
"will thus be incomplete.");
}
// open data file
if (me == 0) {