When a molecule extends across the periodic boundary atoms that belong to the same molecule interact through different periodic copies. When computing the molecular virial, atoms i1, j1, k1 are associated with the molecule centered in 1, while the atoms l2, m2, n2 are associated with a copy that is positioned at 2 = 1 + . Therefore, in implementing the molecular virial, it is necessary to allocate multiple molecular coordinates to a single molecule.