Make PBC type enumeration into PbcType enum class
[alexxy/gromacs.git] / src / gromacs / trajectoryanalysis / modules / rdf.cpp
index 6dd388f3ad60207eb77a78146efaf246cc1457b2..bb2f6249198ee86fafcefdebb7dc20bfe6c9a9ae 100644 (file)
@@ -409,7 +409,7 @@ void Rdf::initAfterFirstFrame(const TrajectoryAnalysisSettings& settings, const
             {
                 box[ZZ][ZZ] = 2 * std::max(box[XX][XX], box[YY][YY]);
             }
-            rmax_ = std::sqrt(0.99 * 0.99 * max_cutoff2(bXY_ ? epbcXY : epbcXYZ, box));
+            rmax_ = std::sqrt(0.99 * 0.99 * max_cutoff2(bXY_ ? PbcType::XY : PbcType::Xyz, box));
         }
         else
         {