From 21304e21398e74f3d2c556bfe583e53b99be9279 Mon Sep 17 00:00:00 2001 From: Antonin Portelli Date: Thu, 18 Oct 2018 19:58:50 +0100 Subject: [PATCH] Hadrons: fix to allow single-prec build again --- Hadrons/Modules/MAction/DWF.cc | 2 ++ Hadrons/Modules/MAction/DWF.hpp | 2 ++ Hadrons/Modules/MAction/MobiusDWF.cc | 2 ++ Hadrons/Modules/MAction/MobiusDWF.hpp | 2 ++ Hadrons/Modules/MAction/ScaledDWF.cc | 2 ++ Hadrons/Modules/MAction/ScaledDWF.hpp | 2 ++ Hadrons/Modules/MAction/Wilson.cc | 2 ++ Hadrons/Modules/MAction/Wilson.hpp | 2 ++ Hadrons/Modules/MAction/WilsonClover.cc | 2 ++ Hadrons/Modules/MAction/WilsonClover.hpp | 2 ++ Hadrons/Modules/MAction/ZMobiusDWF.cc | 2 ++ Hadrons/Modules/MAction/ZMobiusDWF.hpp | 2 ++ 12 files changed, 24 insertions(+) diff --git a/Hadrons/Modules/MAction/DWF.cc b/Hadrons/Modules/MAction/DWF.cc index 6cda84ac..38d25cb9 100644 --- a/Hadrons/Modules/MAction/DWF.cc +++ b/Hadrons/Modules/MAction/DWF.cc @@ -32,4 +32,6 @@ using namespace Hadrons; using namespace MAction; template class Grid::Hadrons::MAction::TDWF; +#ifdef GRID_DEFAULT_PRECISION_DOUBLE template class Grid::Hadrons::MAction::TDWF; +#endif diff --git a/Hadrons/Modules/MAction/DWF.hpp b/Hadrons/Modules/MAction/DWF.hpp index 67cfeb1b..257782a1 100644 --- a/Hadrons/Modules/MAction/DWF.hpp +++ b/Hadrons/Modules/MAction/DWF.hpp @@ -73,7 +73,9 @@ protected: }; MODULE_REGISTER_TMP(DWF, TDWF, MAction); +#ifdef GRID_DEFAULT_PRECISION_DOUBLE MODULE_REGISTER_TMP(DWFF, TDWF, MAction); +#endif /****************************************************************************** * DWF template implementation * diff --git a/Hadrons/Modules/MAction/MobiusDWF.cc b/Hadrons/Modules/MAction/MobiusDWF.cc index 41683920..879452d8 100644 --- a/Hadrons/Modules/MAction/MobiusDWF.cc +++ b/Hadrons/Modules/MAction/MobiusDWF.cc @@ -32,4 +32,6 @@ using namespace Hadrons; using namespace MAction; template class Grid::Hadrons::MAction::TMobiusDWF; +#ifdef GRID_DEFAULT_PRECISION_DOUBLE template class Grid::Hadrons::MAction::TMobiusDWF; +#endif diff --git a/Hadrons/Modules/MAction/MobiusDWF.hpp b/Hadrons/Modules/MAction/MobiusDWF.hpp index 22964c9a..01223267 100644 --- a/Hadrons/Modules/MAction/MobiusDWF.hpp +++ b/Hadrons/Modules/MAction/MobiusDWF.hpp @@ -72,7 +72,9 @@ public: }; MODULE_REGISTER_TMP(MobiusDWF, TMobiusDWF, MAction); +#ifdef GRID_DEFAULT_PRECISION_DOUBLE MODULE_REGISTER_TMP(MobiusDWFF, TMobiusDWF, MAction); +#endif /****************************************************************************** * TMobiusDWF implementation * diff --git a/Hadrons/Modules/MAction/ScaledDWF.cc b/Hadrons/Modules/MAction/ScaledDWF.cc index 70eafac5..7008bf5d 100644 --- a/Hadrons/Modules/MAction/ScaledDWF.cc +++ b/Hadrons/Modules/MAction/ScaledDWF.cc @@ -32,4 +32,6 @@ using namespace Hadrons; using namespace MAction; template class Grid::Hadrons::MAction::TScaledDWF; +#ifdef GRID_DEFAULT_PRECISION_DOUBLE template class Grid::Hadrons::MAction::TScaledDWF; +#endif diff --git a/Hadrons/Modules/MAction/ScaledDWF.hpp b/Hadrons/Modules/MAction/ScaledDWF.hpp index c890f0e9..f7a09eef 100644 --- a/Hadrons/Modules/MAction/ScaledDWF.hpp +++ b/Hadrons/Modules/MAction/ScaledDWF.hpp @@ -71,7 +71,9 @@ public: }; MODULE_REGISTER_TMP(ScaledDWF, TScaledDWF, MAction); +#ifdef GRID_DEFAULT_PRECISION_DOUBLE MODULE_REGISTER_TMP(ScaledDWFF, TScaledDWF, MAction); +#endif /****************************************************************************** * TScaledDWF implementation * diff --git a/Hadrons/Modules/MAction/Wilson.cc b/Hadrons/Modules/MAction/Wilson.cc index 4ce3e7ef..1e801ed6 100644 --- a/Hadrons/Modules/MAction/Wilson.cc +++ b/Hadrons/Modules/MAction/Wilson.cc @@ -32,4 +32,6 @@ using namespace Hadrons; using namespace MAction; template class Grid::Hadrons::MAction::TWilson; +#ifdef GRID_DEFAULT_PRECISION_DOUBLE template class Grid::Hadrons::MAction::TWilson; +#endif diff --git a/Hadrons/Modules/MAction/Wilson.hpp b/Hadrons/Modules/MAction/Wilson.hpp index a9327c2f..093449e6 100644 --- a/Hadrons/Modules/MAction/Wilson.hpp +++ b/Hadrons/Modules/MAction/Wilson.hpp @@ -71,7 +71,9 @@ protected: }; MODULE_REGISTER_TMP(Wilson, TWilson, MAction); +#ifdef GRID_DEFAULT_PRECISION_DOUBLE MODULE_REGISTER_TMP(WilsonF, TWilson, MAction); +#endif /****************************************************************************** * TWilson template implementation * diff --git a/Hadrons/Modules/MAction/WilsonClover.cc b/Hadrons/Modules/MAction/WilsonClover.cc index 2c5c0e66..eed1582c 100644 --- a/Hadrons/Modules/MAction/WilsonClover.cc +++ b/Hadrons/Modules/MAction/WilsonClover.cc @@ -32,4 +32,6 @@ using namespace Hadrons; using namespace MAction; template class Grid::Hadrons::MAction::TWilsonClover; +#ifdef GRID_DEFAULT_PRECISION_DOUBLE template class Grid::Hadrons::MAction::TWilsonClover; +#endif diff --git a/Hadrons/Modules/MAction/WilsonClover.hpp b/Hadrons/Modules/MAction/WilsonClover.hpp index 349abe84..0b78bb55 100644 --- a/Hadrons/Modules/MAction/WilsonClover.hpp +++ b/Hadrons/Modules/MAction/WilsonClover.hpp @@ -75,7 +75,9 @@ public: }; MODULE_REGISTER_TMP(WilsonClover, TWilsonClover, MAction); +#ifdef GRID_DEFAULT_PRECISION_DOUBLE MODULE_REGISTER_TMP(WilsonCloverF, TWilsonClover, MAction); +#endif /****************************************************************************** * TWilsonClover template implementation * diff --git a/Hadrons/Modules/MAction/ZMobiusDWF.cc b/Hadrons/Modules/MAction/ZMobiusDWF.cc index ef8e4799..609b76cc 100644 --- a/Hadrons/Modules/MAction/ZMobiusDWF.cc +++ b/Hadrons/Modules/MAction/ZMobiusDWF.cc @@ -32,4 +32,6 @@ using namespace Hadrons; using namespace MAction; template class Grid::Hadrons::MAction::TZMobiusDWF; +#ifdef GRID_DEFAULT_PRECISION_DOUBLE template class Grid::Hadrons::MAction::TZMobiusDWF; +#endif diff --git a/Hadrons/Modules/MAction/ZMobiusDWF.hpp b/Hadrons/Modules/MAction/ZMobiusDWF.hpp index f7959127..40b04d7f 100644 --- a/Hadrons/Modules/MAction/ZMobiusDWF.hpp +++ b/Hadrons/Modules/MAction/ZMobiusDWF.hpp @@ -73,7 +73,9 @@ public: }; MODULE_REGISTER_TMP(ZMobiusDWF, TZMobiusDWF, MAction); +#ifdef GRID_DEFAULT_PRECISION_DOUBLE MODULE_REGISTER_TMP(ZMobiusDWFF, TZMobiusDWF, MAction); +#endif /****************************************************************************** * TZMobiusDWF implementation *