Fix Clang 3.1 warning
authorRoland Schulz <roland@utk.edu>
Sun, 27 May 2012 02:51:05 +0000 (22:51 -0400)
committerRoland Schulz <roland@utk.edu>
Sun, 27 May 2012 02:55:22 +0000 (22:55 -0400)
grid_spacing is an integer and thus it was always set to 0

Change-Id: Id10bccdadef8f2630631d638e94bd27d78774536

src/gmxlib/tpxio.c

index 59fed9f4207f64b7ccd6ff8501ffa388eca059ac..91c939964af55e6f3490f40acb5210431c7bcb35 100644 (file)
@@ -1898,7 +1898,7 @@ static void do_mtop(t_fileio *fio, gmx_mtop_t *mtop,gmx_bool bRead,
   else
   {
       mtop->ffparams.cmap_grid.ngrid        = 0;
-      mtop->ffparams.cmap_grid.grid_spacing = 0.1;
+      mtop->ffparams.cmap_grid.grid_spacing = 0;
       mtop->ffparams.cmap_grid.cmapdata     = NULL;
   }