Unverified Commit 357716ec authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

correctly check of mu and torque flags as those data structures are always accessed.

parent f9539f9c
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -232,9 +232,7 @@ void PairLJLongDipoleLong::init_style()
  if (!atom->q_flag && (ewald_order&(1<<1)))
    error->all(FLERR,
        "Invoking coulombic in pair style lj/long/dipole/long requires atom attribute q");
  if (!atom->mu && (ewald_order&(1<<3)))
    error->all(FLERR,"Pair lj/long/dipole/long requires atom attributes mu, torque");
  if (!atom->torque && (ewald_order&(1<<3)))
  if (!atom->mu_flag || !atom->torque_flag)
    error->all(FLERR,"Pair lj/long/dipole/long requires atom attributes mu, torque");

  neighbor->request(this,instance_me);