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

@ -1856,7 +1856,7 @@ void Thermo::compute_eimp()
void Thermo::compute_emol()
{
double tmp = 0.0;
if (atom->molecular) {
if (atom->molecular != Atom::ATOMIC) {
if (force->bond) tmp += force->bond->energy;
if (force->angle) tmp += force->angle->energy;
if (force->dihedral) tmp += force->dihedral->energy;