Make PBC type enumeration into PbcType enum class
[alexxy/gromacs.git] / src / gromacs / selection / tests / toputils.cpp
index 053403afd70d698e1669237f398c00d3223291bf..77885f791336dc78de1de1ba24560bcdf2529af7 100644 (file)
@@ -119,15 +119,15 @@ void TopologyManager::requestForces()
 
 void TopologyManager::loadTopology(const char* filename)
 {
-    bool   fullTopology;
-    int    ePBC;
-    rvec*  xtop = nullptr;
-    matrix box;
+    bool    fullTopology;
+    PbcType pbcType;
+    rvec*   xtop = nullptr;
+    matrix  box;
 
     GMX_RELEASE_ASSERT(mtop_ == nullptr, "Topology initialized more than once");
     mtop_ = std::make_unique<gmx_mtop_t>();
     readConfAndTopology(gmx::test::TestFileManager::getInputFilePath(filename).c_str(), &fullTopology,
-                        mtop_.get(), &ePBC, frame_ != nullptr ? &xtop : nullptr, nullptr, box);
+                        mtop_.get(), &pbcType, frame_ != nullptr ? &xtop : nullptr, nullptr, box);
 
     if (frame_ != nullptr)
     {