Make PBC type enumeration into PbcType enum class
[alexxy/gromacs.git] / src / gromacs / gmxana / gmx_bundle.cpp
index be9c6f4be60f30e0303121338a1052a129ea8315..a55cde5f9596dcfa5865a0457f8f074bdbde9f93 100644 (file)
@@ -228,7 +228,7 @@ int gmx_bundle(int argc, char* argv[])
     t_trxstatus*    status;
     t_trxstatus*    fpdb;
     t_topology      top;
-    int             ePBC;
+    PbcType         pbcType;
     rvec*           xtop;
     matrix          box;
     t_trxframe      fr;
@@ -263,7 +263,7 @@ int gmx_bundle(int argc, char* argv[])
         return 0;
     }
 
-    read_tps_conf(ftp2fn(efTPS, NFILE, fnm), &top, &ePBC, &xtop, nullptr, box, TRUE);
+    read_tps_conf(ftp2fn(efTPS, NFILE, fnm), &top, &pbcType, &xtop, nullptr, box, TRUE);
 
     bKink = opt2bSet("-ok", NFILE, fnm) || opt2bSet("-okr", NFILE, fnm) || opt2bSet("-okl", NFILE, fnm);
     if (bKink)
@@ -345,7 +345,7 @@ int gmx_bundle(int argc, char* argv[])
     }
 
     read_first_frame(oenv, &status, ftp2fn(efTRX, NFILE, fnm), &fr, TRX_NEED_X);
-    gpbc = gmx_rmpbc_init(&top.idef, ePBC, fr.natoms);
+    gpbc = gmx_rmpbc_init(&top.idef, pbcType, fr.natoms);
 
     do
     {