Gromacs  2021.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions
ForceHelperBuffers Class Reference

#include <gromacs/mdtypes/forcerec.h>

Description

Helper force buffers for ForceOutputs.

This class stores intermediate force buffers that are used internally in the force calculation and which are reduced into the output force buffer passed to the force calculation.

Public Member Functions

 ForceHelperBuffers (bool haveDirectVirialContributions)
 Constructs helper buffers. More...
 
bool haveDirectVirialContributions () const
 Returns whether we have a direct virial contribution force buffer.
 
gmx::ArrayRef< gmx::RVecforceBufferForDirectVirialContributions ()
 Returns the buffer for direct virial contributions.
 
gmx::ArrayRef< gmx::RVecshiftForces ()
 Returns the buffer for shift forces, size SHIFTS.
 
void resize (int numAtoms)
 Resizes the direct virial contribution buffer, when present.
 

Constructor & Destructor Documentation

ForceHelperBuffers::ForceHelperBuffers ( bool  haveDirectVirialContributions)

Constructs helper buffers.

When the forces that will be accumulated with help of these buffers have direct virial contributions, set the parameter to true, so an extra force buffer is available for these forces to enable correct virial computation.


The documentation for this class was generated from the following files: