return t2m;
}
-static int nequal(char *a1, char *a2)
+static int nequal(const char *a1, const char *a2)
{
int i;
return i;
}
-static real search_e_diss(int n2m, t_2morse t2m[], char *ai, char *aj)
+static real search_e_diss(int n2m, t_2morse t2m[], const char *ai, const char *aj)
{
int i;
int ibest = -1;
}
}
-void convert_harmonics(gmx::ArrayRef<MoleculeInformation> mols, gpp_atomtype *atype)
+void convert_harmonics(gmx::ArrayRef<MoleculeInformation> mols, PreprocessingAtomTypes *atype)
{
int n2m;
t_2morse *t2m;
int nj = mol.plist[bb].param[j].aj();
real edis =
search_e_diss(n2m, t2m,
- get_atomtype_name(mol.atoms.atom[ni].type, atype),
- get_atomtype_name(mol.atoms.atom[nj].type, atype));
+ atype->atomNameFromAtomType(mol.atoms.atom[ni].type),
+ atype->atomNameFromAtomType(mol.atoms.atom[nj].type));
if (edis != 0)
{
bRemoveHarm[j] = true;