From 013e710c7d7d0f5c54f1042a6346d06acf39a0a8 Mon Sep 17 00:00:00 2001 From: Antonin Portelli Date: Tue, 13 Dec 2016 19:04:43 +0000 Subject: [PATCH] Hadrons: 3pt function test improvement --- tests/hadrons/Test_hadrons_meson_3pt.cc | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/tests/hadrons/Test_hadrons_meson_3pt.cc b/tests/hadrons/Test_hadrons_meson_3pt.cc index 159981d0..b3156918 100644 --- a/tests/hadrons/Test_hadrons_meson_3pt.cc +++ b/tests/hadrons/Test_hadrons_meson_3pt.cc @@ -50,14 +50,14 @@ int main(int argc, char *argv[]) // global parameters Application::GlobalPar globalPar; - globalPar.trajCounter.start = 1500; - globalPar.trajCounter.end = 1520; - globalPar.trajCounter.step = 20; - globalPar.seed = "1 2 3 4"; - globalPar.genetic.maxGen = 5000; - globalPar.genetic.maxCstGen = 100; - globalPar.genetic.popSize = 50; - globalPar.genetic.mutationRate = .25; + globalPar.trajCounter.start = 1500; + globalPar.trajCounter.end = 1520; + globalPar.trajCounter.step = 20; + globalPar.seed = "1 2 3 4"; + globalPar.genetic.maxGen = 1000; + globalPar.genetic.maxCstGen = 200; + globalPar.genetic.popSize = 20; + globalPar.genetic.mutationRate = .1; application.setPar(globalPar); // gauge field @@ -79,7 +79,7 @@ int main(int argc, char *argv[]) application.createModule("CG_" + flavour[i], solverPar); } - for (unsigned int t = 0; t < nt; t += 8) + for (unsigned int t = 0; t < nt; t += 1) { std::string srcName; std::vector qName; @@ -118,7 +118,7 @@ int main(int argc, char *argv[]) for (unsigned int mu = 0; mu < Nd; ++mu) { quarkPar.source = seqName[i][mu]; - seqName[i][mu] = qName[i] + "-" + seqName[i][mu]; + seqName[i][mu] = "Q_" + flavour[i] + "-" + seqName[i][mu]; application.createModule(seqName[i][mu], quarkPar); } } @@ -159,7 +159,6 @@ int main(int argc, char *argv[]) } } - Environment::getInstance().printContent(); // execution application.run();