2017-01-26 15:24:49 +00:00
|
|
|
/*************************************************************************************
|
|
|
|
|
|
|
|
Grid physics library, www.github.com/paboyle/Grid
|
|
|
|
|
|
|
|
Source file: ./lib/qcd/modules/Registration.h
|
|
|
|
|
|
|
|
Copyright (C) 2016
|
|
|
|
|
|
|
|
Author: Guido Cossu <guido.cossu@ed.ac.uk>
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License along
|
|
|
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
|
|
|
|
See the full license in the file "LICENSE" in the top level distribution
|
|
|
|
directory
|
|
|
|
*************************************************************************************/
|
2018-01-14 22:20:42 +00:00
|
|
|
/* END LEGAL */
|
2017-01-26 15:24:49 +00:00
|
|
|
|
|
|
|
#ifndef MODULES_REGISTRATION_H
|
|
|
|
#define MODULES_REGISTRATION_H
|
|
|
|
|
2018-01-14 22:20:42 +00:00
|
|
|
// simplify with macros
|
2017-01-30 14:22:41 +00:00
|
|
|
|
2018-01-14 22:20:42 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Actions
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
typedef WilsonGModule<ImplementationPolicy> WilsonGMod;
|
|
|
|
typedef SymanzikGModule<ImplementationPolicy> SymanzikGMod;
|
|
|
|
typedef IwasakiGModule<ImplementationPolicy> IwasakiGMod;
|
|
|
|
typedef DBW2GModule<ImplementationPolicy> DBW2GMod;
|
|
|
|
typedef RBCGModule<ImplementationPolicy> RBCGMod;
|
|
|
|
typedef PlaqPlusRectangleGModule<ImplementationPolicy> PlaqPlusRectangleGMod;
|
2017-01-27 11:23:51 +00:00
|
|
|
|
2018-01-14 22:20:42 +00:00
|
|
|
static Registrar<WilsonGMod, HMC_ActionModuleFactory<gauge_string, typename ImplementationPolicy::Field, Serialiser> > __WGmodXMLInit("Wilson");
|
|
|
|
static Registrar<SymanzikGMod, HMC_ActionModuleFactory<gauge_string, typename ImplementationPolicy::Field, Serialiser> > __SymGmodXMLInit("Symanzik");
|
|
|
|
static Registrar<IwasakiGMod, HMC_ActionModuleFactory<gauge_string, typename ImplementationPolicy::Field, Serialiser> > __IwGmodXMLInit("Iwasaki");
|
|
|
|
static Registrar<DBW2GMod, HMC_ActionModuleFactory<gauge_string, typename ImplementationPolicy::Field, Serialiser> > __DBW2GmodXMLInit("DBW2");
|
|
|
|
static Registrar<RBCGMod, HMC_ActionModuleFactory<gauge_string, typename ImplementationPolicy::Field, Serialiser> > __RBCGmodXMLInit("RBC");
|
|
|
|
static Registrar<PlaqPlusRectangleGMod, HMC_ActionModuleFactory<gauge_string, typename ImplementationPolicy::Field, Serialiser> > __PPRectGmodXMLInit("PlaqPlusRect");
|
2017-01-26 15:24:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
// FIXME more general implementation
|
2018-01-14 22:20:42 +00:00
|
|
|
static Registrar<TwoFlavourFModule<FermionImplementationPolicy> ,
|
|
|
|
HMC_ActionModuleFactory<gauge_string, typename ImplementationPolicy::Field, Serialiser> > __TwoFlavourFmodXMLInit("TwoFlavours");
|
|
|
|
static Registrar<TwoFlavourRatioFModule<FermionImplementationPolicy> ,
|
|
|
|
HMC_ActionModuleFactory<gauge_string, typename ImplementationPolicy::Field, Serialiser> > __TwoFlavourRatioFmodXMLInit("TwoFlavoursRatio");
|
|
|
|
static Registrar<TwoFlavourEOFModule<FermionImplementationPolicy> ,
|
|
|
|
HMC_ActionModuleFactory<gauge_string, typename ImplementationPolicy::Field, Serialiser> > __TwoFlavourEOFmodXMLInit("TwoFlavoursEvenOdd");
|
|
|
|
static Registrar<TwoFlavourRatioEOFModule<FermionImplementationPolicy>,
|
|
|
|
HMC_ActionModuleFactory<gauge_string, typename ImplementationPolicy::Field, Serialiser> > __TwoFlavourRatioEOFmodXMLInit("TwoFlavoursEvenOddRatio");
|
|
|
|
static Registrar<OneFlavourFModule<FermionImplementationPolicy> ,
|
|
|
|
HMC_ActionModuleFactory<gauge_string, typename ImplementationPolicy::Field, Serialiser> > __OneFlavourFmodXMLInit("OneFlavour");
|
|
|
|
static Registrar<OneFlavourEOFModule<FermionImplementationPolicy> ,
|
|
|
|
HMC_ActionModuleFactory<gauge_string, typename ImplementationPolicy::Field, Serialiser> > __OneFlavourEOFmodXMLInit("OneFlavourEvenOdd");
|
|
|
|
static Registrar<OneFlavourRatioFModule<FermionImplementationPolicy> ,
|
|
|
|
HMC_ActionModuleFactory<gauge_string, typename ImplementationPolicy::Field, Serialiser> > __OneFlavourRatioFmodXMLInit("OneFlavourRatio");
|
|
|
|
static Registrar<OneFlavourRatioEOFModule<FermionImplementationPolicy>,
|
|
|
|
HMC_ActionModuleFactory<gauge_string, typename ImplementationPolicy::Field, Serialiser> > __OneFlavourRatioEOFmodXMLInit("OneFlavourEvenOddRatio");
|
2017-01-26 15:24:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Solvers
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
|
|
// Now a specific registration with a fermion field
|
|
|
|
// here must instantiate CG and CR for every new fermion field type (macro!!)
|
|
|
|
|
2018-01-14 22:20:42 +00:00
|
|
|
static Registrar< ConjugateGradientModule<WilsonFermionR::FermionField>,
|
|
|
|
HMC_SolverModuleFactory<solver_string, WilsonFermionR::FermionField, Serialiser> > __CGWFmodXMLInit("ConjugateGradient");
|
|
|
|
static Registrar< ConjugateResidualModule<WilsonFermionR::FermionField>,
|
|
|
|
HMC_SolverModuleFactory<solver_string, WilsonFermionR::FermionField, Serialiser> > __CRWFmodXMLInit("ConjugateResidual");
|
2017-01-26 15:24:49 +00:00
|
|
|
|
2017-01-27 11:54:44 +00:00
|
|
|
// add the staggered, scalar versions here
|
|
|
|
|
2017-01-26 15:24:49 +00:00
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Fermion operators
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2018-01-14 22:20:42 +00:00
|
|
|
static Registrar< WilsonFermionModule<FermionImplementationPolicy>,
|
2017-01-26 15:24:49 +00:00
|
|
|
HMC_FermionOperatorModuleFactory<fermionop_string, FermionImplementationPolicy, Serialiser> > __WilsonFOPmodXMLInit("Wilson");
|
2018-01-14 22:20:42 +00:00
|
|
|
static Registrar< MobiusFermionModule<FermionImplementationPolicy>,
|
2017-01-26 15:24:49 +00:00
|
|
|
HMC_FermionOperatorModuleFactory<fermionop_string, FermionImplementationPolicy, Serialiser> > __MobiusFOPmodXMLInit("Mobius");
|
2018-01-14 22:20:42 +00:00
|
|
|
static Registrar< DomainWallFermionModule<FermionImplementationPolicy>,
|
2017-01-26 15:24:49 +00:00
|
|
|
HMC_FermionOperatorModuleFactory<fermionop_string, FermionImplementationPolicy, Serialiser> > __DWFOPmodXMLInit("DomainWall");
|
|
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Observables
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2018-01-14 22:20:42 +00:00
|
|
|
static Registrar<PlaquetteMod<ImplementationPolicy>, HMC_ObservablesModuleFactory<observable_string, typename ImplementationPolicy::Field, Serialiser> > __OBSPLmodXMLInit("Plaquette");
|
2017-01-26 15:24:49 +00:00
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Checkpointers
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2018-01-14 22:20:42 +00:00
|
|
|
static Registrar<BinaryCPModule<ImplementationPolicy>, HMC_CPModuleFactory<cp_string, ImplementationPolicy, Serialiser> > __CPBinarymodXMLInit("Binary");
|
|
|
|
static Registrar<NerscCPModule<ImplementationPolicy> , HMC_CPModuleFactory<cp_string, ImplementationPolicy, Serialiser> > __CPNerscmodXMLInit("Nersc");
|
2017-01-26 15:24:49 +00:00
|
|
|
|
|
|
|
#ifdef HAVE_LIME
|
2018-01-14 22:20:42 +00:00
|
|
|
static Registrar<ILDGCPModule<ImplementationPolicy> , HMC_CPModuleFactory<cp_string, ImplementationPolicy, Serialiser> > __CPILDGmodXMLInit("ILDG");
|
2017-01-26 15:24:49 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Integrators
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
static Registrar< HMCLeapFrog<ImplementationPolicy, RepresentationPolicy, Serialiser> , HMCRunnerModuleFactory<hmc_string, Serialiser> > __HMCLFmodXMLInit("LeapFrog");
|
|
|
|
static Registrar< HMCMinimumNorm2<ImplementationPolicy, RepresentationPolicy, Serialiser> , HMCRunnerModuleFactory<hmc_string, Serialiser> > __HMCMN2modXMLInit("MinimumNorm2");
|
|
|
|
static Registrar< HMCForceGradient<ImplementationPolicy, RepresentationPolicy, Serialiser> , HMCRunnerModuleFactory<hmc_string, Serialiser> > __HMCFGmodXMLInit("ForceGradient");
|
|
|
|
|
|
|
|
typedef HMCRunnerModuleFactory<hmc_string, Serialiser > HMCModuleFactory;
|
|
|
|
|
2018-01-14 22:20:42 +00:00
|
|
|
#endif
|