diff --git a/lib/qcd/modules/Registration.h b/lib/qcd/modules/Registration.h index d31ee22b..ebf8f420 100644 --- a/lib/qcd/modules/Registration.h +++ b/lib/qcd/modules/Registration.h @@ -25,48 +25,48 @@ with this program; if not, write to the Free Software Foundation, Inc., See the full license in the file "LICENSE" in the top level distribution directory *************************************************************************************/ -/* END LEGAL */ + /* END LEGAL */ #ifndef MODULES_REGISTRATION_H #define MODULES_REGISTRATION_H -// simplify with macros + // simplify with macros -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// Actions -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -typedef QCD::WilsonGModule WilsonGMod; -typedef QCD::SymanzikGModule SymanzikGMod; -typedef QCD::IwasakiGModule IwasakiGMod; -typedef QCD::DBW2GModule DBW2GMod; -typedef QCD::RBCGModule RBCGMod; -typedef QCD::PlaqPlusRectangleGModule PlaqPlusRectangleGMod; + /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + // Actions + /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +typedef WilsonGModule WilsonGMod; +typedef SymanzikGModule SymanzikGMod; +typedef IwasakiGModule IwasakiGMod; +typedef DBW2GModule DBW2GMod; +typedef RBCGModule RBCGMod; +typedef PlaqPlusRectangleGModule PlaqPlusRectangleGMod; -static Registrar > __WGmodXMLInit("Wilson"); -static Registrar > __SymGmodXMLInit("Symanzik"); -static Registrar > __IwGmodXMLInit("Iwasaki"); -static Registrar > __DBW2GmodXMLInit("DBW2"); -static Registrar > __RBCGmodXMLInit("RBC"); -static Registrar > __PPRectGmodXMLInit("PlaqPlusRect"); +static Registrar > __WGmodXMLInit("Wilson"); +static Registrar > __SymGmodXMLInit("Symanzik"); +static Registrar > __IwGmodXMLInit("Iwasaki"); +static Registrar > __DBW2GmodXMLInit("DBW2"); +static Registrar > __RBCGmodXMLInit("RBC"); +static Registrar > __PPRectGmodXMLInit("PlaqPlusRect"); // FIXME more general implementation -static Registrar , - HMC_ActionModuleFactory > __TwoFlavourFmodXMLInit("TwoFlavours"); -static Registrar , - HMC_ActionModuleFactory > __TwoFlavourRatioFmodXMLInit("TwoFlavoursRatio"); -static Registrar , - HMC_ActionModuleFactory > __TwoFlavourEOFmodXMLInit("TwoFlavoursEvenOdd"); -static Registrar, - HMC_ActionModuleFactory > __TwoFlavourRatioEOFmodXMLInit("TwoFlavoursEvenOddRatio"); -static Registrar , - HMC_ActionModuleFactory > __OneFlavourFmodXMLInit("OneFlavour"); -static Registrar , - HMC_ActionModuleFactory > __OneFlavourEOFmodXMLInit("OneFlavourEvenOdd"); -static Registrar , - HMC_ActionModuleFactory > __OneFlavourRatioFmodXMLInit("OneFlavourRatio"); -static Registrar, - HMC_ActionModuleFactory > __OneFlavourRatioEOFmodXMLInit("OneFlavourEvenOddRatio"); +static Registrar , + HMC_ActionModuleFactory > __TwoFlavourFmodXMLInit("TwoFlavours"); +static Registrar , + HMC_ActionModuleFactory > __TwoFlavourRatioFmodXMLInit("TwoFlavoursRatio"); +static Registrar , + HMC_ActionModuleFactory > __TwoFlavourEOFmodXMLInit("TwoFlavoursEvenOdd"); +static Registrar, + HMC_ActionModuleFactory > __TwoFlavourRatioEOFmodXMLInit("TwoFlavoursEvenOddRatio"); +static Registrar , + HMC_ActionModuleFactory > __OneFlavourFmodXMLInit("OneFlavour"); +static Registrar , + HMC_ActionModuleFactory > __OneFlavourEOFmodXMLInit("OneFlavourEvenOdd"); +static Registrar , + HMC_ActionModuleFactory > __OneFlavourRatioFmodXMLInit("OneFlavourRatio"); +static Registrar, + HMC_ActionModuleFactory > __OneFlavourRatioEOFmodXMLInit("OneFlavourEvenOddRatio"); @@ -78,10 +78,10 @@ static Registrar, // Now a specific registration with a fermion field // here must instantiate CG and CR for every new fermion field type (macro!!) -static Registrar< ConjugateGradientModule, - HMC_SolverModuleFactory > __CGWFmodXMLInit("ConjugateGradient"); -static Registrar< ConjugateResidualModule, - HMC_SolverModuleFactory > __CRWFmodXMLInit("ConjugateResidual"); +static Registrar< ConjugateGradientModule, + HMC_SolverModuleFactory > __CGWFmodXMLInit("ConjugateGradient"); +static Registrar< ConjugateResidualModule, + HMC_SolverModuleFactory > __CRWFmodXMLInit("ConjugateResidual"); // add the staggered, scalar versions here @@ -90,11 +90,11 @@ static Registrar< ConjugateResidualModule, // Fermion operators /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -static Registrar< QCD::WilsonFermionModule, +static Registrar< WilsonFermionModule, HMC_FermionOperatorModuleFactory > __WilsonFOPmodXMLInit("Wilson"); -static Registrar< QCD::MobiusFermionModule, +static Registrar< MobiusFermionModule, HMC_FermionOperatorModuleFactory > __MobiusFOPmodXMLInit("Mobius"); -static Registrar< QCD::DomainWallFermionModule, +static Registrar< DomainWallFermionModule, HMC_FermionOperatorModuleFactory > __DWFOPmodXMLInit("DomainWall"); @@ -102,21 +102,19 @@ static Registrar< QCD::DomainWallFermionModule, // Observables /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -static Registrar, HMC_ObservablesModuleFactory > __OBSPLmodXMLInit("Plaquette"); +static Registrar, HMC_ObservablesModuleFactory > __OBSPLmodXMLInit("Plaquette"); /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Checkpointers /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -static Registrar, HMC_CPModuleFactory > __CPBinarymodXMLInit("Binary"); -static Registrar , HMC_CPModuleFactory > __CPNerscmodXMLInit("Nersc"); +static Registrar, HMC_CPModuleFactory > __CPBinarymodXMLInit("Binary"); +static Registrar , HMC_CPModuleFactory > __CPNerscmodXMLInit("Nersc"); #ifdef HAVE_LIME -static Registrar , HMC_CPModuleFactory > __CPILDGmodXMLInit("ILDG"); +static Registrar , HMC_CPModuleFactory > __CPILDGmodXMLInit("ILDG"); #endif - - /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Integrators /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// @@ -126,4 +124,4 @@ static Registrar< HMCForceGradient HMCModuleFactory; -#endif \ No newline at end of file +#endif