Commit fbf7df14 authored by sjplimp's avatar sjplimp Committed by GitHub
Browse files

Merge pull request #212 from timattox/USER-DPD_fix_eos_atom_style_checks

USER-DPD: Add atom_style compatibility checks in fix_eos_*.cpp files.
parents 6f116292 a2b08400
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)");
}

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