move enum{IGNORE,WARN,ERROR) into Thermo class and use Thermo:: namespace to reference it

This commit is contained in:
Axel Kohlmeyer
2018-05-09 18:11:31 -04:00
parent dde271db36
commit d8138a5b4c
19 changed files with 66 additions and 73 deletions

View File

@ -36,7 +36,6 @@
using namespace LAMMPS_NS;
enum{IGNORE,WARN,ERROR}; // same as thermo.cpp
enum{II,IJ};
/* ---------------------------------------------------------------------- */
@ -153,7 +152,7 @@ void WriteData::write(char *file)
bigint nblocal = atom->nlocal;
bigint natoms;
MPI_Allreduce(&nblocal,&natoms,1,MPI_LMP_BIGINT,MPI_SUM,world);
if (natoms != atom->natoms && output->thermo->lostflag == ERROR)
if (natoms != atom->natoms && output->thermo->lostflag == Thermo::ERROR)
error->all(FLERR,"Atom count is inconsistent, cannot write data file");
// sum up bond,angle,dihedral,improper counts