From da61b6871a118647cd17a8918bebf7becbb8187b Mon Sep 17 00:00:00 2001 From: Sam Cameron Date: Tue, 29 Mar 2022 10:46:05 +0100 Subject: [PATCH] Added in check for ellipsoid in brownian_asphere --- src/BROWNIAN/fix_brownian_asphere.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/BROWNIAN/fix_brownian_asphere.cpp b/src/BROWNIAN/fix_brownian_asphere.cpp index 7c65ecb8e9..68199a22c1 100644 --- a/src/BROWNIAN/fix_brownian_asphere.cpp +++ b/src/BROWNIAN/fix_brownian_asphere.cpp @@ -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"); } /* ---------------------------------------------------------------------- */