Make PBC type enumeration into PbcType enum class
[alexxy/gromacs.git] / src / gromacs / gmxana / gmx_helix.cpp
index 44959544345e67e2f9af81c8ed717c39b37c38ad..0b9399ae094ec89db859d024e4b06bf4a98b2f3e 100644 (file)
@@ -144,7 +144,7 @@ int gmx_helix(int argc, char* argv[])
     int               i, j, nall, nbb, nca, teller;
     int *             bbindex, *caindex, *allindex;
     t_topology*       top;
-    int               ePBC;
+    PbcType           pbcType;
     rvec *            x, *xref;
     real              t;
     real              rms;
@@ -167,7 +167,7 @@ int gmx_helix(int argc, char* argv[])
 
     bRange = (opt2parg_bSet("-ahxstart", asize(pa), pa) && opt2parg_bSet("-ahxend", asize(pa), pa));
 
-    top = read_top(ftp2fn(efTPR, NFILE, fnm), &ePBC);
+    top = read_top(ftp2fn(efTPR, NFILE, fnm), &pbcType);
 
     natoms = read_first_x(oenv, &status, opt2fn("-f", NFILE, fnm), &t, &x, box);
 
@@ -212,7 +212,7 @@ int gmx_helix(int argc, char* argv[])
         pr_bb(stdout, nres, bb);
     }
 
-    gpbc = gmx_rmpbc_init(&top->idef, ePBC, natoms);
+    gpbc = gmx_rmpbc_init(&top->idef, pbcType, natoms);
 
     teller = 0;
     do
@@ -238,7 +238,7 @@ int gmx_helix(int argc, char* argv[])
             if (teller == 1)
             {
                 write_sto_conf(opt2fn("-cz", NFILE, fnm), "Helix fitted to Z-Axis", &(top->atoms),
-                               x, nullptr, ePBC, box);
+                               x, nullptr, pbcType, box);
             }
 
             xf[efhRAD].val   = radius(xf[efhRAD].fp2, nca, caindex, x);