.. index:: pair: struct; rgpot::StageTally .. _doxid-structrgpot_1_1_stage_tally: struct rgpot::StageTally ======================== .. toctree:: :hidden: Overview ~~~~~~~~ What forceStage adds up besides the forces. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct StageTally { // fields double :target:`energy` = 0.0; double :target:`virial`[6] = {}; :ref:`PerAtomOut` :target:`atoms` {}; }; .. _details-structrgpot_1_1_stage_tally: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ What forceStage adds up besides the forces. The host's share of the energy and of the virial W = -V sigma, in the Voigt order of :ref:`stress.hpp ` (xx yy zz yz xz xy): all of a pair that only this host lists, half of a pair that both hosts list, and the site energy of each owned atom. Per-atom arrays, when set, take the split of :ref:`PerAtom.hpp ` over nAtoms entries; a copy's entries are written only with HalfList::newton, for the host to add to its owner.