Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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)");
}
/* ---------------------------------------------------------------------- */
......
......@@ -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)");
}
/* ---------------------------------------------------------------------- */
......
......@@ -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)");
}
/* ---------------------------------------------------------------------- */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment