mirror of
https://github.com/paboyle/Grid.git
synced 2025-06-19 16:27:05 +01:00
Make all tests compile
This commit is contained in:
@ -30,7 +30,7 @@
|
||||
|
||||
using namespace Grid;
|
||||
|
||||
|
||||
#ifdef ENABLE_GPARITY
|
||||
|
||||
template<typename FermionField2f, typename FermionField1f>
|
||||
void copy2fTo1fFermionField(FermionField1f &out, const FermionField2f &in, int gpdir){
|
||||
@ -255,3 +255,6 @@ int main(int argc, char **argv) {
|
||||
} // main
|
||||
|
||||
|
||||
#else
|
||||
int main(int argc, char **argv){};
|
||||
#endif
|
||||
|
@ -30,6 +30,7 @@ Author: paboyle <paboyle@ph.ed.ac.uk>
|
||||
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
#ifdef ENABLE_GPARITY
|
||||
using namespace Grid;
|
||||
;
|
||||
|
||||
@ -139,7 +140,7 @@ int main(int argc, char **argv) {
|
||||
Grid_finalize();
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
} // main
|
||||
|
||||
|
@ -55,13 +55,13 @@ namespace Grid{
|
||||
|
||||
};
|
||||
|
||||
struct SmearingParameters: Serializable {
|
||||
GRID_SERIALIZABLE_CLASS_MEMBERS(SmearingParameters,
|
||||
struct HmcSmearingParameters: Serializable {
|
||||
GRID_SERIALIZABLE_CLASS_MEMBERS(HmcSmearingParameters,
|
||||
double, rho,
|
||||
Integer, Nsmear)
|
||||
|
||||
template <class ReaderClass >
|
||||
SmearingParameters(Reader<ReaderClass>& Reader){
|
||||
HmcSmearingParameters(Reader<ReaderClass>& Reader){
|
||||
read(Reader, "StoutSmearing", *this);
|
||||
}
|
||||
|
||||
@ -213,7 +213,7 @@ int main(int argc, char **argv) {
|
||||
// Reset performance counters
|
||||
|
||||
if (ApplySmearing){
|
||||
SmearingParameters SmPar(Reader);
|
||||
HmcSmearingParameters SmPar(Reader);
|
||||
//double rho = 0.1; // smearing parameter
|
||||
//int Nsmear = 3; // number of smearing levels
|
||||
Smear_Stout<HMCWrapper::ImplPolicy> Stout(SmPar.rho);
|
||||
|
Reference in New Issue
Block a user