2 #include "EwaldRSpaceAccumulator.h" 3 #include <mcMd/potentials/pair/PairPotential.h> 15 if (!rSpaceEnergy_.isSet()) {
17 pairPotentialPtr_->computeEnergy();
19 return rSpaceEnergy_.value();
27 if (!rSpaceStress_.isSet()) {
29 pairPotentialPtr_->computeStress();
31 return rSpaceStress_.value();
Tensor rSpaceStress()
Return the r-space stress (compute if necessary).
double rSpaceEnergy()
Return the r-space energy (compute if necessary).
A Tensor represents a Cartesian tensor.
Utility classes for scientific computation.
Single-processor Monte Carlo (MC) and molecular dynamics (MD).
#define UTIL_CHECK(condition)
Assertion macro suitable for serial or parallel production code.