From 66e08113173fa2a0c13efe009564d73c28e0c5dd Mon Sep 17 00:00:00 2001 From: Michael Marshall <43034299+mmphys@users.noreply.github.com> Date: Wed, 13 Nov 2019 00:02:51 +0000 Subject: [PATCH] Attempt to fix cuda build --- Hadrons/NamedTensor.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Hadrons/NamedTensor.hpp b/Hadrons/NamedTensor.hpp index a8c98127..710064fd 100644 --- a/Hadrons/NamedTensor.hpp +++ b/Hadrons/NamedTensor.hpp @@ -72,12 +72,12 @@ public: // Construct a named tensor explicitly specifying size of each dimension template EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE NamedTensor(const std::string &Name, - const std::array &indexNames, + const std::array &indexNames, Eigen::Index firstDimension, IndexTypes... otherDimensions) : tensor(firstDimension, otherDimensions...), IndexNames{indexNames.begin(), indexNames.end()}, Name_{Name}, DefaultIndexNames_{indexNames} { - if(sizeof...(otherDimensions) + 1 != NumIndices) + if(sizeof...(otherDimensions) + 1 != NumIndices_) HADRONS_ERROR(Argument, "NamedTensor: dimensions != tensor rank"); }