From 0a8faac2713c981be4a61c06d90ce0d6c5de211a Mon Sep 17 00:00:00 2001 From: Azusa Yamaguchi Date: Mon, 19 Jun 2017 22:54:18 +0100 Subject: [PATCH] Fix make tests compile --- lib/qcd/action/scalar/ScalarImpl.h | 13 ++++++++----- tests/debug/Test_cayley_ldop_cr.cc | 2 +- tests/solver/Test_dwf_hdcr.cc | 2 +- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/lib/qcd/action/scalar/ScalarImpl.h b/lib/qcd/action/scalar/ScalarImpl.h index ee2d2fb8..0116b4f9 100644 --- a/lib/qcd/action/scalar/ScalarImpl.h +++ b/lib/qcd/action/scalar/ScalarImpl.h @@ -15,6 +15,8 @@ namespace Grid { typedef iImplField SiteField; + template using iImplScalar= iScalar > >; + typedef iImplScalar ComplexField; typedef Lattice Field; @@ -51,13 +53,14 @@ namespace Grid { public: typedef S Simd; - template - using iImplField = iScalar > >; - + template using iImplField = iScalar > >; + typedef iImplField SiteField; - - typedef Lattice Field; + + template using iImplScalar= iScalar > >; + typedef iImplScalar ComplexField; + static inline void generate_momenta(Field& P, GridParallelRNG& pRNG){ gaussian(pRNG, P); diff --git a/tests/debug/Test_cayley_ldop_cr.cc b/tests/debug/Test_cayley_ldop_cr.cc index dfda43d2..cbefdd46 100644 --- a/tests/debug/Test_cayley_ldop_cr.cc +++ b/tests/debug/Test_cayley_ldop_cr.cc @@ -67,7 +67,7 @@ int main (int argc, char ** argv) LatticeFermion err(FGrid); LatticeGaugeField Umu(UGrid); - NerscField header; + FieldMetaData header; std::string file("./ckpoint_lat.400"); NerscIO::readConfiguration(Umu,header,file); diff --git a/tests/solver/Test_dwf_hdcr.cc b/tests/solver/Test_dwf_hdcr.cc index 64ca0b33..c553ba0a 100644 --- a/tests/solver/Test_dwf_hdcr.cc +++ b/tests/solver/Test_dwf_hdcr.cc @@ -516,7 +516,7 @@ int main (int argc, char ** argv) LatticeColourMatrix U(UGrid); LatticeColourMatrix zz(UGrid); - NerscField header; + FieldMetaData header; std::string file("./ckpoint_lat.4000"); NerscIO::readConfiguration(Umu,header,file);