fix bug in energy tally for 4-atom angle term
This commit is contained in:
@ -382,6 +382,7 @@ void Angle::ev_tally4(int i, int j, int k, int m, int nlocal, int newton_bond,
|
|||||||
if (i < nlocal) energy += eanglefourth;
|
if (i < nlocal) energy += eanglefourth;
|
||||||
if (j < nlocal) energy += eanglefourth;
|
if (j < nlocal) energy += eanglefourth;
|
||||||
if (k < nlocal) energy += eanglefourth;
|
if (k < nlocal) energy += eanglefourth;
|
||||||
|
if (m < nlocal) energy += eanglefourth;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (eflag_atom) {
|
if (eflag_atom) {
|
||||||
|
|||||||
Reference in New Issue
Block a user