struct gmx_cmap_t;
struct t_fcdata;
-struct t_mdatom;
struct t_nrnb;
struct t_pbc;
struct t_disresdata;
{
template<typename EnumType, typename DataType, EnumType ArraySize>
struct EnumerationArray;
+template<typename>
+class ArrayRef;
} // namespace gmx
/*! \brief Calculate bond-angle. No PBC is taken into account (use mol-shift) */
const struct t_pbc* pbc,
real gmx_unused lambda,
real gmx_unused* dvdlambda,
- const t_mdatoms gmx_unused* md,
+ gmx::ArrayRef<const real> /*charge*/,
t_fcdata gmx_unused* fcd,
t_disresdata gmx_unused* disresdata,
t_oriresdata gmx_unused* oriresdata,
* All pointers should be non-null, except for pbc and g which can be nullptr.
* \returns the energy or 0 when \p bondedKernelFlavor did not request the energy.
*/
-real calculateSimpleBond(int ftype,
- int numForceatoms,
- const t_iatom forceatoms[],
- const t_iparams forceparams[],
- const rvec x[],
- rvec4 f[],
- rvec fshift[],
- const struct t_pbc* pbc,
- real lambda,
- real* dvdlambda,
- const t_mdatoms* md,
- t_fcdata* fcd,
- t_disresdata* disresdata,
- t_oriresdata* oriresdata,
+real calculateSimpleBond(int ftype,
+ int numForceatoms,
+ const t_iatom forceatoms[],
+ const t_iparams forceparams[],
+ const rvec x[],
+ rvec4 f[],
+ rvec fshift[],
+ const struct t_pbc* pbc,
+ real lambda,
+ real* dvdlambda,
+ gmx::ArrayRef<const real> charge,
+ t_fcdata* fcd,
+ t_disresdata* disresdata,
+ t_oriresdata* oriresdata,
int gmx_unused* global_atom_index,
BondedKernelFlavor bondedKernelFlavor);