Make PBC type enumeration into PbcType enum class
[alexxy/gromacs.git] / src / gromacs / gmxana / gmx_trjorder.cpp
index c0f8fe28cd7cb47636343c3df0ee7f1424335ac9..96966c9a00ab73368617ba7a440d798eda65cfbf 100644 (file)
@@ -133,7 +133,7 @@ int gmx_trjorder(int argc, char* argv[])
     t_trxstatus*      status;
     gmx_bool          bNShell, bPDBout;
     t_topology        top;
-    int               ePBC;
+    PbcType           pbcType;
     rvec *            x, *xsol, xcom, dx;
     matrix            box;
     t_pbc             pbc;
@@ -157,7 +157,7 @@ int gmx_trjorder(int argc, char* argv[])
         return 0;
     }
 
-    read_tps_conf(ftp2fn(efTPS, NFILE, fnm), &top, &ePBC, &x, nullptr, box, TRUE);
+    read_tps_conf(ftp2fn(efTPS, NFILE, fnm), &top, &pbcType, &x, nullptr, box, TRUE);
     sfree(x);
 
     /* get index groups */
@@ -240,11 +240,11 @@ int gmx_trjorder(int argc, char* argv[])
         }
         out = open_trx(opt2fn("-o", NFILE, fnm), "w");
     }
-    gpbc = gmx_rmpbc_init(&top.idef, ePBC, natoms);
+    gpbc = gmx_rmpbc_init(&top.idef, pbcType, natoms);
     do
     {
         gmx_rmpbc(gpbc, natoms, box, x);
-        set_pbc(&pbc, ePBC, box);
+        set_pbc(&pbc, pbcType, box);
 
         if (ref_a == -1)
         {