Gromacs
2025-dev-20240812-545ca5b
|
#include <gromacs/nbnxm/atomdata.h>
Struct that holds force and energy output buffers.
Public Member Functions | |
nbnxn_atomdata_output_t (Nbnxm::KernelType kernelType, int numEnergyGroups, gmx::PinningPolicy pinningPolicy) | |
Constructor. More... | |
nbnxn_atomdata_output_t (nbnxn_atomdata_output_t &&) noexcept | |
Move constructor. | |
~nbnxn_atomdata_output_t () | |
Destructor. More... | |
Public Attributes | |
gmx::HostVector< real > | f |
f, size natoms*fstride | |
gmx::HostVector< real > | fshift |
Shift force array, size c_numShiftVectors*DIM. | |
gmx::HostVector< real > | Vvdw |
Temporary Van der Waals group energy storage. | |
gmx::HostVector< real > | Vc |
Temporary Coulomb group energy storage. | |
std::unique_ptr < gmx::EnergyAccumulator < false, true > > | accumulatorSingleEnergies |
Accumulator for energy output with a single energy group. | |
std::unique_ptr < gmx::EnergyAccumulator< true, true > > | accumulatorGroupEnergies |
Accumulator for energy output with multiple energy groups. | |
nbnxn_atomdata_output_t::nbnxn_atomdata_output_t | ( | Nbnxm::KernelType | kernelType, |
int | numEnergyGroups, | ||
gmx::PinningPolicy | pinningPolicy | ||
) |
Constructor.
[in] | kernelType | Type of non-bonded kernel |
[in] | numEnergyGroups | The number of energy groups |
[in] | pinningPolicy | Sets the pinning policy for all buffers used on the GPU |
|
default |
Destructor.