1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-12 20:27:06 +01:00

Discovered bug root cause. setup() is called multiple times. Now ready to copy-paste the LapEvec code

This commit is contained in:
2019-01-23 21:17:56 +00:00
parent 2c7e6bf58b
commit b45586e81c
3 changed files with 59 additions and 36 deletions

View File

@ -224,8 +224,7 @@ void free_prop(Application &application)
void test_LapEvec(Application &application)
{
const unsigned int nt = GridDefaultLatt()[Tp];
const char szGaugeName[] = "gauge";
// global parameters
Application::GlobalPar globalPar;
globalPar.trajCounter.start = 1500;
@ -234,11 +233,12 @@ void test_LapEvec(Application &application)
globalPar.runId = "test";
application.setPar(globalPar);
// gauge field
application.createModule<MGauge::Unit>("gauge");
application.createModule<MGauge::Unit>(szGaugeName);
// Now make an instance of the LapEvec object
MDistil::LapEvecPar par;
par.Stout.steps = 173;
par.Stout.parm = -9.87654321;
par.gauge = szGaugeName;
application.createModule<MDistil::LapEvec>("LapEvec",par);
}