{
nc[6]++;
}
- dl[nl].index = rt->indexFromResidueName(thisres);
/* Prevent use of unknown residues. If one adds a custom residue to
* residuetypes.dat but somehow loses it, changes it, or does analysis on
* another machine, the residue type will be unknown. */
- if (dl[nl].index == -1)
+ if (!rt->nameIndexedInResidueTypes(thisres))
{
gmx_fatal(FARGS,
"Unknown residue %s when searching for residue type.\n"
"Maybe you need to add a custom residue in residuetypes.dat.",
thisres);
}
+ dl[nl].residueName = thisres;
sprintf(dl[nl].name, "%s%d", thisres, ires + r0);
nl++;