1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-09-21 01:25:48 +01:00
Grid/lib/qcd/action/ActionBase.h

21 lines
550 B
C
Raw Normal View History

2015-07-03 18:43:14 +01:00
#ifndef QCD_ACTION_BASE
#define QCD_ACTION_BASE
2015-06-05 10:02:36 +01:00
namespace Grid {
namespace QCD{
template<class GaugeField>
2015-07-03 18:43:14 +01:00
class Action {
2015-06-05 10:02:36 +01:00
public:
2015-07-04 09:47:50 +01:00
virtual void init(const GaugeField &U, GridParallelRNG& pRNG) = 0;
virtual RealD S(const GaugeField &U) = 0; // evaluate the action
virtual void deriv(const GaugeField &U,GaugeField & dSdU ) = 0; // evaluate the action derivative
2015-07-03 18:43:14 +01:00
//virtual void refresh(const GaugeField & ) {} ;
2015-06-05 10:02:36 +01:00
// Boundary conditions?
// Heatbath?
2015-07-03 18:43:14 +01:00
virtual ~Action() {};
2015-06-05 10:02:36 +01:00
};
}}
#endif