Updated dlist.c to recognize more atom names.
authorJustin Lemkul <jalemkul@vt.edu>
Thu, 25 Jul 2013 20:43:13 +0000 (16:43 -0400)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Thu, 25 Jul 2013 23:32:41 +0000 (01:32 +0200)
Previously, g_chi basically only worked correctly for OPLS-AA and
Gromos96 force fields, based on C-terminal atom names.  This commit
adds atom names for AMBER and CHARMM force fields so that g_chi
calculates dihedral properties for all residues.

Change-Id: I48517fb55bd46e7d49941f7902f4f6531e443e62

src/tools/dlist.c

index cc3a84917b5eaa480f24a7947c3534eaf950b93b..6a6936118ff880c070420476822606521f2a6518 100644 (file)
@@ -96,7 +96,9 @@ t_dlist *mk_dlist(FILE *log,
                 atm.C = i;
             }
             else if ((strcmp(*(atoms->atomname[i]), "O") == 0) ||
-                     (strcmp(*(atoms->atomname[i]), "O1") == 0))
+                     (strcmp(*(atoms->atomname[i]), "O1") == 0) ||
+                     (strcmp(*(atoms->atomname[i]), "OC1") == 0) ||
+                     (strcmp(*(atoms->atomname[i]), "OT1") == 0))
             {
                 atm.O = i;
             }