Make PBC type enumeration into PbcType enum class
[alexxy/gromacs.git] / src / gromacs / applied_forces / densityfitting.cpp
index 28ead0fcfa1b5398876e0b3766a5f9f373683d18..d5d8ea90afbaabeb1b494866f8af9e21e14607ac 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2019, by the GROMACS development team, led by
+ * Copyright (c) 2019,2020, by the GROMACS development team, led by
  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
  * and including many others, as listed in the AUTHORS file in the
  * top-level source directory and at http://www.gromacs.org.
@@ -181,11 +181,11 @@ public:
      */
     void setPeriodicBoundaryConditionType(PeriodicBoundaryConditionType pbc)
     {
-        pbcType_ = std::make_unique<int>(pbc.pbcType);
+        pbcType_ = std::make_unique<PbcType>(pbc.pbcType);
     }
 
     //! Get the periodic boundary conditions
-    int periodicBoundaryConditionType()
+    PbcType periodicBoundaryConditionType()
     {
         if (pbcType_ == nullptr)
         {
@@ -209,7 +209,7 @@ private:
     //! The local atom set to act on
     std::unique_ptr<LocalAtomSet> localAtomSet_;
     //! The type of periodic boundary conditions in the simulation
-    std::unique_ptr<int> pbcType_;
+    std::unique_ptr<PbcType> pbcType_;
     //! The simulation time step
     double simulationTimeStep_ = 1;