Further fix to gmx tune-pme
authorMark Abraham <mark.j.abraham@gmail.com>
Sun, 6 Apr 2014 15:04:14 +0000 (17:04 +0200)
committerRoland Schulz <roland@rschulz.eu>
Thu, 10 Apr 2014 03:25:45 +0000 (05:25 +0200)
We need to ignore the column of total time, before reading the total
number of gigacycles. This was also broken before the recent patch to
this line that removed a spurious read of a %d for the number of
ranks.

Change-Id: I1ce7f378069c319e03fe9c0691193bd09a8a209f

src/gromacs/gmxana/gmx_tune_pme.c

index b0a7fb80cbcdc24df146d71240dae02d579c831b..3dbda71d479041b6d544af01fcf82be779beb277 100644 (file)
@@ -328,7 +328,7 @@ static int parse_logfile(const char *logfile, const char *errfile,
                 /* Already found matchstring - look for cycle data */
                 if (str_starts(line, "Total  "))
                 {
-                    sscanf(line, "Total %lf", &(perfdata->Gcycles[test_nr]));
+                    sscanf(line, "Total %*f %lf", &(perfdata->Gcycles[test_nr]));
                     iFound = eFoundCycleStr;
                 }
                 break;