}
-static void count_bonds(int atom, InteractionTypeParameters *psb, char ***atomname,
+static void count_bonds(int atom, InteractionsOfType *psb, char ***atomname,
int *nrbonds, int *nrHatoms, int Hatoms[], int *Heavy,
int *nrheavies, int heavies[])
{
return mass;
}
-static void my_add_param(InteractionTypeParameters *plist, int ai, int aj, real b)
+static void my_add_param(InteractionsOfType *plist, int ai, int aj, real b)
{
static real c[MAXFORCEPARAM] =
{ NOTSET, NOTSET, NOTSET, NOTSET, NOTSET, NOTSET };
add_param(plist, ai, aj, c, nullptr);
}
-static void add_vsites(gmx::ArrayRef<InteractionTypeParameters> plist, int vsite_type[],
+static void add_vsites(gmx::ArrayRef<InteractionsOfType> plist, int vsite_type[],
int Heavy, int nrHatoms, int Hatoms[],
int nrheavies, int heavies[])
{
/* get cos(alpha) when a, b and c are given: */
#define acosrule(a, b, c) ( (gmx::square(b)+gmx::square(c)-gmx::square(a))/(2*(b)*(c)) )
-static int gen_vsites_6ring(t_atoms *at, int *vsite_type[], gmx::ArrayRef<InteractionTypeParameters> plist,
+static int gen_vsites_6ring(t_atoms *at, int *vsite_type[], gmx::ArrayRef<InteractionsOfType> plist,
int nrfound, int *ats, real bond_cc, real bond_ch,
real xcom, bool bDoZ)
{
return nvsite;
}
-static int gen_vsites_phe(t_atoms *at, int *vsite_type[], gmx::ArrayRef<InteractionTypeParameters> plist,
+static int gen_vsites_phe(t_atoms *at, int *vsite_type[], gmx::ArrayRef<InteractionsOfType> plist,
int nrfound, int *ats, gmx::ArrayRef<const VirtualSiteTopology> vsitetop)
{
real bond_cc, bond_ch;
t_symtab *symtab, int *nadd,
gmx::ArrayRef<const gmx::RVec> x, int *cgnr[],
t_atoms *at, int *vsite_type[],
- gmx::ArrayRef<InteractionTypeParameters> plist,
+ gmx::ArrayRef<InteractionsOfType> plist,
int nrfound, int *ats, int add_shift,
gmx::ArrayRef<const VirtualSiteTopology> vsitetop)
{
t_symtab *symtab, int *nadd,
gmx::ArrayRef<const gmx::RVec> x, int *cgnr[],
t_atoms *at, int *vsite_type[],
- gmx::ArrayRef<InteractionTypeParameters> plist,
+ gmx::ArrayRef<InteractionsOfType> plist,
int nrfound, int *ats, int add_shift,
gmx::ArrayRef<const VirtualSiteTopology> vsitetop)
{
}
static int gen_vsites_his(t_atoms *at, int *vsite_type[],
- gmx::ArrayRef<InteractionTypeParameters> plist,
+ gmx::ArrayRef<InteractionsOfType> plist,
int nrfound, int *ats, gmx::ArrayRef<const VirtualSiteTopology> vsitetop)
{
int nvsite, i;
void do_vsites(gmx::ArrayRef<const PreprocessResidue> rtpFFDB, PreprocessingAtomTypes *atype,
t_atoms *at, t_symtab *symtab,
std::vector<gmx::RVec> *x,
- gmx::ArrayRef<InteractionTypeParameters> plist, int *vsite_type[], int *cgnr[],
+ gmx::ArrayRef<InteractionsOfType> plist, int *vsite_type[], int *cgnr[],
real mHmult, bool bVsiteAromatics,
const char *ffdir)
{
/* now renumber all the interactions because of the added atoms */
for (int ftype = 0; ftype < F_NRE; ftype++)
{
- InteractionTypeParameters *params = &(plist[ftype]);
+ InteractionsOfType *params = &(plist[ftype]);
if (debug)
{
fprintf(debug, "Renumbering %zu %s\n", params->size(),
newAtomNumber.emplace_back(o2n[atomNumbers[j]]);
}
}
- *parm = InteractionType(newAtomNumber, parm->forceParam(), parm->interactionTypeName());
+ *parm = InteractionOfType(newAtomNumber, parm->forceParam(), parm->interactionTypeName());
if (debug)
{
fprintf(debug, "\n");
}
}
/* sort constraint parameters */
- InteractionTypeParameters *params = &(plist[F_CONSTRNC]);
+ InteractionsOfType *params = &(plist[F_CONSTRNC]);
for (auto &type : params->interactionTypes)
{
type.sortAtomIds();
fprintf(stderr, "Added %zu new constraints\n", plist[F_CONSTRNC].size());
}
-void do_h_mass(InteractionTypeParameters *psb, int vsite_type[], t_atoms *at, real mHmult,
+void do_h_mass(InteractionsOfType *psb, int vsite_type[], t_atoms *at, real mHmult,
bool bDeuterate)
{
/* loop over all atoms */