Commit 21f74924 authored by Trung Nguyen's avatar Trung Nguyen
Browse files

Required newton on for pair styles body rounded/polygon and rounded/polyhedron

parent c3a32dde
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -93,9 +93,6 @@ These pair styles are part of the BODY package. They are only enabled
if LAMMPS was built with that package.  See the "Making
LAMMPS"_Section_start.html#start_3 section for more info.

NOTE: is there a newton on or off requirement for using this pair style?
If so, say something like this:

This pair style requires the "newton"_newton.html setting to be "on"
for pair interactions.

+0 −3
Original line number Diff line number Diff line
@@ -94,9 +94,6 @@ These pair styles are part of the BODY package. They are only enabled
if LAMMPS was built with that package.  See the "Making
LAMMPS"_Section_start.html#start_3 section for more info.

NOTE: is there a newton on or off requirement for using this pair style?
If so, say something like this:

This pair style requires the "newton"_newton.html setting to be "on"
for pair interactions.

+4 −0
Original line number Diff line number Diff line
@@ -428,6 +428,10 @@ void PairBodyRoundedPolygon::init_style()
               "body style rounded/polygon");
  bptr = (BodyRoundedPolygon *) avec->bptr;

  if (force->newton_pair == 0)
    error->all(FLERR,"Pair style body/rounded/polygon requires "
               "newton pair on");

  if (comm->ghost_velocity == 0)
    error->all(FLERR,"Pair body/rounded/polygon requires "
               "ghost atoms store velocity");
+4 −0
Original line number Diff line number Diff line
@@ -400,6 +400,10 @@ void PairBodyRoundedPolyhedron::init_style()
               "body style rounded/polyhedron");
  bptr = (BodyRoundedPolyhedron *) avec->bptr;

  if (force->newton_pair == 0)
    error->all(FLERR,"Pair style body/rounded/polyhedron requires "
               "newton pair on");

  if (comm->ghost_velocity == 0)
    error->all(FLERR,"Pair body/rounded/polyhedron requires "
               "ghost atoms store velocity");