consistently compare atom->molecular against enumerator constants

This commit is contained in:
Axel Kohlmeyer
2021-03-14 01:25:22 -05:00
parent a1b26fdfc4
commit 8c4918457f
79 changed files with 89 additions and 89 deletions

View File

@ -670,7 +670,7 @@ void Atom::create_avec(const std::string &style, int narg, char **arg, int trysu
// map style will be reset to array vs hash to by map_init()
molecular = avec->molecular;
if (molecular && tag_enable == 0)
if ((molecular != Atom::ATOMIC) && (tag_enable == 0))
error->all(FLERR,"Atom IDs must be used for molecular systems");
if (molecular != Atom::ATOMIC) map_style = MAP_YES;
}