consistently compare atom->molecular against enumerator constants
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user