mirror of
				https://github.com/paboyle/Grid.git
				synced 2025-11-03 21:44:33 +00:00 
			
		
		
		
	SitePropagator redefined to be a scalar object in TYPE_ALIASES.
This commit is contained in:
		@@ -60,13 +60,13 @@ BEGIN_HADRONS_NAMESPACE
 | 
			
		||||
 | 
			
		||||
// type aliases
 | 
			
		||||
#define TYPE_ALIASES(FImpl, suffix)\
 | 
			
		||||
typedef FermionOperator<FImpl>                       FMat##suffix;             \
 | 
			
		||||
typedef typename FImpl::FermionField                 FermionField##suffix;     \
 | 
			
		||||
typedef typename FImpl::PropagatorField              PropagatorField##suffix;  \
 | 
			
		||||
typedef typename FImpl::SitePropagator               SitePropagator##suffix;   \
 | 
			
		||||
typedef typename FImpl::DoubledGaugeField            DoubledGaugeField##suffix;\
 | 
			
		||||
typedef std::function<void(FermionField##suffix &,                             \
 | 
			
		||||
                      const FermionField##suffix &)> SolverFn##suffix;
 | 
			
		||||
typedef FermionOperator<FImpl>                        FMat##suffix;             \
 | 
			
		||||
typedef typename FImpl::FermionField                  FermionField##suffix;     \
 | 
			
		||||
typedef typename FImpl::PropagatorField               PropagatorField##suffix;  \
 | 
			
		||||
typedef typename FImpl::SitePropagator::scalar_object SitePropagator##suffix;   \
 | 
			
		||||
typedef typename FImpl::DoubledGaugeField             DoubledGaugeField##suffix;\
 | 
			
		||||
typedef std::function<void(FermionField##suffix &,                              \
 | 
			
		||||
                      const FermionField##suffix &)>  SolverFn##suffix;
 | 
			
		||||
 | 
			
		||||
// logger
 | 
			
		||||
class HadronsLogger: public Logger
 | 
			
		||||
 
 | 
			
		||||
@@ -118,7 +118,7 @@ template <typename FImpl>
 | 
			
		||||
void TPoint<FImpl>::execute(void)
 | 
			
		||||
{
 | 
			
		||||
    std::vector<int> position = strToVec<int>(par().position);
 | 
			
		||||
    typename SitePropagator::scalar_object id;
 | 
			
		||||
    SitePropagator id;
 | 
			
		||||
    
 | 
			
		||||
    LOG(Message) << "Creating point source at position [" << par().position
 | 
			
		||||
                 << "]" << std::endl;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user