Multi Resolution Molecular Dynamics 0.4.0
Multi Resolution Molecular Dynamics
Loading...
Searching...
No Matches
mrmd::data::EnergyAndVirialReducer Struct Reference

#include <data/EnergyAndVirialReducer.hpp>

Public Member Functions

 EnergyAndVirialReducer ()=default
 EnergyAndVirialReducer (const EnergyAndVirialReducer &rhs)=default
EnergyAndVirialReducer & operator= (const EnergyAndVirialReducer &rhs)=default
KOKKOS_INLINE_FUNCTION EnergyAndVirialReducer & operator+= (const EnergyAndVirialReducer &src)

Public Attributes

real_t energy = 0_r
real_t virial = 0_r

Constructor & Destructor Documentation

◆ EnergyAndVirialReducer() [1/2]

mrmd::data::EnergyAndVirialReducer::EnergyAndVirialReducer ( )
default

◆ EnergyAndVirialReducer() [2/2]

mrmd::data::EnergyAndVirialReducer::EnergyAndVirialReducer ( const EnergyAndVirialReducer & rhs)
default

Member Function Documentation

◆ operator+=()

KOKKOS_INLINE_FUNCTION EnergyAndVirialReducer & mrmd::data::EnergyAndVirialReducer::operator+= ( const EnergyAndVirialReducer & src)
inline

◆ operator=()

EnergyAndVirialReducer & mrmd::data::EnergyAndVirialReducer::operator= ( const EnergyAndVirialReducer & rhs)
default

Member Data Documentation

◆ energy

real_t mrmd::data::EnergyAndVirialReducer::energy = 0_r

◆ virial

real_t mrmd::data::EnergyAndVirialReducer::virial = 0_r

The documentation for this struct was generated from the following file: