1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-09 23:45:36 +00:00

Remove accidental check-in of local debugging

This commit is contained in:
Michael Marshall 2019-11-02 15:24:12 +00:00
parent 1c10933db1
commit 4bcdb4ff95

View File

@ -253,14 +253,6 @@ void tensorConvTestFn(GridSerialRNG &rng, const std::string label)
}
#define tensorConvTest(rng, type) tensorConvTestFn<type>(rng, #type)
static const std::string TheyCallMeLurve{"That's not my name"};
static const std::string Coco{"Coco the dancing seal"};
static const std::array<std::string,2> GreatestShowOnEarth{ "Burnum", "Burnum" };
using MyPerambTensor = Grid::Hadrons::NamedTensor<SpinVector, 6, Grid::Hadrons::MDistil::PerambTensorName, Grid::Hadrons::MDistil::PerambIndexNames>;
static const std::string MPTName{ "Perambulator" };
static const std::array<std::string, 6> MPTIndexNames{"nT", "nVec", "LI", "nNoise", "nT_inv", "SI"};
using MyPerambTensor2 = Grid::Hadrons::NamedTensor<SpinVector, 6, MPTName, MPTIndexNames>;
int main(int argc,char **argv)
{
@ -392,33 +384,5 @@ int main(int argc,char **argv)
XmlWriter HMCwr("HMCparameters.xml");
write(HMCwr,"HMCparameters",HMCparams);
}
using Tst1=Hadrons::NamedTensor<double,2,Coco,GreatestShowOnEarth>;
using Tst2=Hadrons::NamedTensor<double,2,TheyCallMeLurve,GreatestShowOnEarth>;
using Tst3=Hadrons::NamedTensor<double,2,TheyCallMeLurve,GreatestShowOnEarth>;
std::cout << "typeid(Tst1)=" << typeid(Tst1).name() << std::endl;
std::cout << "typeid(Tst2)=" << typeid(Tst2).name() << std::endl;
std::cout << "typeid(Tst3)=" << typeid(Tst3).name() << std::endl;
std::cout << "Tst1 is " << ( typeid(Tst1) == typeid(Tst2) ? "" : "not " )
<< "the same as Tst2" << std::endl;
std::cout << "Tst3 is " << ( typeid(Tst3) == typeid(Tst2) ? "" : "not " )
<< "the same as Tst2" << std::endl;
std::cout << "typeid(PerambTensor)=" << typeid(Grid::Hadrons::MDistil::PerambTensor).name() << std::endl;
std::cout << "typeid(MyPerambTensor)=" << typeid(MyPerambTensor).name() << std::endl;
std::cout << "Grid::Hadrons::MDistil::PerambTensor is "
<< ( typeid(Grid::Hadrons::MDistil::PerambTensor) == typeid(MyPerambTensor) ? "" : "not " )
<< "the same as MyPerambTensor" << std::endl;
std::cout << "Grid::Hadrons::MDistil::PerambTensor is "
<< ( typeid(Grid::Hadrons::MDistil::PerambTensor) == typeid(MyPerambTensor2) ? "" : "not " )
<< "the same as MyPerambTensor2" << std::endl;
const std::string FileOriginal{"Peramb.3000"};
const std::string FileCopy{"Peramb_deleteme.3000"};
MyPerambTensor p;
p.read(FileOriginal,true,std::string("NamedTensor"));
//p.IndexNames[3] = "Lemons " + p.IndexNames[3];
p.write(FileCopy);
p.read(FileCopy,false);
p.read(FileCopy);
Grid_finalize();
}