Make PBC type enumeration into PbcType enum class
[alexxy/gromacs.git] / src / gromacs / gmxana / gmx_spatial.cpp
index 694df6790ec8f09615d90768d83522e0c6bcbe8e..0ec43ffafda9f4a68fdc4bbe948b17d00c0755d8 100644 (file)
@@ -158,7 +158,7 @@ int gmx_spatial(int argc, char* argv[])
     double            MINBIN[3];
     double            MAXBIN[3];
     t_topology        top;
-    int               ePBC;
+    PbcType           pbcType;
     t_trxframe        fr;
     rvec*             xtop;
     matrix            box, box_pbc;
@@ -196,7 +196,7 @@ int gmx_spatial(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);
     sfree(xtop);
 
     atoms = &(top.atoms);
@@ -262,7 +262,7 @@ int gmx_spatial(int argc, char* argv[])
 
     if (bPBC)
     {
-        gpbc = gmx_rmpbc_init(&top.idef, ePBC, natoms);
+        gpbc = gmx_rmpbc_init(&top.idef, pbcType, natoms);
     }
     /* This is the main loop over frames */
     do
@@ -273,7 +273,7 @@ int gmx_spatial(int argc, char* argv[])
         if (bPBC)
         {
             gmx_rmpbc_trxfr(gpbc, &fr);
-            set_pbc(&pbc, ePBC, box_pbc);
+            set_pbc(&pbc, pbcType, box_pbc);
         }
 
         for (i = 0; i < nidx; i++)