}
}
-static at2vsitebond_t *make_at2vsitebond(int natoms, t_params plist[])
+static at2vsitebond_t *make_at2vsitebond(int natoms, gmx::ArrayRef<InteractionTypeParameters> plist)
{
bool *bVSI;
int ftype, i, j, nrcheck, nr;
sfree(at2vb);
}
-static at2vsitecon_t *make_at2vsitecon(int natoms, t_params plist[])
+static at2vsitecon_t *make_at2vsitecon(int natoms, gmx::ArrayRef<InteractionTypeParameters> plist)
{
bool *bVSI;
int ftype, i, j, ai, aj, nr;
int set_vsites(bool bVerbose, t_atoms *atoms, gpp_atomtype *atype,
- t_params plist[])
+ gmx::ArrayRef<InteractionTypeParameters> plist)
{
int i, j, ftype;
int nvsite, nrbond, nrang, nridih, nrset;
int ftype, parnr;
} t_pindex;
-static void check_vsite_constraints(t_params *plist,
+static void check_vsite_constraints(gmx::ArrayRef<InteractionTypeParameters> plist,
int cftype, const int vsite_type[])
{
- int i, k, n;
- int atom;
- t_params *ps;
+ int i, k, n;
+ int atom;
+ InteractionTypeParameters *ps;
n = 0;
ps = &(plist[cftype]);
}
}
-static void clean_vsite_bonds(t_params *plist, t_pindex pindex[],
+static void clean_vsite_bonds(gmx::ArrayRef<InteractionTypeParameters> plist, t_pindex pindex[],
int cftype, const int vsite_type[])
{
- int ftype, i, j, k, m, n, nvsite, nOut, kept_i;
- int nconverted, nremoved;
- int atom, oatom, at1, at2;
- bool bKeep, bRemove, bUsed, bPresent, bThisFD, bThisOUT, bAllFD, bFirstTwo;
- t_params *ps;
+ int ftype, i, j, k, m, n, nvsite, nOut, kept_i;
+ int nconverted, nremoved;
+ int atom, oatom, at1, at2;
+ bool bKeep, bRemove, bUsed, bPresent, bThisFD, bThisOUT, bAllFD, bFirstTwo;
+ InteractionTypeParameters *ps;
if (cftype == F_CONNBONDS)
{
ps->nr = kept_i;
}
-static void clean_vsite_angles(t_params *plist, t_pindex pindex[],
+static void clean_vsite_angles(gmx::ArrayRef<InteractionTypeParameters> plist, t_pindex pindex[],
int cftype, const int vsite_type[],
at2vsitecon_t *at2vc)
{
- int i, j, k, m, n, nvsite, kept_i;
- int atom, at1, at2;
- bool bKeep, bUsed, bPresent, bAll3FAD, bFirstTwo;
- t_params *ps;
+ int i, j, k, m, n, nvsite, kept_i;
+ int atom, at1, at2;
+ bool bKeep, bUsed, bPresent, bAll3FAD, bFirstTwo;
+ InteractionTypeParameters *ps;
ps = &(plist[cftype]);
kept_i = 0;
ps->nr = kept_i;
}
-static void clean_vsite_dihs(t_params *plist, t_pindex pindex[],
+static void clean_vsite_dihs(gmx::ArrayRef<InteractionTypeParameters> plist, t_pindex pindex[],
int cftype, const int vsite_type[])
{
- int i, kept_i;
- t_params *ps;
+ int i, kept_i;
+ InteractionTypeParameters *ps;
ps = &(plist[cftype]);
ps->nr = kept_i;
}
-void clean_vsite_bondeds(t_params *plist, int natoms, bool bRmVSiteBds)
+void clean_vsite_bondeds(gmx::ArrayRef<InteractionTypeParameters> plist, int natoms, bool bRmVSiteBds)
{
int i, k, nvsite, ftype, vsite, parnr;
int *vsite_type;