mirror of
https://github.com/paboyle/Grid.git
synced 2025-05-10 12:35:57 +01:00
Double or single
This commit is contained in:
parent
60f814733d
commit
aac1736617
@ -37,11 +37,6 @@ NAMESPACE_BEGIN(Grid);
|
||||
template<typename MomentaField>
|
||||
struct DirichletFilter: public MomentumFilterBase<MomentaField>
|
||||
{
|
||||
typedef typename MomentaField::vector_type vector_type; //SIMD-vectorized complex type
|
||||
typedef typename MomentaField::scalar_type scalar_type; //scalar complex type
|
||||
|
||||
typedef iScalar<iScalar<iScalar<vector_type> > > ScalarType; //complex phase for each site
|
||||
|
||||
Coordinate Block;
|
||||
|
||||
DirichletFilter(const Coordinate &_Block): Block(_Block){}
|
||||
@ -54,7 +49,8 @@ struct DirichletFilter: public MomentumFilterBase<MomentaField>
|
||||
// Zero strictly links crossing between domains
|
||||
////////////////////////////////////////////////////
|
||||
LatticeInteger coor(grid);
|
||||
LatticeColourMatrix zz(grid); zz = Zero();
|
||||
typedef decltype(PeekIndex<LorentzIndex>(P,0)) MatrixType;
|
||||
MatrixType zz(grid); zz = Zero();
|
||||
Coordinate Global=grid->GlobalDimensions();
|
||||
for(int mu=0;mu<Nd;mu++) {
|
||||
if ( (Block[mu] <= Global[mu]) && (Block[mu]>1) ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user