diff --git a/Grid/qcd/utils/A2Autils.h b/Grid/qcd/utils/A2Autils.h index 11e00c49..b3914f33 100644 --- a/Grid/qcd/utils/A2Autils.h +++ b/Grid/qcd/utils/A2Autils.h @@ -134,8 +134,10 @@ void A2Autils::NucleonFieldMom(Eigen::Tensor &mat, int twoBlock = mat.dimension(3); int threeBlock = mat.dimension(4); - GridBase *grid = wi[0]._grid; - + assert(0 && "Apologies, Felix, next line was causing compile failure"); + //GridBase *grid = wi[0]._grid; + GridBase *grid = nullptr; + const int nd = grid->_ndimension; const int Nsimd = grid->Nsimd(); @@ -200,7 +202,9 @@ void A2Autils::NucleonFieldMom(Eigen::Tensor &mat, // After getting the sitewise product do the mom phase loop - int base = Nmom*i+Nmom*Lblock*j+Nmom*Lblock*Rblock*r; + assert(0 && "Apologies, Felix, next line was causing compile failure"); + //int base = Nmom*i+Nmom*Lblock*j+Nmom*Lblock*Rblock*r; + int base = 0; for ( int m=0;m; - using scalar_type = typename Traits::scalar_type; - for_all( lhs, [&](scalar_type &c, typename T1::Index n, const std::array &Dims ) { - scalar_type x = c - rhs[Dims]; - if( x < 1e-10 ) - bReturnValue = false; - } ); + Eigen::Tensor bResult = (lhs == rhs).all(); + bReturnValue = bResult(0); } return bReturnValue; } @@ -865,13 +860,13 @@ namespace Grid { } template - static inline typename std::enable_if, T>::value, void>::type + static inline typename std::enable_if::value, void>::type WriteMember(std::ostream &os, const T &object) { os << object; } template - static inline typename std::enable_if, T>::value, void>::type + static inline typename std::enable_if::value, void>::type WriteMember(std::ostream &os, const T &object) { os << "Eigen::Tensor"; }