return type;
}
-static int vsite_nm2type(const char *name, gpp_atomtype *atype)
+static int vsite_nm2type(const char *name, PreprocessingAtomTypes *atype)
{
int tp;
- tp = get_atomtype_type(name, atype);
+ tp = atype->atomTypeFromName(name);
if (tp == NOTSET)
{
gmx_fatal(FARGS, "Dummy mass type (%s) not found in atom type database",
}
-static int gen_vsites_trp(gpp_atomtype *atype,
+static int gen_vsites_trp(PreprocessingAtomTypes *atype,
std::vector<gmx::RVec> *newx,
t_atom *newatom[], char ***newatomname[],
int *o2n[], int *newvsite_type[], int *newcgnr[],
}
-static int gen_vsites_tyr(gpp_atomtype *atype,
+static int gen_vsites_tyr(PreprocessingAtomTypes *atype,
std::vector<gmx::RVec> *newx,
t_atom *newatom[], char ***newatomname[],
int *o2n[], int *newvsite_type[], int *newcgnr[],
static char atomnamesuffix[] = "1234";
-void do_vsites(gmx::ArrayRef<const PreprocessResidue> rtpFFDB, gpp_atomtype *atype,
+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[],
&nrbonds, &nrHatoms, Hatoms, &Heavy, &nrheavies, heavies);
/* get Heavy atom type */
tpHeavy = get_atype(Heavy, at, rtpFFDB, &rt);
- strcpy(tpname, get_atomtype_name(tpHeavy, atype));
+ strcpy(tpname, atype->atomNameFromAtomType(tpHeavy));
bWARNING = FALSE;
bAddVsiteParam = TRUE;
}
/* get dummy mass type from first char of heavy atom type (N or C) */
- strcpy(nexttpname, get_atomtype_name(get_atype(heavies[0], at, rtpFFDB, &rt), atype));
+ strcpy(nexttpname, atype->atomNameFromAtomType(get_atype(heavies[0], at, rtpFFDB, &rt)));
std::string ch = get_dummymass_name(vsiteconflist, tpname, nexttpname);
std::string name;
if (ch.empty())