Make PBC type enumeration into PbcType enum class
[alexxy/gromacs.git] / src / gromacs / nbnxm / pairsearch.cpp
index fee162cbdcddf3e4788a41069554c06f88886244..34f064b2cc1a47244265de78e1c6040ea9923616 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.
@@ -103,7 +103,7 @@ PairsearchWork::~PairsearchWork()
     free_nblist(nbl_fep.get());
 }
 
-PairSearch::PairSearch(const int                 ePBC,
+PairSearch::PairSearch(const PbcType             pbcType,
                        const bool                doTestParticleInsertion,
                        const ivec*               numDDCells,
                        const gmx_domdec_zones_t* ddZones,
@@ -111,7 +111,7 @@ PairSearch::PairSearch(const int                 ePBC,
                        const bool                haveFep,
                        const int                 maxNumThreads,
                        gmx::PinningPolicy        pinningPolicy) :
-    gridSet_(ePBC, doTestParticleInsertion, numDDCells, ddZones, pairlistType, haveFep, maxNumThreads, pinningPolicy),
+    gridSet_(pbcType, doTestParticleInsertion, numDDCells, ddZones, pairlistType, haveFep, maxNumThreads, pinningPolicy),
     work_(maxNumThreads)
 {
     cycleCounting_.recordCycles_ = (getenv("GMX_NBNXN_CYCLE") != nullptr);