2016-01-02 14:51:32 +00:00
|
|
|
/*************************************************************************************
|
|
|
|
|
|
|
|
Grid physics library, www.github.com/paboyle/Grid
|
|
|
|
|
|
|
|
Source file: ./lib/qcd/action/fermion/ScaledShamirFermion.h
|
|
|
|
|
|
|
|
Copyright (C) 2015
|
|
|
|
|
|
|
|
Author: Peter Boyle <pabobyle@ph.ed.ac.uk>
|
|
|
|
Author: Peter Boyle <paboyle@ph.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
|
|
|
|
*************************************************************************************/
|
|
|
|
/* END LEGAL */
|
2015-06-03 09:51:06 +01:00
|
|
|
#ifndef GRID_QCD_SCALED_SHAMIR_FERMION_H
|
|
|
|
#define GRID_QCD_SCALED_SHAMIR_FERMION_H
|
|
|
|
|
2016-07-07 22:31:07 +01:00
|
|
|
#include <Grid/Grid.h>
|
2015-06-03 09:51:06 +01:00
|
|
|
|
|
|
|
namespace Grid {
|
|
|
|
|
|
|
|
namespace QCD {
|
|
|
|
|
2015-08-10 20:47:44 +01:00
|
|
|
template<class Impl>
|
|
|
|
class ScaledShamirFermion : public MobiusFermion<Impl>
|
2015-06-03 09:51:06 +01:00
|
|
|
{
|
|
|
|
public:
|
2015-08-15 23:25:49 +01:00
|
|
|
INHERIT_IMPL_TYPES(Impl);
|
2015-06-03 09:51:06 +01:00
|
|
|
|
|
|
|
// Constructors
|
2015-08-10 20:47:44 +01:00
|
|
|
ScaledShamirFermion(GaugeField &_Umu,
|
2015-06-03 09:51:06 +01:00
|
|
|
GridCartesian &FiveDimGrid,
|
|
|
|
GridRedBlackCartesian &FiveDimRedBlackGrid,
|
|
|
|
GridCartesian &FourDimGrid,
|
|
|
|
GridRedBlackCartesian &FourDimRedBlackGrid,
|
|
|
|
RealD _mass,RealD _M5,
|
2016-01-25 21:03:02 +00:00
|
|
|
// RealD scale):
|
2015-12-14 17:15:06 +00:00
|
|
|
RealD scale,const ImplParams &p= ImplParams()) :
|
2015-06-03 09:51:06 +01:00
|
|
|
|
|
|
|
// b+c=scale, b-c = 1 <=> 2b = scale+1; 2c = scale-1
|
2015-08-10 20:47:44 +01:00
|
|
|
MobiusFermion<Impl>(_Umu,
|
2015-06-03 09:51:06 +01:00
|
|
|
FiveDimGrid,
|
|
|
|
FiveDimRedBlackGrid,
|
|
|
|
FourDimGrid,
|
2016-01-25 21:03:02 +00:00
|
|
|
FourDimRedBlackGrid,_mass,_M5,0.5*(scale+1.0),0.5*(scale-1.0),p)
|
|
|
|
// FourDimRedBlackGrid,_mass,_M5,0.5*(scale+1.0),0.5*(scale-1.0))
|
2015-06-03 09:51:06 +01:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|