Commit a2b08400 authored by Tim Mattox's avatar Tim Mattox
Browse files

USER-DPD: Add atom_style compatibility checks in fix_eos_*.cpp files.

parent e9fed809
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -36,6 +36,9 @@ FixEOScv::FixEOScv(LAMMPS *lmp, int narg, char **arg) :

  restart_peratom = 1;
  nevery = 1;

  if (atom->dpd_flag != 1)
    error->all(FLERR,"FixEOScv requires atom_style with internal temperature and energies (e.g. dpd)");
}

/* ---------------------------------------------------------------------- */
+3 −0
Original line number Diff line number Diff line
@@ -78,6 +78,9 @@ FixEOStable::FixEOStable(LAMMPS *lmp, int narg, char **arg) :
  spline_table(tb2);
  compute_table(tb2);
  ntables++;

  if (atom->dpd_flag != 1)
    error->all(FLERR,"FixEOStable requires atom_style with internal temperature and energies (e.g. dpd)");
}

/* ---------------------------------------------------------------------- */
+3 −0
Original line number Diff line number Diff line
@@ -117,6 +117,9 @@ FixEOStableRX::FixEOStableRX(LAMMPS *lmp, int narg, char **arg) :

  comm_forward = 3;
  comm_reverse = 2;

  if (atom->dpd_flag != 1)
    error->all(FLERR,"FixEOStableRX requires atom_style with internal temperature and energies (e.g. dpd)");
}

/* ---------------------------------------------------------------------- */