replace some numeric constants in Atom and AtomVec classes with enumerators

This commit is contained in:
Axel Kohlmeyer
2020-09-11 18:44:13 -04:00
parent cdd9d693ad
commit 9d0c3bc665
202 changed files with 539 additions and 530 deletions

View File

@ -952,7 +952,7 @@ void DumpImage::create_image()
for (i = 0; i < nchoose; i++) {
atom1 = clist[i];
if (molecular == 1) n = num_bond[atom1];
if (molecular == Atom::MOLECULAR) n = num_bond[atom1];
else {
if (molindex[atom1] < 0) continue;
imol = molindex[atom1];
@ -961,7 +961,7 @@ void DumpImage::create_image()
}
for (m = 0; m < n; m++) {
if (molecular == 1) {
if (molecular == Atom::MOLECULAR) {
btype = bond_type[atom1][m];
atom2 = atom->map(bond_atom[atom1][m]);
} else {