From cad26a736e7744687044318e22b55e3a0209d30f Mon Sep 17 00:00:00 2001 From: ferben Date: Fri, 22 Feb 2019 17:05:16 +0000 Subject: [PATCH] quick&dirty fix for g5*field --- Hadrons/Modules.hpp | 137 ++++++------ Hadrons/Modules/MDistil/LapEvec.hpp | 2 +- Hadrons/Modules/MDistil/PerambLight.hpp | 2 +- Hadrons/modules.inc | 264 ++++++++++++------------ tests/hadrons/Test_hadrons_distil.cc | 18 +- 5 files changed, 221 insertions(+), 202 deletions(-) diff --git a/Hadrons/Modules.hpp b/Hadrons/Modules.hpp index 6c05dc46..4f186a97 100644 --- a/Hadrons/Modules.hpp +++ b/Hadrons/Modules.hpp @@ -1,80 +1,81 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include #include #include +#include #include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include +#include +#include #include -#include -#include #include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include -#include +#include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include -#include #include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include diff --git a/Hadrons/Modules/MDistil/LapEvec.hpp b/Hadrons/Modules/MDistil/LapEvec.hpp index fa62fe49..5dfc830b 100644 --- a/Hadrons/Modules/MDistil/LapEvec.hpp +++ b/Hadrons/Modules/MDistil/LapEvec.hpp @@ -239,7 +239,7 @@ void TLapEvec::execute(void) auto &Umu = envGet(GaugeField, par().gauge); envGetTmp(GaugeField, Umu_smear); FieldMetaData header; - if((0)) { + if((1)) { const std::vector seeds({1, 2, 3, 4, 5}); GridParallelRNG pRNG4d(gridHD); pRNG4d.SeedFixedIntegers(seeds); diff --git a/Hadrons/Modules/MDistil/PerambLight.hpp b/Hadrons/Modules/MDistil/PerambLight.hpp index ba8f6ffa..00ac74cc 100644 --- a/Hadrons/Modules/MDistil/PerambLight.hpp +++ b/Hadrons/Modules/MDistil/PerambLight.hpp @@ -212,7 +212,7 @@ void TPerambLight::execute(void) envGetTmp(GaugeField, Umu); FieldMetaData header; - if((0)){ + if((1)){ const std::vector seeds({1, 2, 3, 4, 5}); GridParallelRNG pRNG4d(grid4d); pRNG4d.SeedFixedIntegers(seeds); diff --git a/Hadrons/modules.inc b/Hadrons/modules.inc index 17f54adb..f5a3cb78 100644 --- a/Hadrons/modules.inc +++ b/Hadrons/modules.inc @@ -1,159 +1,161 @@ modules_cc =\ - Modules/MContraction/WeakHamiltonianEye.cc \ - Modules/MContraction/Baryon.cc \ - Modules/MContraction/Meson.cc \ - Modules/MContraction/WeakNeutral4ptDisc.cc \ - Modules/MContraction/WeakHamiltonianNonEye.cc \ - Modules/MContraction/A2AAslashField.cc \ - Modules/MContraction/WardIdentity.cc \ - Modules/MContraction/A2AMesonField.cc \ - Modules/MContraction/DiscLoop.cc \ - Modules/MContraction/Gamma3pt.cc \ - Modules/MFermion/FreeProp.cc \ - Modules/MFermion/GaugeProp.cc \ - Modules/MSource/Momentum.cc \ - Modules/MSource/Point.cc \ - Modules/MSource/Wall.cc \ - Modules/MSource/SeqConserved.cc \ - Modules/MSource/SeqGamma.cc \ - Modules/MSource/Z2.cc \ - Modules/MSink/Point.cc \ - Modules/MSink/Smear.cc \ - Modules/MSolver/A2AVectors.cc \ - Modules/MSolver/A2AAslashVectors.cc \ - Modules/MSolver/RBPrecCG.cc \ - Modules/MSolver/MixedPrecisionRBPrecCG.cc \ - Modules/MSolver/LocalCoherenceLanczos.cc \ - Modules/MGauge/StoutSmearing.cc \ - Modules/MGauge/Unit.cc \ - Modules/MGauge/UnitEm.cc \ - Modules/MGauge/StochEm.cc \ - Modules/MGauge/Random.cc \ - Modules/MGauge/Electrify.cc \ - Modules/MGauge/FundtoHirep.cc \ - Modules/MGauge/GaugeFix.cc \ - Modules/MNoise/FullVolumeSpinColorDiagonal.cc \ - Modules/MNoise/TimeDilutedSpinColorDiagonal.cc \ + Modules/MUtilities/TestSeqConserved.cc \ Modules/MUtilities/RandomVectors.cc \ Modules/MUtilities/TestSeqGamma.cc \ Modules/MUtilities/PrecisionCast.cc \ - Modules/MUtilities/TestSeqConserved.cc \ - Modules/MLoop/NoiseLoop.cc \ - Modules/MScalar/FreeProp.cc \ - Modules/MScalar/VPCounterTerms.cc \ - Modules/MScalar/ChargedProp.cc \ - Modules/MScalar/ScalarVP.cc \ - Modules/MDistil/DistilVectors.cc \ + Modules/MSolver/MixedPrecisionRBPrecCG.cc \ + Modules/MSolver/A2AVectors.cc \ + Modules/MSolver/A2AAslashVectors.cc \ + Modules/MSolver/LocalCoherenceLanczos.cc \ + Modules/MSolver/RBPrecCG.cc \ + Modules/MDistil/g5_multiply.cc \ Modules/MDistil/BContraction.cc \ Modules/MDistil/LapEvec.cc \ Modules/MDistil/Baryon2pt.cc \ Modules/MDistil/PerambLight.cc \ + Modules/MDistil/DistilVectors.cc \ + Modules/MContraction/WeakHamiltonianEye.cc \ + Modules/MContraction/Gamma3pt.cc \ + Modules/MContraction/DiscLoop.cc \ + Modules/MContraction/Meson.cc \ + Modules/MContraction/WeakNeutral4ptDisc.cc \ + Modules/MContraction/WardIdentity.cc \ + Modules/MContraction/A2AMesonField.cc \ + Modules/MContraction/WeakHamiltonianNonEye.cc \ + Modules/MContraction/Baryon.cc \ + Modules/MContraction/A2AAslashField.cc \ + Modules/MAction/ZMobiusDWF.cc \ + Modules/MAction/WilsonClover.cc \ + Modules/MAction/Wilson.cc \ + Modules/MAction/DWF.cc \ + Modules/MAction/MobiusDWF.cc \ + Modules/MAction/ScaledDWF.cc \ + Modules/MGauge/FundtoHirep.cc \ + Modules/MGauge/Random.cc \ + Modules/MGauge/UnitEm.cc \ + Modules/MGauge/StochEm.cc \ + Modules/MGauge/GaugeFix.cc \ + Modules/MGauge/Unit.cc \ + Modules/MGauge/StoutSmearing.cc \ + Modules/MGauge/Electrify.cc \ + Modules/MNoise/TimeDilutedSpinColorDiagonal.cc \ + Modules/MNoise/FullVolumeSpinColorDiagonal.cc \ + Modules/MIO/LoadNersc.cc \ + Modules/MIO/LoadA2AVectors.cc \ + Modules/MIO/LoadCoarseEigenPack.cc \ + Modules/MIO/LoadEigenPack.cc \ + Modules/MIO/LoadBinary.cc \ + Modules/MIO/LoadCosmHol.cc \ Modules/MNPR/Amputate.cc \ Modules/MNPR/Bilinear.cc \ Modules/MNPR/FourQuark.cc \ - Modules/MAction/Wilson.cc \ - Modules/MAction/MobiusDWF.cc \ - Modules/MAction/ZMobiusDWF.cc \ - Modules/MAction/WilsonClover.cc \ - Modules/MAction/DWF.cc \ - Modules/MAction/ScaledDWF.cc \ - Modules/MScalarSUN/TrPhi.cc \ - Modules/MScalarSUN/Grad.cc \ - Modules/MScalarSUN/TrMag.cc \ - Modules/MScalarSUN/TrKinetic.cc \ - Modules/MScalarSUN/EMT.cc \ - Modules/MScalarSUN/ShiftProbe.cc \ - Modules/MScalarSUN/TransProj.cc \ - Modules/MScalarSUN/StochFreeField.cc \ + Modules/MLoop/NoiseLoop.cc \ Modules/MScalarSUN/TwoPoint.cc \ - Modules/MScalarSUN/TwoPointNPR.cc \ Modules/MScalarSUN/Div.cc \ - Modules/MIO/LoadEigenPack.cc \ - Modules/MIO/LoadBinary.cc \ - Modules/MIO/LoadNersc.cc \ - Modules/MIO/LoadCoarseEigenPack.cc \ - Modules/MIO/LoadCosmHol.cc \ - Modules/MIO/LoadA2AVectors.cc + Modules/MScalarSUN/TwoPointNPR.cc \ + Modules/MScalarSUN/ShiftProbe.cc \ + Modules/MScalarSUN/TrPhi.cc \ + Modules/MScalarSUN/TrMag.cc \ + Modules/MScalarSUN/TransProj.cc \ + Modules/MScalarSUN/TrKinetic.cc \ + Modules/MScalarSUN/StochFreeField.cc \ + Modules/MScalarSUN/EMT.cc \ + Modules/MScalarSUN/Grad.cc \ + Modules/MSink/Smear.cc \ + Modules/MSink/Point.cc \ + Modules/MFermion/GaugeProp.cc \ + Modules/MFermion/FreeProp.cc \ + Modules/MScalar/FreeProp.cc \ + Modules/MScalar/ScalarVP.cc \ + Modules/MScalar/VPCounterTerms.cc \ + Modules/MScalar/ChargedProp.cc \ + Modules/MSource/SeqConserved.cc \ + Modules/MSource/SeqGamma.cc \ + Modules/MSource/Wall.cc \ + Modules/MSource/Z2.cc \ + Modules/MSource/Point.cc \ + Modules/MSource/Momentum.cc modules_hpp =\ - Modules/MContraction/Baryon.hpp \ - Modules/MContraction/A2AAslashField.hpp \ - Modules/MContraction/A2AMesonField.hpp \ - Modules/MContraction/Meson.hpp \ - Modules/MContraction/WeakHamiltonian.hpp \ - Modules/MContraction/WeakHamiltonianNonEye.hpp \ - Modules/MContraction/DiscLoop.hpp \ - Modules/MContraction/WeakNeutral4ptDisc.hpp \ - Modules/MContraction/Gamma3pt.hpp \ - Modules/MContraction/WardIdentity.hpp \ - Modules/MContraction/WeakHamiltonianEye.hpp \ - Modules/MFermion/FreeProp.hpp \ - Modules/MFermion/GaugeProp.hpp \ - Modules/MSource/SeqGamma.hpp \ - Modules/MSource/Point.hpp \ - Modules/MSource/Wall.hpp \ - Modules/MSource/Z2.hpp \ - Modules/MSource/SeqConserved.hpp \ - Modules/MSource/Momentum.hpp \ - Modules/MSink/Smear.hpp \ - Modules/MSink/Point.hpp \ - Modules/MSolver/MixedPrecisionRBPrecCG.hpp \ - Modules/MSolver/LocalCoherenceLanczos.hpp \ - Modules/MSolver/A2AAslashVectors.hpp \ - Modules/MSolver/Guesser.hpp \ - Modules/MSolver/RBPrecCG.hpp \ - Modules/MSolver/A2AVectors.hpp \ - Modules/MGauge/UnitEm.hpp \ - Modules/MGauge/StoutSmearing.hpp \ - Modules/MGauge/Unit.hpp \ - Modules/MGauge/Random.hpp \ - Modules/MGauge/GaugeFix.hpp \ - Modules/MGauge/FundtoHirep.hpp \ - Modules/MGauge/StochEm.hpp \ - Modules/MGauge/Electrify.hpp \ - Modules/MNoise/TimeDilutedSpinColorDiagonal.hpp \ - Modules/MNoise/FullVolumeSpinColorDiagonal.hpp \ - Modules/MUtilities/PrecisionCast.hpp \ Modules/MUtilities/RandomVectors.hpp \ Modules/MUtilities/TestSeqGamma.hpp \ + Modules/MUtilities/PrecisionCast.hpp \ Modules/MUtilities/TestSeqConserved.hpp \ - Modules/MLoop/NoiseLoop.hpp \ - Modules/MScalar/FreeProp.hpp \ - Modules/MScalar/VPCounterTerms.hpp \ - Modules/MScalar/ScalarVP.hpp \ - Modules/MScalar/Scalar.hpp \ - Modules/MScalar/ChargedProp.hpp \ - Modules/MDistil/Distil.hpp \ + Modules/MSolver/MixedPrecisionRBPrecCG.hpp \ + Modules/MSolver/A2AAslashVectors.hpp \ + Modules/MSolver/Guesser.hpp \ + Modules/MSolver/LocalCoherenceLanczos.hpp \ + Modules/MSolver/RBPrecCG.hpp \ + Modules/MSolver/A2AVectors.hpp \ Modules/MDistil/LapEvec.hpp \ + Modules/MDistil/Distil.hpp \ + Modules/MDistil/g5_multiply.hpp \ Modules/MDistil/DistilVectors.hpp \ - Modules/MDistil/PerambLight.hpp \ - Modules/MDistil/BContraction.hpp \ Modules/MDistil/Baryon2pt.hpp \ - Modules/MNPR/Bilinear.hpp \ - Modules/MNPR/Amputate.hpp \ - Modules/MNPR/FourQuark.hpp \ - Modules/MAction/DWF.hpp \ - Modules/MAction/MobiusDWF.hpp \ + Modules/MDistil/BContraction.hpp \ + Modules/MDistil/PerambLight.hpp \ + Modules/MContraction/WeakHamiltonian.hpp \ + Modules/MContraction/WeakNeutral4ptDisc.hpp \ + Modules/MContraction/WeakHamiltonianEye.hpp \ + Modules/MContraction/DiscLoop.hpp \ + Modules/MContraction/Baryon.hpp \ + Modules/MContraction/Gamma3pt.hpp \ + Modules/MContraction/A2AMesonField.hpp \ + Modules/MContraction/A2AAslashField.hpp \ + Modules/MContraction/WeakHamiltonianNonEye.hpp \ + Modules/MContraction/Meson.hpp \ + Modules/MContraction/WardIdentity.hpp \ Modules/MAction/Wilson.hpp \ Modules/MAction/WilsonClover.hpp \ - Modules/MAction/ZMobiusDWF.hpp \ + Modules/MAction/DWF.hpp \ Modules/MAction/ScaledDWF.hpp \ - Modules/MScalarSUN/StochFreeField.hpp \ - Modules/MScalarSUN/TwoPointNPR.hpp \ - Modules/MScalarSUN/ShiftProbe.hpp \ - Modules/MScalarSUN/Div.hpp \ - Modules/MScalarSUN/TrMag.hpp \ - Modules/MScalarSUN/EMT.hpp \ - Modules/MScalarSUN/TwoPoint.hpp \ - Modules/MScalarSUN/TrPhi.hpp \ - Modules/MScalarSUN/Utils.hpp \ - Modules/MScalarSUN/TransProj.hpp \ - Modules/MScalarSUN/Grad.hpp \ - Modules/MScalarSUN/TrKinetic.hpp \ - Modules/MIO/LoadEigenPack.hpp \ + Modules/MAction/ZMobiusDWF.hpp \ + Modules/MAction/MobiusDWF.hpp \ + Modules/MGauge/Random.hpp \ + Modules/MGauge/Unit.hpp \ + Modules/MGauge/UnitEm.hpp \ + Modules/MGauge/StoutSmearing.hpp \ + Modules/MGauge/StochEm.hpp \ + Modules/MGauge/Electrify.hpp \ + Modules/MGauge/FundtoHirep.hpp \ + Modules/MGauge/GaugeFix.hpp \ + Modules/MNoise/TimeDilutedSpinColorDiagonal.hpp \ + Modules/MNoise/FullVolumeSpinColorDiagonal.hpp \ + Modules/MIO/LoadBinary.hpp \ + Modules/MIO/LoadCosmHol.hpp \ Modules/MIO/LoadNersc.hpp \ Modules/MIO/LoadA2AVectors.hpp \ - Modules/MIO/LoadCosmHol.hpp \ Modules/MIO/LoadCoarseEigenPack.hpp \ - Modules/MIO/LoadBinary.hpp + Modules/MIO/LoadEigenPack.hpp \ + Modules/MNPR/Amputate.hpp \ + Modules/MNPR/FourQuark.hpp \ + Modules/MNPR/Bilinear.hpp \ + Modules/MLoop/NoiseLoop.hpp \ + Modules/MScalarSUN/TransProj.hpp \ + Modules/MScalarSUN/TwoPoint.hpp \ + Modules/MScalarSUN/TrMag.hpp \ + Modules/MScalarSUN/TrKinetic.hpp \ + Modules/MScalarSUN/EMT.hpp \ + Modules/MScalarSUN/Grad.hpp \ + Modules/MScalarSUN/Utils.hpp \ + Modules/MScalarSUN/Div.hpp \ + Modules/MScalarSUN/TrPhi.hpp \ + Modules/MScalarSUN/TwoPointNPR.hpp \ + Modules/MScalarSUN/StochFreeField.hpp \ + Modules/MScalarSUN/ShiftProbe.hpp \ + Modules/MSink/Smear.hpp \ + Modules/MSink/Point.hpp \ + Modules/MFermion/GaugeProp.hpp \ + Modules/MFermion/FreeProp.hpp \ + Modules/MScalar/Scalar.hpp \ + Modules/MScalar/ScalarVP.hpp \ + Modules/MScalar/FreeProp.hpp \ + Modules/MScalar/ChargedProp.hpp \ + Modules/MScalar/VPCounterTerms.hpp \ + Modules/MSource/Momentum.hpp \ + Modules/MSource/SeqGamma.hpp \ + Modules/MSource/Point.hpp \ + Modules/MSource/Z2.hpp \ + Modules/MSource/Wall.hpp \ + Modules/MSource/SeqConserved.hpp diff --git a/tests/hadrons/Test_hadrons_distil.cc b/tests/hadrons/Test_hadrons_distil.cc index 660626fd..49fd2a76 100644 --- a/tests/hadrons/Test_hadrons_distil.cc +++ b/tests/hadrons/Test_hadrons_distil.cc @@ -199,6 +199,21 @@ void test_MesonSink(Application &application) application.createModule("DistilMesonSink",A2AMesonFieldPar); } ///////////////////////////////////////////////////////////// +// g5*unsmeared +///////////////////////////////////////////////////////////// + +void test_g5_sinks(Application &application) +{ + // DistilVectors parameters + MDistil::g5_multiply::Par g5_multiplyPar; + g5_multiplyPar.input="Peramb_unsmeared_sink"; + g5_multiplyPar.nnoise = 1; + g5_multiplyPar.LI=5; + g5_multiplyPar.Ns=4; + g5_multiplyPar.Nt_inv=1; + application.createModule("g5phi",g5_multiplyPar); +} +///////////////////////////////////////////////////////////// // MesonFields ///////////////////////////////////////////////////////////// @@ -318,7 +333,7 @@ void test_Aslash(Application &application) { // DistilVectors parameters MContraction::A2AAslashField::Par A2AAslashFieldPar; - A2AAslashFieldPar.left="Peramb_unsmeared_sink"; + A2AAslashFieldPar.left="g5phi"; A2AAslashFieldPar.right="Peramb_unsmeared_sink"; A2AAslashFieldPar.output="unsmeared_Aslash"; A2AAslashFieldPar.emField={"Em"}; @@ -797,6 +812,7 @@ int main(int argc, char *argv[]) test_Global( application ); test_LapEvec( application ); test_Perambulators( application ); + test_g5_sinks( application ); test_em( application ); test_Aslash( application ); break;