Fix message about incorrect usage of dihedral type 9
authorRoland Schulz <roland@utk.edu>
Mon, 22 Sep 2014 17:31:41 +0000 (13:31 -0400)
committerRoland Schulz <roland@utk.edu>
Mon, 22 Sep 2014 17:31:41 +0000 (13:31 -0400)
The warning printed the wrong type number: 4 instead of 9. Also it
didn't clarify that 9 only combines consecutive lines.

Change-Id: Ie65a050c978f162acf9f9a2329dde286c068438c

src/kernel/toppush.c

index c5c98ed58943ccb5f882f7c58d2f74403fcf6af3..fc7c7685a0f79c9ab6b9decaee018d95db3572c9 100644 (file)
@@ -600,9 +600,11 @@ static void push_bondtype(t_params     *       bt,
                     {
                         sprintf(errbuf, "Overriding %s parameters.%s",
                                 interaction_function[ftype].longname,
-                                (ftype == F_PDIHS) ? "\nUse dihedraltype 4 to allow several multiplicity terms." : "");
+                                (ftype == F_PDIHS) ?
+                                "\nUse dihedraltype 9 to allow several multiplicity terms. Only consecutive lines are combined. Non-consective lines overwrite each other."
+                                : "");
                         warning(wi, errbuf);
-                        fprintf(stderr, "  old:");
+                        fprintf(stderr, "  old:                                         ");
                         for (j = 0; (j < nrfp); j++)
                         {
                             fprintf(stderr, " %g", bt->param[i].c[j]);