diff --git a/doc/src/pair_body_rounded_polygon.txt b/doc/src/pair_body_rounded_polygon.txt index 15817f10f8..5ef4a9104b 100644 --- a/doc/src/pair_body_rounded_polygon.txt +++ b/doc/src/pair_body_rounded_polygon.txt @@ -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. diff --git a/doc/src/pair_body_rounded_polyhedron.txt b/doc/src/pair_body_rounded_polyhedron.txt index 29fa90d2cf..81c69fdd62 100644 --- a/doc/src/pair_body_rounded_polyhedron.txt +++ b/doc/src/pair_body_rounded_polyhedron.txt @@ -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. diff --git a/src/BODY/pair_body_rounded_polygon.cpp b/src/BODY/pair_body_rounded_polygon.cpp index c4c09fd677..14ef70f476 100644 --- a/src/BODY/pair_body_rounded_polygon.cpp +++ b/src/BODY/pair_body_rounded_polygon.cpp @@ -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"); diff --git a/src/BODY/pair_body_rounded_polyhedron.cpp b/src/BODY/pair_body_rounded_polyhedron.cpp index 0d73d249b9..2ff209d609 100644 --- a/src/BODY/pair_body_rounded_polyhedron.cpp +++ b/src/BODY/pair_body_rounded_polyhedron.cpp @@ -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");