Make PBC type enumeration into PbcType enum class
[alexxy/gromacs.git] / src / gromacs / gmxana / gmx_saltbr.cpp
index e7980d845bcbace3c1c1b26a6be20422ec310338..e82a4a365f4a98a943bd3320dd93adef36a0411f 100644 (file)
@@ -136,7 +136,7 @@ int gmx_saltbr(int argc, char* argv[])
     int                nset[3]  = { 0, 0, 0 };
 
     t_topology*  top;
-    int          ePBC;
+    PbcType      pbcType;
     char*        buf;
     t_trxstatus* status;
     int          i, j, k, m, nnn, teller, ncg;
@@ -156,7 +156,7 @@ int gmx_saltbr(int argc, char* argv[])
         return 0;
     }
 
-    top = read_top(ftp2fn(efTPR, NFILE, fnm), &ePBC);
+    top = read_top(ftp2fn(efTPR, NFILE, fnm), &pbcType);
     cg  = mk_charge(&top->atoms, &ncg);
     snew(cgdist, ncg);
     snew(nWithin, ncg);
@@ -175,7 +175,7 @@ int gmx_saltbr(int argc, char* argv[])
         srenew(time, teller + 1);
         time[teller] = t;
 
-        set_pbc(&pbc, ePBC, box);
+        set_pbc(&pbc, pbcType, box);
 
         for (i = 0; (i < ncg); i++)
         {