mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-13 01:05:36 +00:00
Tests compile
This commit is contained in:
parent
d45c868656
commit
8cd4263974
@ -66,7 +66,9 @@ int main(int argc, char** argv)
|
|||||||
// Set up RNGs
|
// Set up RNGs
|
||||||
std::vector<int> seeds4({1, 2, 3, 4});
|
std::vector<int> seeds4({1, 2, 3, 4});
|
||||||
std::vector<int> seeds5({5, 6, 7, 8});
|
std::vector<int> seeds5({5, 6, 7, 8});
|
||||||
|
GridSerialRNG sRNG;
|
||||||
GridParallelRNG RNG5(FGrid);
|
GridParallelRNG RNG5(FGrid);
|
||||||
|
sRNG.SeedFixedIntegers(seeds5);
|
||||||
RNG5.SeedFixedIntegers(seeds5);
|
RNG5.SeedFixedIntegers(seeds5);
|
||||||
GridParallelRNG RNG4(UGrid);
|
GridParallelRNG RNG4(UGrid);
|
||||||
RNG4.SeedFixedIntegers(seeds4);
|
RNG4.SeedFixedIntegers(seeds4);
|
||||||
@ -84,7 +86,7 @@ int main(int argc, char** argv)
|
|||||||
ConjugateGradient<LatticeFermion> CG(1.0e-12, 5000);
|
ConjugateGradient<LatticeFermion> CG(1.0e-12, 5000);
|
||||||
ExactOneFlavourRatioPseudoFermionAction<WilsonImplR> Meofa(Lop, Rop, CG, Params, false);
|
ExactOneFlavourRatioPseudoFermionAction<WilsonImplR> Meofa(Lop, Rop, CG, Params, false);
|
||||||
|
|
||||||
Meofa.refresh(Umu, RNG5);
|
Meofa.refresh(Umu,sRNG, RNG5);
|
||||||
printf("<Phi|Meofa|Phi> = %1.15e\n", Meofa.S(Umu));
|
printf("<Phi|Meofa|Phi> = %1.15e\n", Meofa.S(Umu));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -94,7 +96,7 @@ int main(int argc, char** argv)
|
|||||||
ConjugateGradient<LatticeFermion> CG(1.0e-12, 5000);
|
ConjugateGradient<LatticeFermion> CG(1.0e-12, 5000);
|
||||||
ExactOneFlavourRatioPseudoFermionAction<WilsonImplR> Meofa(Lop, Rop, CG, Params, true);
|
ExactOneFlavourRatioPseudoFermionAction<WilsonImplR> Meofa(Lop, Rop, CG, Params, true);
|
||||||
|
|
||||||
Meofa.refresh(Umu, RNG5);
|
Meofa.refresh(Umu,sRNG, RNG5);
|
||||||
printf("<Phi|Meofa|Phi> = %1.15e\n", Meofa.S(Umu));
|
printf("<Phi|Meofa|Phi> = %1.15e\n", Meofa.S(Umu));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -74,6 +74,9 @@ int main(int argc, char** argv)
|
|||||||
RNG5.SeedFixedIntegers(seeds5);
|
RNG5.SeedFixedIntegers(seeds5);
|
||||||
GridParallelRNG RNG4(UGrid);
|
GridParallelRNG RNG4(UGrid);
|
||||||
RNG4.SeedFixedIntegers(seeds4);
|
RNG4.SeedFixedIntegers(seeds4);
|
||||||
|
GridSerialRNG sRNG;
|
||||||
|
RNG4.SeedFixedIntegers(seeds4);
|
||||||
|
sRNG.SeedFixedIntegers(seeds5);
|
||||||
|
|
||||||
// Random gauge field
|
// Random gauge field
|
||||||
LatticeGaugeField Umu(UGrid);
|
LatticeGaugeField Umu(UGrid);
|
||||||
@ -90,7 +93,7 @@ int main(int argc, char** argv)
|
|||||||
ConjugateGradient<FermionField> CG(1.0e-12, 5000);
|
ConjugateGradient<FermionField> CG(1.0e-12, 5000);
|
||||||
ExactOneFlavourRatioPseudoFermionAction<FermionImplPolicy> Meofa(Lop, Rop, CG, Params, false);
|
ExactOneFlavourRatioPseudoFermionAction<FermionImplPolicy> Meofa(Lop, Rop, CG, Params, false);
|
||||||
|
|
||||||
Meofa.refresh(Umu, RNG5);
|
Meofa.refresh(Umu,sRNG, RNG5);
|
||||||
printf("<Phi|Meofa|Phi> = %1.15e\n", Meofa.S(Umu));
|
printf("<Phi|Meofa|Phi> = %1.15e\n", Meofa.S(Umu));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -100,7 +103,7 @@ int main(int argc, char** argv)
|
|||||||
ConjugateGradient<FermionField> CG(1.0e-12, 5000);
|
ConjugateGradient<FermionField> CG(1.0e-12, 5000);
|
||||||
ExactOneFlavourRatioPseudoFermionAction<FermionImplPolicy> Meofa(Lop, Rop, CG, Params, true);
|
ExactOneFlavourRatioPseudoFermionAction<FermionImplPolicy> Meofa(Lop, Rop, CG, Params, true);
|
||||||
|
|
||||||
Meofa.refresh(Umu, RNG5);
|
Meofa.refresh(Umu,sRNG, RNG5);
|
||||||
printf("<Phi|Meofa|Phi> = %1.15e\n", Meofa.S(Umu));
|
printf("<Phi|Meofa|Phi> = %1.15e\n", Meofa.S(Umu));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -68,8 +68,10 @@ int main(int argc, char** argv)
|
|||||||
// Set up RNGs
|
// Set up RNGs
|
||||||
std::vector<int> seeds4({1, 2, 3, 4});
|
std::vector<int> seeds4({1, 2, 3, 4});
|
||||||
std::vector<int> seeds5({5, 6, 7, 8});
|
std::vector<int> seeds5({5, 6, 7, 8});
|
||||||
|
GridSerialRNG sRNG;
|
||||||
GridParallelRNG RNG5(FGrid);
|
GridParallelRNG RNG5(FGrid);
|
||||||
RNG5.SeedFixedIntegers(seeds5);
|
RNG5.SeedFixedIntegers(seeds5);
|
||||||
|
sRNG.SeedFixedIntegers(seeds5);
|
||||||
GridParallelRNG RNG4(UGrid);
|
GridParallelRNG RNG4(UGrid);
|
||||||
RNG4.SeedFixedIntegers(seeds4);
|
RNG4.SeedFixedIntegers(seeds4);
|
||||||
|
|
||||||
@ -86,7 +88,7 @@ int main(int argc, char** argv)
|
|||||||
ConjugateGradient<LatticeFermion> CG(1.0e-12, 5000);
|
ConjugateGradient<LatticeFermion> CG(1.0e-12, 5000);
|
||||||
ExactOneFlavourRatioPseudoFermionAction<WilsonImplR> Meofa(Lop, Rop, CG, Params, false);
|
ExactOneFlavourRatioPseudoFermionAction<WilsonImplR> Meofa(Lop, Rop, CG, Params, false);
|
||||||
|
|
||||||
Meofa.refresh(Umu, RNG5);
|
Meofa.refresh(Umu, sRNG,RNG5);
|
||||||
printf("<Phi|Meofa|Phi> = %1.15e\n", Meofa.S(Umu));
|
printf("<Phi|Meofa|Phi> = %1.15e\n", Meofa.S(Umu));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -96,7 +98,7 @@ int main(int argc, char** argv)
|
|||||||
ConjugateGradient<LatticeFermion> CG(1.0e-12, 5000);
|
ConjugateGradient<LatticeFermion> CG(1.0e-12, 5000);
|
||||||
ExactOneFlavourRatioPseudoFermionAction<WilsonImplR> Meofa(Lop, Rop, CG, Params, true);
|
ExactOneFlavourRatioPseudoFermionAction<WilsonImplR> Meofa(Lop, Rop, CG, Params, true);
|
||||||
|
|
||||||
Meofa.refresh(Umu, RNG5);
|
Meofa.refresh(Umu, sRNG,RNG5);
|
||||||
printf("<Phi|Meofa|Phi> = %1.15e\n", Meofa.S(Umu));
|
printf("<Phi|Meofa|Phi> = %1.15e\n", Meofa.S(Umu));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -73,7 +73,9 @@ int main(int argc, char** argv)
|
|||||||
std::vector<int> seeds4({1, 2, 3, 4});
|
std::vector<int> seeds4({1, 2, 3, 4});
|
||||||
std::vector<int> seeds5({5, 6, 7, 8});
|
std::vector<int> seeds5({5, 6, 7, 8});
|
||||||
GridParallelRNG RNG5(FGrid);
|
GridParallelRNG RNG5(FGrid);
|
||||||
|
GridSerialRNG sRNG;
|
||||||
RNG5.SeedFixedIntegers(seeds5);
|
RNG5.SeedFixedIntegers(seeds5);
|
||||||
|
sRNG.SeedFixedIntegers(seeds5);
|
||||||
GridParallelRNG RNG4(UGrid);
|
GridParallelRNG RNG4(UGrid);
|
||||||
RNG4.SeedFixedIntegers(seeds4);
|
RNG4.SeedFixedIntegers(seeds4);
|
||||||
|
|
||||||
@ -91,7 +93,7 @@ int main(int argc, char** argv)
|
|||||||
ConjugateGradient<FermionField> CG(1.0e-12, 5000);
|
ConjugateGradient<FermionField> CG(1.0e-12, 5000);
|
||||||
ExactOneFlavourRatioPseudoFermionAction<FermionImplPolicy> Meofa(Lop, Rop, CG, Params, false);
|
ExactOneFlavourRatioPseudoFermionAction<FermionImplPolicy> Meofa(Lop, Rop, CG, Params, false);
|
||||||
|
|
||||||
Meofa.refresh(Umu, RNG5);
|
Meofa.refresh(Umu, sRNG, RNG5);
|
||||||
printf("<Phi|Meofa|Phi> = %1.15e\n", Meofa.S(Umu));
|
printf("<Phi|Meofa|Phi> = %1.15e\n", Meofa.S(Umu));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -101,7 +103,7 @@ int main(int argc, char** argv)
|
|||||||
ConjugateGradient<FermionField> CG(1.0e-12, 5000);
|
ConjugateGradient<FermionField> CG(1.0e-12, 5000);
|
||||||
ExactOneFlavourRatioPseudoFermionAction<FermionImplPolicy> Meofa(Lop, Rop, CG, Params, true);
|
ExactOneFlavourRatioPseudoFermionAction<FermionImplPolicy> Meofa(Lop, Rop, CG, Params, true);
|
||||||
|
|
||||||
Meofa.refresh(Umu, RNG5);
|
Meofa.refresh(Umu, sRNG, RNG5);
|
||||||
printf("<Phi|Meofa|Phi> = %1.15e\n", Meofa.S(Umu));
|
printf("<Phi|Meofa|Phi> = %1.15e\n", Meofa.S(Umu));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,7 +61,9 @@ int main (int argc, char ** argv)
|
|||||||
std::vector<int> seeds({1,2,3,4});
|
std::vector<int> seeds({1,2,3,4});
|
||||||
|
|
||||||
GridParallelRNG pRNG(&Grid);
|
GridParallelRNG pRNG(&Grid);
|
||||||
|
GridSerialRNG sRNG;
|
||||||
pRNG.SeedFixedIntegers(seeds);
|
pRNG.SeedFixedIntegers(seeds);
|
||||||
|
sRNG.SeedFixedIntegers(seeds);
|
||||||
|
|
||||||
typedef PeriodicGimplR Gimpl;
|
typedef PeriodicGimplR Gimpl;
|
||||||
typedef WilsonGaugeAction<Gimpl> GaugeAction;
|
typedef WilsonGaugeAction<Gimpl> GaugeAction;
|
||||||
@ -115,7 +117,7 @@ int main (int argc, char ** argv)
|
|||||||
|
|
||||||
integrator.setMomentumFilter(filter);
|
integrator.setMomentumFilter(filter);
|
||||||
|
|
||||||
integrator.refresh(U, pRNG); //doesn't actually change the gauge field
|
integrator.refresh(U, sRNG, pRNG); //doesn't actually change the gauge field
|
||||||
|
|
||||||
//Check the momentum is zero on the boundary
|
//Check the momentum is zero on the boundary
|
||||||
const auto &P = integrator.getMomentum();
|
const auto &P = integrator.getMomentum();
|
||||||
|
Loading…
Reference in New Issue
Block a user