add a comment to bond.cpp about per-atom virial and per-atom centroid virial equivalency

This commit is contained in:
Donatas Surblys
2019-10-08 15:41:13 +09:00
parent 20b44f2427
commit cbeba2fa25

View File

@ -91,6 +91,7 @@ void Bond::ev_setup(int eflag, int vflag, int alloc)
vflag_either = vflag;
vflag_global = vflag % 4;
// per-atom virial and per-atom centroid virial are the same for bonds
vflag_atom = vflag / 4;
// reallocate per-atom arrays if necessary