Pdb2gmx would break when generating virtual sites if water oxygens
were not named OW. Now checking for the atomnumber instead.
Fixes #2268
Change-Id: I326f683e4940ad02351dcbe0c00e266a82b203f6
}
}
- else if ( /*(nrHatoms == 2) && (nrbonds == 2) && REMOVED this test
- DvdS 19-01-04 */
- (gmx_strncasecmp(*at->atomname[Heavy], "OW", 2) == 0) )
+ else if ( (nrHatoms == 2) && (nrbonds == 2) &&
+ (at->atom[Heavy].atomnumber == 8) )
{
bAddVsiteParam = FALSE; /* this is water: skip these hydrogens */
if (bFirstWater)