A wiggly line of atoms. More...
#include <AtomDistribution.h>

Public Member Functions | |
| void | frame (std::vector< Vector > &posToUpdate, std::vector< double > &box, unsigned step, Random &rng) |
| Update the input vectors with the position and the box of the frame. | |
| void | frame (View< Vector > posToUpdate, View< double, 9 > box, unsigned step, Random &rng) override |
| Update the input vectors with the position and the box of the frame. | |
| virtual bool | overrideNat (unsigned &) |
| If necessary changes the number of atoms, returns true if that number has been changed. | |
Static Public Member Functions | |
| static std::unique_ptr< AtomDistribution > | getAtomDistribution (std::string_view atomicDistr) |
A wiggly line of atoms.
|
inherited |
Update the input vectors with the position and the box of the frame.
|
overridevirtual |
Update the input vectors with the position and the box of the frame.
Implements PLMD::AtomDistribution.
|
staticinherited |
|
inlinevirtualinherited |
If necessary changes the number of atoms, returns true if that number has been changed.
This is used principally in the benchmark. All the atoms distributions usually acts all the atoms passed by the vector of positions, so this does not change the input
But the "reading file" ones will only work if the number of atoms is the same of the one in the file, so this set the input to that number
And in case of the ones that replicate the trajectory this multiplies the input by the number of replicated "systems" this this is needed to inform benchmark that if you asked for replicating N atoms X*Y*Z times it will need an array of N*X*Y*Z atoms Outside of the specific usecase of the benchmark this is less important, because replicate will generate the inner trjectory on a limited number of atoms and the it will replicate it
Reimplemented in PLMD::fileTraj, PLMD::repliedTrajectory, and PLMD::scaledTrajectory.
Hosted by GitHub
|
1.13.2
|