* aligned (and padded) memory, possibly with some hints for the compilers.
*/
template<StoreUpdatedVelocities storeUpdatedVelocities, NumTempScaleValues numTempScaleValues, ApplyParrinelloRahmanVScaling applyPRVScaling, typename VelocityType>
-static std::enable_if_t<std::is_same<VelocityType, rvec*>::value || std::is_same<VelocityType, const rvec*>::value, void>
+static std::enable_if_t<std::is_same<VelocityType, rvec>::value || std::is_same<VelocityType, const rvec>::value, void>
updateMDLeapfrogSimple(int start,
int nrend,
real dt,
const rvec pRVScaleMatrixDiagonal,
const rvec* gmx_restrict x,
rvec* gmx_restrict xprime,
- VelocityType gmx_restrict v,
+ VelocityType* gmx_restrict v,
const rvec* gmx_restrict f)
{
real lambdaGroup;
* \param[in] f Forces
*/
template<StoreUpdatedVelocities storeUpdatedVelocities, typename VelocityType>
-static std::enable_if_t<std::is_same<VelocityType, rvec*>::value || std::is_same<VelocityType, const rvec*>::value, void>
+static std::enable_if_t<std::is_same<VelocityType, rvec>::value || std::is_same<VelocityType, const rvec>::value, void>
updateMDLeapfrogSimpleSimd(int start,
int nrend,
real dt,
gmx::ArrayRef<const t_grp_tcstat> tcstat,
const rvec* gmx_restrict x,
rvec* gmx_restrict xprime,
- VelocityType gmx_restrict v,
+ VelocityType* gmx_restrict v,
const rvec* gmx_restrict f)
{
SimdReal timestep(dt);
* This file is part of the GROMACS molecular simulation package.
*
* Copyright (c) 2012,2013,2014,2015,2017 by the GROMACS development team.
- * Copyright (c) 2018,2019,2020, by the GROMACS development team, led by
+ * Copyright (c) 2018,2019,2020,2021, 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.
#include <limits>
+#include "gromacs/math/units.h"
#include "gromacs/math/utilities.h"
#include "gromacs/simd/simd.h"
#include "gromacs/utility/basedefinitions.h"