From c9b737a4e7bb62cf6d22dace3458b108043e5023 Mon Sep 17 00:00:00 2001 From: Christoph Lehner Date: Mon, 16 Mar 2020 17:58:30 -0400 Subject: [PATCH] make trace,adj,transpose unary operators --- Grid/lattice/Lattice.h | 4 ++-- Grid/lattice/Lattice_trace.h | 2 ++ .../WilsonCloverFermionImplementation.h | 8 ++++---- Grid/qcd/action/gauge/GaugeImplementations.h | 2 +- Grid/qcd/utils/WilsonLoops.h | 4 ++-- bootstrap.sh | 15 ++++++++------- 6 files changed, 19 insertions(+), 16 deletions(-) diff --git a/Grid/lattice/Lattice.h b/Grid/lattice/Lattice.h index 1eea98ed..6eac0362 100644 --- a/Grid/lattice/Lattice.h +++ b/Grid/lattice/Lattice.h @@ -31,11 +31,11 @@ Author: Peter Boyle #include #include #include -#include +//#include #include #include #include -#include +//#include #include #include #include diff --git a/Grid/lattice/Lattice_trace.h b/Grid/lattice/Lattice_trace.h index 93444e0c..6b5f67d2 100644 --- a/Grid/lattice/Lattice_trace.h +++ b/Grid/lattice/Lattice_trace.h @@ -37,6 +37,7 @@ NAMESPACE_BEGIN(Grid); //////////////////////////////////////////////////////////////////////////////////////////////////// // Trace //////////////////////////////////////////////////////////////////////////////////////////////////// +/* template inline auto trace(const Lattice &lhs) -> Lattice { @@ -48,6 +49,7 @@ inline auto trace(const Lattice &lhs) -> Lattice }); return ret; }; +*/ //////////////////////////////////////////////////////////////////////////////////////////////////// // Trace Index level dependent operation diff --git a/Grid/qcd/action/fermion/implementation/WilsonCloverFermionImplementation.h b/Grid/qcd/action/fermion/implementation/WilsonCloverFermionImplementation.h index 5744d3bb..9d99d9e7 100644 --- a/Grid/qcd/action/fermion/implementation/WilsonCloverFermionImplementation.h +++ b/Grid/qcd/action/fermion/implementation/WilsonCloverFermionImplementation.h @@ -132,14 +132,14 @@ void WilsonCloverFermion::ImportGauge(const GaugeField &_Umu) pickCheckerboard(Even, CloverTermEven, CloverTerm); pickCheckerboard(Odd, CloverTermOdd, CloverTerm); - pickCheckerboard(Even, CloverTermDagEven, adj(CloverTerm)); - pickCheckerboard(Odd, CloverTermDagOdd, adj(CloverTerm)); + pickCheckerboard(Even, CloverTermDagEven, closure(adj(CloverTerm))); + pickCheckerboard(Odd, CloverTermDagOdd, closure(adj(CloverTerm))); pickCheckerboard(Even, CloverTermInvEven, CloverTermInv); pickCheckerboard(Odd, CloverTermInvOdd, CloverTermInv); - pickCheckerboard(Even, CloverTermInvDagEven, adj(CloverTermInv)); - pickCheckerboard(Odd, CloverTermInvDagOdd, adj(CloverTermInv)); + pickCheckerboard(Even, CloverTermInvDagEven, closure(adj(CloverTermInv))); + pickCheckerboard(Odd, CloverTermInvDagOdd, closure(adj(CloverTermInv))); } template diff --git a/Grid/qcd/action/gauge/GaugeImplementations.h b/Grid/qcd/action/gauge/GaugeImplementations.h index a14aec1b..19bc5aa6 100644 --- a/Grid/qcd/action/gauge/GaugeImplementations.h +++ b/Grid/qcd/action/gauge/GaugeImplementations.h @@ -59,7 +59,7 @@ public: } static inline GaugeLinkField CovShiftIdentityBackward(const GaugeLinkField &Link, int mu) { - return Cshift(adj(Link), mu, -1); + return Cshift(closure(adj(Link)), mu, -1); } static inline GaugeLinkField CovShiftIdentityForward(const GaugeLinkField &Link, int mu) { diff --git a/Grid/qcd/utils/WilsonLoops.h b/Grid/qcd/utils/WilsonLoops.h index 0367c9fa..fdd53698 100644 --- a/Grid/qcd/utils/WilsonLoops.h +++ b/Grid/qcd/utils/WilsonLoops.h @@ -485,7 +485,7 @@ public: // Up staple ___ ___ // | | - tmp = Cshift(adj(U[nu]), nu, -1); + tmp = Cshift(closure(adj(U[nu])), nu, -1); tmp = adj(U2[mu]) * tmp; tmp = Cshift(tmp, mu, -2); @@ -519,7 +519,7 @@ public: // // | | - tmp = Cshift(adj(U2[nu]), nu, -2); + tmp = Cshift(closure(adj(U2[nu])), nu, -2); tmp = Gimpl::CovShiftBackward(U[mu], mu, tmp); tmp = U2[nu] * Cshift(tmp, nu, 2); Stap += Cshift(tmp, mu, 1); diff --git a/bootstrap.sh b/bootstrap.sh index 4bd3de5e..5ea7ce32 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -1,19 +1,20 @@ #!/usr/bin/env bash set -e -EIGEN_URL='https://gitlab.com/libeigen/eigen/-/archive/3.3.7/eigen-3.3.7.tar.bz2' +#https://gitlab.com/libeigen/eigen/-/archive/3.3.7/eigen-3.3.7.tar.bz2 +EIGEN_URL='http://bitbucket.org/eigen/eigen/get/3.3.7.tar.bz2' EIGEN_SHA256SUM='685adf14bd8e9c015b78097c1dc22f2f01343756f196acdc76a678e1ae352e11' echo "-- deploying Eigen source..." ARC=`basename ${EIGEN_URL}` wget ${EIGEN_URL} --no-check-certificate -if command -v sha256sum; then - echo "$EIGEN_SHA256SUM $(basename "$EIGEN_URL")" \ - | sha256sum --check || exit 1 -else - echo "WARNING: could not verify checksum, please install sha256sum" >&2 -fi +#if command -v sha256sum; then +# echo "$EIGEN_SHA256SUM $(basename "$EIGEN_URL")" \ +# | sha256sum --check || exit 1 +#else +# echo "WARNING: could not verify checksum, please install sha256sum" >&2 +#fi ./scripts/update_eigen.sh ${ARC} rm ${ARC} # patch for non-portable includes in Eigen 3.3.5