mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 21:50:45 +01:00
Merge branch 'feature/distil' of github.com:mmphys/Grid into feature/distil
This commit is contained in:
commit
2062a8d578
@ -243,10 +243,10 @@ void test_LapEvec(Application &application)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////
|
||||||
// Felix, this is your test here
|
// Perambulators
|
||||||
/////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
void test_FelixRenameMe(Application &application)
|
void test_Perambulators(Application &application)
|
||||||
{
|
{
|
||||||
const unsigned int nt = GridDefaultLatt()[Tp];
|
const unsigned int nt = GridDefaultLatt()[Tp];
|
||||||
|
|
||||||
@ -260,7 +260,41 @@ void test_FelixRenameMe(Application &application)
|
|||||||
// gauge field
|
// gauge field
|
||||||
application.createModule<MGauge::Unit>("gauge");
|
application.createModule<MGauge::Unit>("gauge");
|
||||||
// Now make an instance of the LapEvec object
|
// Now make an instance of the LapEvec object
|
||||||
application.createModule<MDistil::DistilVectors>("DistilVectorsInstance");
|
application.createModule<MDistil::PerambLight>("PerambulatorsInstance");
|
||||||
|
}
|
||||||
|
/////////////////////////////////////////////////////////////
|
||||||
|
// DistilVectors
|
||||||
|
/////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
void test_DistilVectors(Application &application)
|
||||||
|
{
|
||||||
|
const unsigned int nt = GridDefaultLatt()[Tp];
|
||||||
|
|
||||||
|
// global parameters
|
||||||
|
Application::GlobalPar globalPar;
|
||||||
|
globalPar.trajCounter.start = 1500;
|
||||||
|
globalPar.trajCounter.end = 1520;
|
||||||
|
globalPar.trajCounter.step = 20;
|
||||||
|
globalPar.runId = "test";
|
||||||
|
application.setPar(globalPar);
|
||||||
|
// Module parameters
|
||||||
|
MDistil::DistilVectors::Par DistilPar;
|
||||||
|
DistilPar.noise="noise";
|
||||||
|
DistilPar.perambulator="perambulator";
|
||||||
|
DistilPar.eigenPack="ePack";
|
||||||
|
DistilPar.tsrc = 0;
|
||||||
|
DistilPar.nnoise = 1;
|
||||||
|
DistilPar.LI=6;
|
||||||
|
DistilPar.SI=4;
|
||||||
|
DistilPar.TI=64;
|
||||||
|
DistilPar.nvec=6;
|
||||||
|
DistilPar.Ns=4;
|
||||||
|
DistilPar.Nt=64;
|
||||||
|
DistilPar.Nt_inv=1;
|
||||||
|
// gauge field
|
||||||
|
application.createModule<MGauge::Unit>("gauge");
|
||||||
|
// Now make an instance of the LapEvec object
|
||||||
|
application.createModule<MDistil::DistilVectors>("DistilVectorsInstance",DistilPar);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool bNumber( int &ri, const char * & pstr, bool bGobbleWhiteSpace = true )
|
bool bNumber( int &ri, const char * & pstr, bool bGobbleWhiteSpace = true )
|
||||||
@ -334,7 +368,9 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
// For now perform free propagator test - replace this with distillation test(s)
|
// For now perform free propagator test - replace this with distillation test(s)
|
||||||
LOG(Message) << "====== Creating xml for test " << iTestNum << " ======" << std::endl;
|
LOG(Message) << "====== Creating xml for test " << iTestNum << " ======" << std::endl;
|
||||||
switch(iTestNum) {
|
const unsigned int nt = GridDefaultLatt()[Tp];
|
||||||
|
|
||||||
|
switch(iTestNum) {
|
||||||
case 0:
|
case 0:
|
||||||
free_prop( application );
|
free_prop( application );
|
||||||
break;
|
break;
|
||||||
@ -342,7 +378,7 @@ int main(int argc, char *argv[])
|
|||||||
test_LapEvec( application );
|
test_LapEvec( application );
|
||||||
break;
|
break;
|
||||||
default: // 2
|
default: // 2
|
||||||
test_FelixRenameMe( application );
|
test_DistilVectors( application );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
LOG(Message) << "====== XML creation for test " << iTestNum << " complete ======" << std::endl;
|
LOG(Message) << "====== XML creation for test " << iTestNum << " complete ======" << std::endl;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user