ensure that fix efield is initialized before accessing its data.

This commit is contained in:
Axel Kohlmeyer
2021-10-11 15:06:24 -04:00
parent 6d2b32f0b2
commit 2290ade2f2
4 changed files with 140 additions and 139 deletions

View File

@ -200,9 +200,7 @@ void FixEfield::init()
error->all(FLERR,"Fix efield with dipoles cannot use atom-style variables");
if (muflag && update->whichflag == 2 && comm->me == 0)
error->warning(FLERR,
"The minimizer does not re-orient dipoles "
"when using fix efield");
error->warning(FLERR, "The minimizer does not re-orient dipoles when using fix efield");
if (varflag == CONSTANT && estyle != NONE)
error->all(FLERR,"Cannot use variable energy with "