consistently check for newton pair off and align error message rest of LAMMPS

also add checks for required charge property for pair styles with coulomb
This commit is contained in:
Axel Kohlmeyer
2021-05-22 13:17:58 -04:00
parent 0e1fa44b9d
commit 7a17780a82
53 changed files with 71 additions and 71 deletions

View File

@ -139,7 +139,7 @@ void PairBeckGPU::compute(int eflag, int vflag)
void PairBeckGPU::init_style()
{
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with beck/gpu pair style");
error->all(FLERR,"Pair style beck/gpu requires newton pair off");
// Repeat cutsq calculation because done after call to init_style
double maxcut = -1.0;

View File

@ -156,11 +156,9 @@ void PairBornCoulLongCSGPU::compute(int eflag, int vflag)
void PairBornCoulLongCSGPU::init_style()
{
if (!atom->q_flag)
error->all(FLERR,
"Pair style born/coul/long/cs/gpu requires atom attribute q");
error->all(FLERR, "Pair style born/coul/long/cs/gpu requires atom attribute q");
if (force->newton_pair)
error->all(FLERR,
"Cannot use newton pair with born/coul/long/cs/gpu pair style");
error->all(FLERR, "Pair style born/coul/long/cs/gpu requires newton pair off");
// Repeat cutsq calculation because done after call to init_style
double maxcut = -1.0;

View File

@ -151,11 +151,9 @@ void PairBornCoulLongGPU::compute(int eflag, int vflag)
void PairBornCoulLongGPU::init_style()
{
if (!atom->q_flag)
error->all(FLERR,
"Pair style born/coul/long/gpu requires atom attribute q");
error->all(FLERR, "Pair style born/coul/long/gpu requires atom attribute q");
if (force->newton_pair)
error->all(FLERR,
"Cannot use newton pair with born/coul/long/gpu pair style");
error->all(FLERR, "Pair style born/coul/long/gpu requires newton pair off");
// Repeat cutsq calculation because done after call to init_style
double maxcut = -1.0;

View File

@ -145,9 +145,10 @@ void PairBornCoulWolfCSGPU::compute(int eflag, int vflag)
void PairBornCoulWolfCSGPU::init_style()
{
if (!atom->q_flag)
error->all(FLERR, "Pair style born/coul/wolf/cs/gpu requires atom attribute q");
if (force->newton_pair)
error->all(FLERR,
"Cannot use newton pair with born/coul/wolf/cs/gpu pair style");
error->all(FLERR, "Pair style born/coul/wolf/cs/gpu requires newton pair off");
// Repeat cutsq calculation because done after call to init_style
double maxcut = -1.0;

View File

@ -143,9 +143,10 @@ void PairBornCoulWolfGPU::compute(int eflag, int vflag)
void PairBornCoulWolfGPU::init_style()
{
if (!atom->q_flag)
error->all(FLERR, "Pair style born/coul/wolf/gpu requires atom attribute q");
if (force->newton_pair)
error->all(FLERR,
"Cannot use newton pair with born/coul/wolf/gpu pair style");
error->all(FLERR, "Pair style born/coul/wolf/gpu requires newton pair off");
// Repeat cutsq calculation because done after call to init_style
double maxcut = -1.0;

View File

@ -135,7 +135,7 @@ void PairBornGPU::compute(int eflag, int vflag)
void PairBornGPU::init_style()
{
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with born/gpu pair style");
error->all(FLERR,"Pair style born/gpu requires newton pair off");
// Repeat cutsq calculation because done after call to init_style
double maxcut = -1.0;

View File

@ -137,9 +137,10 @@ void PairBuckCoulCutGPU::compute(int eflag, int vflag)
void PairBuckCoulCutGPU::init_style()
{
if (!atom->q_flag)
error->all(FLERR, "Pair style buck/coul/cut/gpu requires atom attribute q");
if (force->newton_pair)
error->all(FLERR,
"Cannot use newton pair with buck/coul/cut/gpu pair style");
error->all(FLERR, "Pair style buck/coul/cut/gpu requires newton pair off");
// Repeat cutsq calculation because done after call to init_style
double maxcut = -1.0;

View File

@ -147,11 +147,9 @@ void PairBuckCoulLongGPU::compute(int eflag, int vflag)
void PairBuckCoulLongGPU::init_style()
{
if (!atom->q_flag)
error->all(FLERR,
"Pair style buck/coul/long/gpu requires atom attribute q");
error->all(FLERR, "Pair style buck/coul/long/gpu requires atom attribute q");
if (force->newton_pair)
error->all(FLERR,
"Cannot use newton pair with buck/coul/long/gpu pair style");
error->all(FLERR, "Pair style buck/coul/long/gpu requires newton pair off");
// Repeat cutsq calculation because done after call to init_style
double maxcut = -1.0;

View File

@ -133,7 +133,7 @@ void PairBuckGPU::compute(int eflag, int vflag)
void PairBuckGPU::init_style()
{
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with buck/gpu pair style");
error->all(FLERR,"Pair style buck/gpu requires newton pair off");
// Repeat cutsq calculation because done after call to init_style
double maxcut = -1.0;

View File

@ -134,7 +134,7 @@ void PairColloidGPU::compute(int eflag, int vflag)
void PairColloidGPU::init_style()
{
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with colloid/gpu pair style");
error->all(FLERR,"Pair style colloid/gpu requires newton pair off");
// Repeat cutsq calculation because done after call to init_style
double maxcut = -1.0;

View File

@ -138,7 +138,7 @@ void PairCoulCutGPU::init_style()
error->all(FLERR,"Pair style coul/cut/gpu requires atom attribute q");
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with coul/cut/gpu pair style");
error->all(FLERR,"Pair style coul/cut/gpu requires newton pair off");
// Repeat cutsq calculation because done after call to init_style
double maxcut = -1.0;

View File

@ -139,7 +139,7 @@ void PairCoulDebyeGPU::init_style()
error->all(FLERR,"Pair style coul/debye/gpu requires atom attribute q");
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with coul/debye/gpu pair style");
error->all(FLERR,"Pair style coul/debye/gpu requires newton pair off");
// Repeat cutsq calculation because done after call to init_style
double maxcut = -1.0;

View File

@ -150,7 +150,7 @@ void PairCoulDSFGPU::init_style()
error->all(FLERR,"Pair style coul/dsf/gpu requires atom attribute q");
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with coul/dsf/gpu pair style");
error->all(FLERR,"Pair style coul/dsf/gpu requires newton pair off");
// Repeat cutsq calculation because done after call to init_style
double maxcut = -1.0;

View File

@ -153,7 +153,7 @@ void PairCoulLongCSGPU::init_style()
if (!atom->q_flag)
error->all(FLERR,"Pair style coul/long/cs/gpu requires atom attribute q");
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with coul/long/cs/gpu pair style");
error->all(FLERR,"Pair style coul/long/cs/gpu requires newton pair off");
// Call init_one calculation make sure scale is correct
for (int i = 1; i <= atom->ntypes; i++) {

View File

@ -148,7 +148,7 @@ void PairCoulLongGPU::init_style()
if (!atom->q_flag)
error->all(FLERR,"Pair style coul/long/gpu requires atom attribute q");
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with coul/long/gpu pair style");
error->all(FLERR,"Pair style coul/long/gpu requires newton pair off");
// Call init_one calculation make sure scale is correct
for (int i = 1; i <= atom->ntypes; i++) {

View File

@ -280,7 +280,7 @@ void PairDPDGPU::compute(int eflag, int vflag)
void PairDPDGPU::init_style()
{
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with dpd/gpu pair style");
error->all(FLERR,"Pair style dpd/gpu requires newton pair off");
// Repeat cutsq calculation because done after call to init_style
double maxcut = -1.0;

View File

@ -299,7 +299,7 @@ void PairDPDTstatGPU::compute(int eflag, int vflag)
void PairDPDTstatGPU::init_style()
{
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with dpd/tstat/gpu pair style");
error->all(FLERR,"Pair style dpd/tstat/gpu requires newton pair off");
// Repeat cutsq calculation because done after call to init_style
double maxcut = -1.0;

View File

@ -157,7 +157,7 @@ void PairEAMAlloyGPU::compute(int eflag, int vflag)
void PairEAMAlloyGPU::init_style()
{
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with eam/alloy/gpu pair style");
error->all(FLERR,"Pair style eam/alloy/gpu requires newton pair off");
// convert read-in file(s) to arrays and spline them

View File

@ -156,7 +156,7 @@ void PairEAMFSGPU::compute(int eflag, int vflag)
void PairEAMFSGPU::init_style()
{
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with eam/fs/gpu pair style");
error->all(FLERR,"Pair style eam/fs/gpu requires newton pair off");
// convert read-in file(s) to arrays and spline them

View File

@ -156,7 +156,7 @@ void PairEAMGPU::compute(int eflag, int vflag)
void PairEAMGPU::init_style()
{
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with eam/gpu pair style");
error->all(FLERR,"Pair style eam/gpu requires newton pair off");
// convert read-in file(s) to arrays and spline them

View File

@ -131,7 +131,7 @@ void PairGaussGPU::compute(int eflag, int vflag)
void PairGaussGPU::init_style()
{
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with gauss/gpu pair style");
error->all(FLERR,"Pair style gauss/gpu requires newton pair off");
// Repeat cutsq calculation because done after call to init_style
double maxcut = -1.0;

View File

@ -161,7 +161,7 @@ void PairGayBerneGPU::init_style()
if (!avec)
error->all(FLERR,"Pair gayberne/gpu requires atom style ellipsoid");
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with gayberne/gpu pair style");
error->all(FLERR,"Pair style gayberne/gpu requires newton pair off");
if (!atom->ellipsoid_flag)
error->all(FLERR,"Pair gayberne/gpu requires atom style ellipsoid");

View File

@ -132,7 +132,7 @@ void PairLJ96CutGPU::init_style()
cut_respa = nullptr;
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with lj96/cut/gpu pair style");
error->all(FLERR,"Pair style lj96/cut/gpu requires newton pair off");
// Repeat cutsq calculation because done after call to init_style
double maxcut = -1.0;

View File

@ -128,11 +128,9 @@ void PairLJCharmmCoulCharmmGPU::compute(int eflag, int vflag)
void PairLJCharmmCoulCharmmGPU::init_style()
{
if (!atom->q_flag)
error->all(FLERR,
"Pair style lj/charmm/coul/long/gpu requires atom attribute q");
error->all(FLERR, "Pair style lj/charmm/coul/long/gpu requires atom attribute q");
if (force->newton_pair)
error->all(FLERR,
"Cannot use newton pair with lj/charmm/coul/long/gpu pair style");
error->all(FLERR, "Pair style lj/charmm/coul/long/gpu requires newton pair off");
// Repeated cutsq calculation in init_one() is required for GPU package

View File

@ -153,7 +153,7 @@ void PairLJCharmmCoulLongGPU::init_style()
if (!atom->q_flag)
error->all(FLERR,"Pair style lj/charmm/coul/long/gpu requires atom attribute q");
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with lj/charmm/coul/long/gpu pair style");
error->all(FLERR,"Pair style lj/charmm/coul/long/gpu requires newton pair off");
// Repeat cutsq calculation because done after call to init_style

View File

@ -148,7 +148,7 @@ void PairLJClass2CoulLongGPU::init_style()
if (!atom->q_flag)
error->all(FLERR,"Pair style lj/class2/coul/long/gpu requires atom attribute q");
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with lj/class2/coul/long/gpu pair style");
error->all(FLERR,"Pair style lj/class2/coul/long/gpu requires newton pair off");
// Repeat cutsq calculation because done after call to init_style
double maxcut = -1.0;

View File

@ -130,7 +130,7 @@ void PairLJClass2GPU::compute(int eflag, int vflag)
void PairLJClass2GPU::init_style()
{
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with lj/class2/gpu pair style");
error->all(FLERR,"Pair style lj/class2/gpu requires newton pair off");
// Repeat cutsq calculation because done after call to init_style
double maxcut = -1.0;

View File

@ -136,7 +136,7 @@ void PairLJCubicGPU::compute(int eflag, int vflag)
void PairLJCubicGPU::init_style()
{
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with lj/cubic/gpu pair style");
error->all(FLERR,"Pair style lj/cubic/gpu requires newton pair off");
// Repeat cutsq calculation because done after call to init_style
double maxcut = -1.0;

View File

@ -140,7 +140,7 @@ void PairLJCutCoulCutGPU::init_style()
error->all(FLERR,"Pair style lj/cut/coul/cut/gpu requires atom attribute q");
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with lj/cut/coul/cut/gpu pair style");
error->all(FLERR,"Pair style lj/cut/coul/cut/gpu requires newton pair off");
// Repeat cutsq calculation because done after call to init_style
double maxcut = -1.0;

View File

@ -142,7 +142,7 @@ void PairLJCutCoulDebyeGPU::init_style()
error->all(FLERR,"Pair style lj/cut/coul/debye/gpu requires atom attribute q");
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with lj/cut/coul/debye/gpu pair style");
error->all(FLERR,"Pair style lj/cut/coul/debye/gpu requires newton pair off");
// Repeat cutsq calculation because done after call to init_style
double maxcut = -1.0;

View File

@ -152,7 +152,7 @@ void PairLJCutCoulDSFGPU::init_style()
error->all(FLERR,"Pair style lj/cut/coul/dsf/gpu requires atom attribute q");
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with lj/cut/coul/dsf/gpu pair style");
error->all(FLERR,"Pair style lj/cut/coul/dsf/gpu requires newton pair off");
// Repeat cutsq calculation because done after call to init_style
double maxcut = -1.0;

View File

@ -153,7 +153,7 @@ void PairLJCutCoulLongGPU::init_style()
if (!atom->q_flag)
error->all(FLERR,"Pair style lj/cut/coul/long/gpu requires atom attribute q");
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with lj/cut/coul/long/gpu pair style");
error->all(FLERR,"Pair style lj/cut/coul/long/gpu requires newton pair off");
// Repeat cutsq calculation because done after call to init_style
double maxcut = -1.0;

View File

@ -141,8 +141,11 @@ void PairLJCutCoulMSMGPU::init_style()
{
cut_respa = nullptr;
if (!atom->q_flag)
error->all(FLERR,"Pair style lj/cut/coul/cut/gpu requires atom attribute q");
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with lj/cut/coul/msm/gpu pair style");
error->all(FLERR,"Pair style lj/cut/coul/msm/gpu requires newton pair off");
if (force->kspace->scalar_pressure_flag)
error->all(FLERR,"Must use 'kspace_modify pressure/scalar no' with GPU MSM Pair styles");

View File

@ -144,7 +144,7 @@ void PairLJCutDipoleCutGPU::init_style()
error->all(FLERR,"Pair dipole/cut/gpu requires atom attributes q, mu, torque");
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with dipole/cut/gpu pair style");
error->all(FLERR,"Pair style dipole/cut/gpu requires newton pair off");
if (strcmp(update->unit_style,"electron") == 0)
error->all(FLERR,"Cannot (yet) use 'electron' units with dipoles");

View File

@ -156,7 +156,7 @@ void PairLJCutDipoleLongGPU::init_style()
error->all(FLERR,"Pair dipole/cut/gpu requires atom attributes q, mu, torque");
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with dipole/cut/gpu pair style");
error->all(FLERR,"Pair style dipole/cut/gpu requires newton pair off");
if (strcmp(update->unit_style,"electron") == 0)
error->all(FLERR,"Cannot (yet) use 'electron' units with dipoles");

View File

@ -136,7 +136,7 @@ void PairLJCutGPU::init_style()
cut_respa = nullptr;
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with lj/cut/gpu pair style");
error->all(FLERR,"Pair style lj/cut/gpu requires newton pair off");
// Repeat cutsq calculation because done after call to init_style
double maxcut = -1.0;

View File

@ -167,8 +167,9 @@ void PairLJCutTIP4PLongGPU::init_style()
if (atom->tag_enable == 0)
error->all(FLERR,"Pair style lj/cut/tip4p/long/gpu requires atom IDs");
if (!atom->q_flag)
error->all(FLERR,
"Pair style lj/cut/tip4p/long/gpu requires atom attribute q");
error->all(FLERR, "Pair style lj/cut/tip4p/long/gpu requires atom attribute q");
if (force->newton_pair)
error->all(FLERR,"Pair style lj/cut/tip4p/long/gpu requires newton pair off");
if (force->bond == nullptr)
error->all(FLERR,"Must use a bond style with TIP4P potential");
if (force->angle == nullptr)
@ -219,9 +220,10 @@ void PairLJCutTIP4PLongGPU::init_style()
cell_size = (cut_coul+qdist+blen) + neighbor->skin;
}
if (comm->cutghostuser < cell_size) {
comm->cutghostuser = cell_size;
if (comm->me == 0)
error->warning(FLERR,"Increasing communication cutoff for TIP4P GPU style");
error->warning(FLERR,"Increasing communication cutoff from {:.8} "
"to {:.8} for TIP4P GPU style",comm->cutghostuser,cell_size);
comm->cutghostuser = cell_size;
}
int mnf = 5e-2 * neighbor->oneatom;

View File

@ -153,7 +153,7 @@ void PairLJExpandCoulLongGPU::init_style()
if (!atom->q_flag)
error->all(FLERR,"Pair style lj/cut/coul/long/gpu requires atom attribute q");
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with lj/cut/coul/long/gpu pair style");
error->all(FLERR,"Pair style lj/cut/coul/long/gpu requires newton pair off");
// Repeat cutsq calculation because done after call to init_style
double maxcut = -1.0;

View File

@ -133,7 +133,7 @@ void PairLJExpandGPU::compute(int eflag, int vflag)
void PairLJExpandGPU::init_style()
{
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with lj/expand/gpu pair style");
error->all(FLERR,"Pair style lj/expand/gpu requires newton pair off");
// Repeat cutsq calculation because done after call to init_style
double maxcut = -1.0;

View File

@ -135,7 +135,7 @@ void PairLJGromacsGPU::compute(int eflag, int vflag)
void PairLJGromacsGPU::init_style()
{
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with lj/gromacs/gpu pair style");
error->all(FLERR,"Pair style lj/gromacs/gpu requires newton pair off");
// Repeat cutsq calculation because done after call to init_style
double maxcut = -1.0;

View File

@ -157,7 +157,7 @@ void PairLJSDKCoulLongGPU::init_style()
if (!atom->q_flag)
error->all(FLERR,"Pair style lj/sdk/coul/long/gpu requires atom attribute q");
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with lj/sdk/coul/long/gpu pair style");
error->all(FLERR,"Pair style lj/sdk/coul/long/gpu requires newton pair off");
// Repeat cutsq calculation because done after call to init_style
double maxcut = -1.0;

View File

@ -138,7 +138,7 @@ void PairLJSDKGPU::compute(int eflag, int vflag)
void PairLJSDKGPU::init_style()
{
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with lj/sdk/gpu pair style");
error->all(FLERR,"Pair style lj/sdk/gpu requires newton pair off");
// Repeat cutsq calculation because done after call to init_style
double maxcut = -1.0;

View File

@ -143,7 +143,7 @@ void PairLJSFDipoleSFGPU::init_style()
error->all(FLERR,"Pair dipole/sf/gpu requires atom attributes q, mu, torque");
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with dipole/sf/gpu pair style");
error->all(FLERR,"Pair style dipole/sf/gpu requires newton pair off");
if (strcmp(update->unit_style,"electron") == 0)
error->all(FLERR,"Cannot (yet) use 'electron' units with dipoles");

View File

@ -137,7 +137,7 @@ void PairLJSmoothGPU::init_style()
{
//cut_respa = nullptr;
if (force->newton_pair) error->all(FLERR, "Cannot use newton pair with lj/smooth/gpu pair style");
if (force->newton_pair) error->all(FLERR, "Pair style lj/smooth/gpu requires newton pair off");
// Repeat cutsq calculation because done after call to init_style
double maxcut = -1.0;

View File

@ -133,7 +133,7 @@ void PairMIECutGPU::init_style()
cut_respa = nullptr;
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with mie/cut/gpu pair style");
error->all(FLERR,"Pair style mie/cut/gpu requires newton pair off");
// Repeat cutsq calculation because done after call to init_style
double maxcut = -1.0;

View File

@ -129,7 +129,7 @@ void PairMorseGPU::compute(int eflag, int vflag)
void PairMorseGPU::init_style()
{
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with morse/gpu pair style");
error->all(FLERR,"Pair style morse/gpu requires newton pair off");
// Repeat cutsq calculation because done after call to init_style
double maxcut = -1.0;

View File

@ -160,7 +160,7 @@ void PairRESquaredGPU::compute(int eflag, int vflag)
void PairRESquaredGPU::init_style()
{
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with resquared/gpu pair style");
error->all(FLERR,"Pair style resquared/gpu requires newton pair off");
if (!atom->ellipsoid_flag)
error->all(FLERR,"Pair resquared/gpu requires atom style ellipsoid");

View File

@ -134,7 +134,7 @@ void PairSoftGPU::compute(int eflag, int vflag)
void PairSoftGPU::init_style()
{
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with soft/gpu pair style");
error->all(FLERR,"Pair style soft/gpu requires newton pair off");
// Repeat cutsq calculation because done after call to init_style
double maxcut = -1.0;

View File

@ -133,7 +133,7 @@ void PairTableGPU::compute(int eflag, int vflag)
void PairTableGPU::init_style()
{
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with table/gpu pair style");
error->all(FLERR,"Pair style table/gpu requires newton pair off");
int ntypes = atom->ntypes;

View File

@ -137,7 +137,7 @@ void PairUFMGPU::init_style()
// cut_respa = nullptr;
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with ufm/gpu pair style");
error->all(FLERR,"Pair style ufm/gpu requires newton pair off");
// Repeat cutsq calculation because done after call to init_style
double maxcut = -1.0;

View File

@ -142,7 +142,7 @@ void PairYukawaColloidGPU::init_style()
error->all(FLERR,"Pair yukawa/colloid/gpu requires atom style sphere");
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with yukawa/colloid/gpu pair style");
error->all(FLERR,"Pair style yukawa/colloid/gpu requires newton pair off");
// Repeat cutsq calculation because done after call to init_style
double maxcut = -1.0;

View File

@ -131,7 +131,7 @@ void PairYukawaGPU::compute(int eflag, int vflag)
void PairYukawaGPU::init_style()
{
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with yukawa/gpu pair style");
error->all(FLERR,"Pair style yukawa/gpu requires newton pair off");
// Repeat cutsq calculation because done after call to init_style
double maxcut = -1.0;

View File

@ -133,7 +133,7 @@ void PairZBLGPU::compute(int eflag, int vflag)
void PairZBLGPU::init_style()
{
if (force->newton_pair)
error->all(FLERR,"Cannot use newton pair with zbl/gpu pair style");
error->all(FLERR,"Pair style zbl/gpu requires newton pair off");
// Repeat cutsq calculation because done after call to init_style
double maxcut = -1.0;