Change-Id: I6df536841e9307491db8d3e9a529803724375d89
28 files changed:
const std::string &biasInitFilename,
pull_t *pull_work);
const std::string &biasInitFilename,
pull_t *pull_work);
- /*! \brief Destructor. */
~Awh();
/*! \brief Peform an AWH update, to be called every MD step.
~Awh();
/*! \brief Peform an AWH update, to be called every MD step.
//! The awh Bias
std::unique_ptr<Bias> bias_;
//! The awh Bias
std::unique_ptr<Bias> bias_;
BiasTest() :
coordinates_(std::begin(g_coords), std::end(g_coords))
{
BiasTest() :
coordinates_(std::begin(g_coords), std::end(g_coords))
{
public:
std::unique_ptr<BiasState> biasState_; //!< The bias state
public:
std::unique_ptr<BiasState> biasState_; //!< The bias state
BiasStateTest()
{
AwhTestParameters params = getAwhTestParameters();
BiasStateTest()
{
AwhTestParameters params = getAwhTestParameters();
/*! \brief The number of reals in gmx_ddzone_t */
constexpr int c_ddzoneNumReals = 7;
/*! \brief The number of reals in gmx_ddzone_t */
constexpr int c_ddzoneNumReals = 7;
-/*! \brief Forward declaration */
template<typename T> class DDBufferAccess;
/*! \brief Temporary storage container that minimizes (re)allocation and clearing
template<typename T> class DDBufferAccess;
/*! \brief Temporary storage container that minimizes (re)allocation and clearing
buffer = ddBuffer_.acquire(numElements);
}
buffer = ddBuffer_.acquire(numElements);
}
- /*! \brief Destructor */
~DDBufferAccess()
{
ddBuffer_.release();
~DDBufferAccess()
{
ddBuffer_.release();
class PmeBSplineModuliTest : public ::testing::TestWithParam<BSplineModuliInputParameters>
{
public:
class PmeBSplineModuliTest : public ::testing::TestWithParam<BSplineModuliInputParameters>
{
public:
- //! Default constructor
PmeBSplineModuliTest() = default;
//! The whole logic being tested is contained here
void runTest()
PmeBSplineModuliTest() = default;
//! The whole logic being tested is contained here
void runTest()
static InputDataByAtomCount s_inputAtomDataSets_;
public:
static InputDataByAtomCount s_inputAtomDataSets_;
public:
- //! Default constructor
PmeGatherTest() = default;
//! Sets the input atom data references once
static void SetUpTestCase()
PmeGatherTest() = default;
//! Sets the input atom data references once
static void SetUpTestCase()
class PmeSolveTest : public ::testing::TestWithParam<SolveInputParameters>
{
public:
class PmeSolveTest : public ::testing::TestWithParam<SolveInputParameters>
{
public:
- //! Default constructor
PmeSolveTest() = default;
//! The test
PmeSolveTest() = default;
//! The test
class PmeSplineAndSpreadTest : public ::testing::TestWithParam<SplineAndSpreadInputParameters>
{
public:
class PmeSplineAndSpreadTest : public ::testing::TestWithParam<SplineAndSpreadInputParameters>
{
public:
- //! Default constructor
PmeSplineAndSpreadTest() = default;
//! The test
void runTest()
PmeSplineAndSpreadTest() = default;
//! The test
void runTest()
//! Information about GPUs that are present.
gmx_gpu_info_t *gpuInfo_;
//! Information about GPUs that are present.
gmx_gpu_info_t *gpuInfo_;
~GpuTest() override;
//! Getter for convenience in testing
bool haveValidGpus() const;
~GpuTest() override;
//! Getter for convenience in testing
bool haveValidGpus() const;
* constructor. */
struct CreationHelper;
* constructor. */
struct CreationHelper;
~Constraints();
/*! \brief Returns the total number of flexible constraints in the system. */
~Constraints();
/*! \brief Returns the total number of flexible constraints in the system. */
HostVector<real> chargeA_;
public:
// TODO make this private
HostVector<real> chargeA_;
public:
// TODO make this private
~MDAtoms();
//! Getter.
t_mdatoms *mdatoms()
~MDAtoms();
//! Getter.
t_mdatoms *mdatoms()
void mde_delta_h_coll_init(t_mde_delta_h_coll *dhc,
const t_inputrec *ir);
void mde_delta_h_coll_init(t_mde_delta_h_coll *dhc,
const t_inputrec *ir);
void done_mde_delta_h_coll(t_mde_delta_h_coll *dhc);
/* add a bunch of samples to the delta_h collection
void done_mde_delta_h_coll(t_mde_delta_h_coll *dhc);
/* add a bunch of samples to the delta_h collection
//! \internal \brief Options for writing checkpoint files
struct CheckpointOptions
{
//! \internal \brief Options for writing checkpoint files
struct CheckpointOptions
{
CheckpointOptions() :
keepAndNumberCheckpointFiles(FALSE),
period(15)
CheckpointOptions() :
keepAndNumberCheckpointFiles(FALSE),
period(15)
//! \internal \brief Options for IMD
struct ImdOptions
{
//! \internal \brief Options for IMD
struct ImdOptions
{
ImdOptions() :
port(8888),
wait(FALSE),
ImdOptions() :
port(8888),
wait(FALSE),
/* Thread-local work struct, contains part of nbnxn_grid_t */
struct nbnxn_search_work_t
{
/* Thread-local work struct, contains part of nbnxn_grid_t */
struct nbnxn_search_work_t
{
~nbnxn_search_work_t();
gmx_cache_protect_t cp0; /* Buffer to avoid cache polution */
~nbnxn_search_work_t();
gmx_cache_protect_t cp0; /* Buffer to avoid cache polution */
//! PBC option to test
t_pbc pbcXYZ_;
//! PBC option to test
t_pbc pbcXYZ_;
SettleTest() :
updatedPositions_(std::begin(g_positions), std::end(g_positions)),
velocities_(updatedPositions_.size(), 0)
SettleTest() :
updatedPositions_(std::begin(g_positions), std::end(g_positions)),
velocities_(updatedPositions_.size(), 0)
class SignalTest : public ::testing::Test
{
public:
class SignalTest : public ::testing::Test
{
public:
SignalTest() : signals_ {}
{
signals_[0].sig = 1;
SignalTest() : signals_ {}
{
signals_[0].sig = 1;
/* Data for handling vsites, needed with OpenMP threading or with charge-groups and PBC */
struct gmx_vsite_t
{
/* Data for handling vsites, needed with OpenMP threading or with charge-groups and PBC */
struct gmx_vsite_t
{
~gmx_vsite_t();
gmx_bool bHaveChargeGroups; /* Do we have charge groups? */
~gmx_vsite_t();
gmx_bool bHaveChargeGroups; /* Do we have charge groups? */
//! Whether the lambda value is set. Here for backward-compatibility.
gmx_bool start_lambda_set;
//! Whether the lambda value is set. Here for backward-compatibility.
gmx_bool start_lambda_set;
delta_h_history_t() :
start_time(0),
start_lambda(0),
delta_h_history_t() :
start_time(0),
start_lambda(0),
//! History for energy difference for foreign lambdas (useful for BAR)
std::unique_ptr<delta_h_history_t> deltaHForeignLambdas;
//! History for energy difference for foreign lambdas (useful for BAR)
std::unique_ptr<delta_h_history_t> deltaHForeignLambdas;
energyhistory_t() : nsteps(0),
nsum(0),
energyhistory_t() : nsteps(0),
nsum(0),
/*
* This file is part of the GROMACS molecular simulation package.
*
/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2016,2017, by the GROMACS development team, led by
+ * Copyright (c) 2016,2017,2018, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.
//! Ion/water position swapping history
std::unique_ptr<swaphistory_t> swapHistory;
//! Ion/water position swapping history
std::unique_ptr<swaphistory_t> swapHistory;
- //! Default constructor
~ObservablesHistory();
};
~ObservablesHistory();
};
class history_t
{
public:
class history_t
{
public:
history_t();
real disre_initf; //!< The scaling factor for initializing the time av.
history_t();
real disre_initf; //!< The scaling factor for initializing the time av.
t_state();
// All things public
t_state();
// All things public
//! \cond libapi
//! Initializes option properties with the given name.
explicit AbstractOptionSection(const char *name) : name_(name) {}
//! \cond libapi
//! Initializes option properties with the given name.
explicit AbstractOptionSection(const char *name) : name_(name) {}
virtual ~AbstractOptionSection() {}
/*! \brief
* Creates a storage object corresponding to this section.
virtual ~AbstractOptionSection() {}
/*! \brief
* Creates a storage object corresponding to this section.
class SingleRankChecker
{
public:
class SingleRankChecker
{
public:
SingleRankChecker() : value_(false) {}
/*! \brief Call this function for each possible condition
under which a single rank is required, along with a string
SingleRankChecker() : value_(false) {}
/*! \brief Call this function for each possible condition
under which a single rank is required, along with a string
/*! \brief Molecules type data: atoms, interactions and exclusions */
struct gmx_moltype_t
{
/*! \brief Molecules type data: atoms, interactions and exclusions */
struct gmx_moltype_t
{
- /*! \brief Constructor */
- /*! \brief Destructor */
~gmx_moltype_t();
/*! \brief Deleted copy assignment operator to avoid (not) freeing pointers */
~gmx_moltype_t();
/*! \brief Deleted copy assignment operator to avoid (not) freeing pointers */
*/
struct gmx_mtop_t //NOLINT(clang-analyzer-optin.performance.Padding)
{
*/
struct gmx_mtop_t //NOLINT(clang-analyzer-optin.performance.Padding)
{
~gmx_mtop_t();
char **name; /* Name of the topology */
~gmx_mtop_t();
char **name; /* Name of the topology */
class ISerializer
{
public:
class ISerializer
{
public:
virtual ~ISerializer() {}
/*! \brief Returns whether the serializer is reading or
* writing, because details like memory management vary
virtual ~ISerializer() {}
/*! \brief Returns whether the serializer is reading or
* writing, because details like memory management vary
class DifferentTasksTest : public ::testing::TestWithParam<TaskType>
{
public:
class DifferentTasksTest : public ::testing::TestWithParam<TaskType>
{
public:
DifferentTasksTest()
{
g_sharedValue = 0;
DifferentTasksTest()
{
g_sharedValue = 0;
class EnergyFrameReader;
//! Convenience smart pointer typedef
typedef std::unique_ptr<EnergyFrameReader> EnergyFrameReaderPtr;
class EnergyFrameReader;
//! Convenience smart pointer typedef
typedef std::unique_ptr<EnergyFrameReader> EnergyFrameReaderPtr;
public ::testing::WithParamInterface<const char *>
{
public:
public ::testing::WithParamInterface<const char *>
{
public:
MultiSimTest();
/*! \brief Organize the .mdp file for this rank
MultiSimTest();
/*! \brief Organize the .mdp file for this rank
class TrajectoryFrame;
namespace test
class TrajectoryFrame;
namespace test