Added in check for ellipsoid in brownian_asphere

This commit is contained in:
Sam Cameron
2022-03-29 10:46:05 +01:00
parent 0bebe6c428
commit da61b6871a

View File

@ -42,6 +42,9 @@ FixBrownianAsphere::FixBrownianAsphere(LAMMPS *lmp, int narg, char **arg) :
if (dipole_flag && !atom->mu_flag)
error->all(FLERR, "Fix brownian/asphere dipole requires atom attribute mu");
if(!atom->ellipsoid_flag)
error->all(FLERR, "Fix brownian/asphere requires atom style ellipsoid");
}
/* ---------------------------------------------------------------------- */