mirror of
				https://github.com/paboyle/Grid.git
				synced 2025-11-04 14:04:32 +00:00 
			
		
		
		
	Tests compile
This commit is contained in:
		@@ -66,7 +66,9 @@ int main(int argc, char** argv)
 | 
			
		||||
  // Set up RNGs
 | 
			
		||||
  std::vector<int> seeds4({1, 2, 3, 4});
 | 
			
		||||
  std::vector<int> seeds5({5, 6, 7, 8});
 | 
			
		||||
  GridSerialRNG sRNG;
 | 
			
		||||
  GridParallelRNG RNG5(FGrid);
 | 
			
		||||
  sRNG.SeedFixedIntegers(seeds5);
 | 
			
		||||
  RNG5.SeedFixedIntegers(seeds5);
 | 
			
		||||
  GridParallelRNG RNG4(UGrid);
 | 
			
		||||
  RNG4.SeedFixedIntegers(seeds4);
 | 
			
		||||
@@ -84,7 +86,7 @@ int main(int argc, char** argv)
 | 
			
		||||
    ConjugateGradient<LatticeFermion> CG(1.0e-12, 5000);
 | 
			
		||||
    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));
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
@@ -94,7 +96,7 @@ int main(int argc, char** argv)
 | 
			
		||||
    ConjugateGradient<LatticeFermion> CG(1.0e-12, 5000);
 | 
			
		||||
    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));
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -74,6 +74,9 @@ int main(int argc, char** argv)
 | 
			
		||||
  RNG5.SeedFixedIntegers(seeds5);
 | 
			
		||||
  GridParallelRNG RNG4(UGrid);
 | 
			
		||||
  RNG4.SeedFixedIntegers(seeds4);
 | 
			
		||||
  GridSerialRNG sRNG;
 | 
			
		||||
  RNG4.SeedFixedIntegers(seeds4);
 | 
			
		||||
  sRNG.SeedFixedIntegers(seeds5);
 | 
			
		||||
 | 
			
		||||
  // Random gauge field
 | 
			
		||||
  LatticeGaugeField Umu(UGrid);
 | 
			
		||||
@@ -90,7 +93,7 @@ int main(int argc, char** argv)
 | 
			
		||||
    ConjugateGradient<FermionField> CG(1.0e-12, 5000);
 | 
			
		||||
    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));
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
@@ -100,7 +103,7 @@ int main(int argc, char** argv)
 | 
			
		||||
    ConjugateGradient<FermionField> CG(1.0e-12, 5000);
 | 
			
		||||
    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));
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -68,8 +68,10 @@ int main(int argc, char** argv)
 | 
			
		||||
  // Set up RNGs
 | 
			
		||||
  std::vector<int> seeds4({1, 2, 3, 4});
 | 
			
		||||
  std::vector<int> seeds5({5, 6, 7, 8});
 | 
			
		||||
  GridSerialRNG sRNG;
 | 
			
		||||
  GridParallelRNG RNG5(FGrid);
 | 
			
		||||
  RNG5.SeedFixedIntegers(seeds5);
 | 
			
		||||
  sRNG.SeedFixedIntegers(seeds5);
 | 
			
		||||
  GridParallelRNG RNG4(UGrid);
 | 
			
		||||
  RNG4.SeedFixedIntegers(seeds4);
 | 
			
		||||
 | 
			
		||||
@@ -86,7 +88,7 @@ int main(int argc, char** argv)
 | 
			
		||||
    ConjugateGradient<LatticeFermion> CG(1.0e-12, 5000);
 | 
			
		||||
    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));
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
@@ -96,7 +98,7 @@ int main(int argc, char** argv)
 | 
			
		||||
    ConjugateGradient<LatticeFermion> CG(1.0e-12, 5000);
 | 
			
		||||
    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));
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -73,7 +73,9 @@ int main(int argc, char** argv)
 | 
			
		||||
  std::vector<int> seeds4({1, 2, 3, 4});
 | 
			
		||||
  std::vector<int> seeds5({5, 6, 7, 8});
 | 
			
		||||
  GridParallelRNG RNG5(FGrid);
 | 
			
		||||
  GridSerialRNG   sRNG;
 | 
			
		||||
  RNG5.SeedFixedIntegers(seeds5);
 | 
			
		||||
  sRNG.SeedFixedIntegers(seeds5);
 | 
			
		||||
  GridParallelRNG RNG4(UGrid);
 | 
			
		||||
  RNG4.SeedFixedIntegers(seeds4);
 | 
			
		||||
 | 
			
		||||
@@ -91,7 +93,7 @@ int main(int argc, char** argv)
 | 
			
		||||
    ConjugateGradient<FermionField> CG(1.0e-12, 5000);
 | 
			
		||||
    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));
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
@@ -101,7 +103,7 @@ int main(int argc, char** argv)
 | 
			
		||||
    ConjugateGradient<FermionField> CG(1.0e-12, 5000);
 | 
			
		||||
    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));
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user