#include <gromacs/mdlib/mdatoms.h>
Contains a C-style t_mdatoms while managing some of its memory with C++ vectors with allocators.
The group-scheme kernels need to use a plain C-style t_mdatoms, so this type combines that with the memory management needed for efficient PME on GPU transfers.
- Todo:
- Refactor this class and rename MDAtoms once the group scheme is removed.
|
std::unique_ptr< MDAtoms > | makeMDAtoms (FILE *fp, const gmx_mtop_t &mtop, const t_inputrec &ir, bool rankHasPmeGpuTask) |
| Builder function.
|
|
void gmx::MDAtoms::reserve |
( |
int |
newCapacity | ) |
|
Reserves memory.
- Exceptions
-
std::bad_alloc | If out of memory. |
void gmx::MDAtoms::resize |
( |
int |
newSize | ) |
|
Resizes memory.
- Exceptions
-
std::bad_alloc | If out of memory. |
The documentation for this class was generated from the following files:
- src/gromacs/mdlib/mdatoms.h
- src/gromacs/mdlib/mdatoms.cpp