void write_top(FILE *out, const char *pr, const char *molname,
t_atoms *at, bool bRTPresname,
- int bts[], t_params plist[], t_excls excls[],
+ int bts[], gmx::ArrayRef<const InteractionTypeParameters> plist, t_excls excls[],
gpp_atomtype *atype, int *cgnr, int nrexcl)
/* NOTE: nrexcl is not the size of *excl! */
{
-static void do_ssbonds(t_params *ps, t_atoms *atoms,
+static void do_ssbonds(InteractionTypeParameters *ps, t_atoms *atoms,
gmx::ArrayRef<const DisulfideBond> ssbonds, bool bAllowMissing)
{
for (const auto &bond : ssbonds)
}
}
-static void at2bonds(t_params *psb, gmx::ArrayRef<MoleculePatchDatabase> globalPatches,
+static void at2bonds(InteractionTypeParameters *psb, gmx::ArrayRef<MoleculePatchDatabase> globalPatches,
t_atoms *atoms,
gmx::ArrayRef<const gmx::RVec> x,
real long_bond_dist, real short_bond_dist)
}
}
-static void clean_bonds(t_params *ps)
+static void clean_bonds(InteractionTypeParameters *ps)
{
int i, j;
int a;
}
}
-void print_sums(t_atoms *atoms, bool bSystem)
+void print_sums(const t_atoms *atoms, bool bSystem)
{
double m, qtot;
int i;
}
#define NUM_CMAP_ATOMS 5
-static void gen_cmap(t_params *psb, gmx::ArrayRef<const PreprocessResidue> usedPpResidues, t_atoms *atoms)
+static void gen_cmap(InteractionTypeParameters *psb, gmx::ArrayRef<const PreprocessResidue> usedPpResidues, t_atoms *atoms)
{
int residx;
const char *ptr;
bool bDeuterate, bool bChargeGroups, bool bCmap,
bool bRenumRes, bool bRTPresname)
{
- t_params plist[F_NRE];
- t_excls *excls;
- t_nextnb nnb;
- int *cgnr;
- int *vsite_type;
- int i, nmissat;
- int bts[ebtsNR];
+ std::array<InteractionTypeParameters, F_NRE> plist;
+ t_excls *excls;
+ t_nextnb nnb;
+ int *cgnr;
+ int *vsite_type;
+ int i, nmissat;
+ int bts[ebtsNR];
init_plist(plist);
ResidueType rt;