1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-09-20 01:05:38 +01:00

Fix make tests compile

This commit is contained in:
Azusa Yamaguchi 2017-06-19 22:54:18 +01:00
parent abc4de0fd2
commit 0a8faac271
3 changed files with 10 additions and 7 deletions

View File

@ -15,6 +15,8 @@ namespace Grid {
typedef iImplField<Simd> SiteField; typedef iImplField<Simd> SiteField;
template <typename vtype> using iImplScalar= iScalar<iScalar<iScalar<vtype > > >;
typedef iImplScalar<Simd> ComplexField;
typedef Lattice<SiteField> Field; typedef Lattice<SiteField> Field;
@ -51,13 +53,14 @@ namespace Grid {
public: public:
typedef S Simd; typedef S Simd;
template <typename vtype> template <typename vtype> using iImplField = iScalar<iScalar<iMatrix<vtype, N> > >;
using iImplField = iScalar<iScalar<iMatrix<vtype, N> > >;
typedef iImplField<Simd> SiteField; typedef iImplField<Simd> SiteField;
typedef Lattice<SiteField> Field; typedef Lattice<SiteField> Field;
template <typename vtype> using iImplScalar= iScalar<iScalar<iScalar<vtype > > >;
typedef iImplScalar<Simd> ComplexField;
static inline void generate_momenta(Field& P, GridParallelRNG& pRNG){ static inline void generate_momenta(Field& P, GridParallelRNG& pRNG){
gaussian(pRNG, P); gaussian(pRNG, P);

View File

@ -67,7 +67,7 @@ int main (int argc, char ** argv)
LatticeFermion err(FGrid); LatticeFermion err(FGrid);
LatticeGaugeField Umu(UGrid); LatticeGaugeField Umu(UGrid);
NerscField header; FieldMetaData header;
std::string file("./ckpoint_lat.400"); std::string file("./ckpoint_lat.400");
NerscIO::readConfiguration(Umu,header,file); NerscIO::readConfiguration(Umu,header,file);

View File

@ -516,7 +516,7 @@ int main (int argc, char ** argv)
LatticeColourMatrix U(UGrid); LatticeColourMatrix U(UGrid);
LatticeColourMatrix zz(UGrid); LatticeColourMatrix zz(UGrid);
NerscField header; FieldMetaData header;
std::string file("./ckpoint_lat.4000"); std::string file("./ckpoint_lat.4000");
NerscIO::readConfiguration(Umu,header,file); NerscIO::readConfiguration(Umu,header,file);