Interface for energy accumulators.
More...
#include <energy.h>
|
| enum | Scheme { SERIAL,
OPENMP,
PARALLEL,
INVALID
} |
| |
|
|
Scheme | scheme = Scheme::SERIAL |
| |
|
|
double | value = 0.0 |
| | accumulated energy
|
| |
Interface for energy accumulators.
The energy accumulator is used to add up energies between two particles. This can be done instantly (see InstantEnergyAccumulator) or delaying the evaluation until the energy is needed (DelayedEnergyAccumulator). The latter may be used with parallelism.
- Todo:
- See https://www.youtube.com/watch?v=3LsRYnRDSRA for a bizarre example where a custom
struct Tpair { const Particle &first, second; }; outperforms std::pair due to missed compiler optimization.
The documentation for this class was generated from the following files: