2017-01-26 15:24:49 +00:00
|
|
|
/*************************************************************************************
|
2016-01-02 14:51:32 +00:00
|
|
|
|
2017-01-26 15:24:49 +00:00
|
|
|
Grid physics library, www.github.com/paboyle/Grid
|
2016-01-02 14:51:32 +00:00
|
|
|
|
2017-01-26 15:24:49 +00:00
|
|
|
Source file: ./lib/qcd/action/ActionParams.h
|
2016-01-02 14:51:32 +00:00
|
|
|
|
2017-01-26 15:24:49 +00:00
|
|
|
Copyright (C) 2015
|
2016-01-02 14:51:32 +00:00
|
|
|
|
|
|
|
Author: Peter Boyle <paboyle@ph.ed.ac.uk>
|
|
|
|
Author: paboyle <paboyle@ph.ed.ac.uk>
|
2017-01-26 15:24:49 +00:00
|
|
|
Author: Guido Cossu <guido.cossu@ed.ac.uk>
|
2016-01-02 14:51:32 +00:00
|
|
|
|
2017-01-26 15:24:49 +00:00
|
|
|
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.
|
2016-01-02 14:51:32 +00:00
|
|
|
|
2017-01-26 15:24:49 +00:00
|
|
|
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.
|
2016-01-02 14:51:32 +00:00
|
|
|
|
2017-01-26 15:24:49 +00:00
|
|
|
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 23:49:11 +00:00
|
|
|
/* END LEGAL */
|
2016-01-02 14:51:32 +00:00
|
|
|
|
2015-08-18 14:40:08 +01:00
|
|
|
#ifndef GRID_QCD_ACTION_PARAMS_H
|
|
|
|
#define GRID_QCD_ACTION_PARAMS_H
|
|
|
|
|
2018-01-14 23:49:11 +00:00
|
|
|
NAMESPACE_BEGIN(Grid);
|
2015-08-18 14:40:08 +01:00
|
|
|
|
2018-01-14 23:49:11 +00:00
|
|
|
// These can move into a params header and be given MacroMagic serialisation
|
|
|
|
struct GparityWilsonImplParams {
|
2018-03-19 11:10:12 +00:00
|
|
|
Coordinate twists;
|
2018-03-24 23:28:53 +00:00
|
|
|
GparityWilsonImplParams() : twists(Nd, 0) {};
|
2018-01-14 23:49:11 +00:00
|
|
|
};
|
2017-01-26 15:24:49 +00:00
|
|
|
|
2018-01-14 23:49:11 +00:00
|
|
|
struct WilsonImplParams {
|
|
|
|
std::vector<Complex> boundary_phases;
|
2018-03-24 23:28:53 +00:00
|
|
|
WilsonImplParams() {
|
2018-01-14 23:49:11 +00:00
|
|
|
boundary_phases.resize(Nd, 1.0);
|
2017-04-05 14:41:04 +01:00
|
|
|
};
|
2018-01-14 23:49:11 +00:00
|
|
|
WilsonImplParams(const std::vector<Complex> phi)
|
2018-03-24 23:28:53 +00:00
|
|
|
: boundary_phases(phi) {}
|
2018-01-14 23:49:11 +00:00
|
|
|
};
|
2017-04-05 14:41:04 +01:00
|
|
|
|
2018-01-14 23:49:11 +00:00
|
|
|
struct StaggeredImplParams {
|
|
|
|
StaggeredImplParams() {};
|
|
|
|
};
|
2017-01-26 15:24:49 +00:00
|
|
|
|
2018-01-14 23:49:11 +00:00
|
|
|
struct OneFlavourRationalParams : Serializable {
|
|
|
|
GRID_SERIALIZABLE_CLASS_MEMBERS(OneFlavourRationalParams,
|
|
|
|
RealD, lo,
|
|
|
|
RealD, hi,
|
|
|
|
int, MaxIter,
|
|
|
|
RealD, tolerance,
|
|
|
|
int, degree,
|
|
|
|
int, precision);
|
2017-04-05 14:41:04 +01:00
|
|
|
|
2018-01-14 23:49:11 +00:00
|
|
|
// MaxIter and tolerance, vectors??
|
2017-04-05 14:41:04 +01:00
|
|
|
|
2018-01-14 23:49:11 +00:00
|
|
|
// constructor
|
|
|
|
OneFlavourRationalParams( RealD _lo = 0.0,
|
2017-01-26 15:24:49 +00:00
|
|
|
RealD _hi = 1.0,
|
|
|
|
int _maxit = 1000,
|
|
|
|
RealD tol = 1.0e-8,
|
|
|
|
int _degree = 10,
|
|
|
|
int _precision = 64)
|
2018-01-14 23:49:11 +00:00
|
|
|
: lo(_lo),
|
|
|
|
hi(_hi),
|
|
|
|
MaxIter(_maxit),
|
|
|
|
tolerance(tol),
|
|
|
|
degree(_degree),
|
|
|
|
precision(_precision){};
|
|
|
|
};
|
|
|
|
|
|
|
|
NAMESPACE_END(Grid);
|
2015-08-18 14:40:08 +01:00
|
|
|
|
|
|
|
#endif
|