mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 21:50:45 +01:00
Dirichlet implementation
This commit is contained in:
parent
53d01312b3
commit
137f190258
@ -92,15 +92,19 @@ WilsonFermion5D<Impl>::WilsonFermion5D(GaugeField &_Umu,
|
|||||||
assert(FourDimRedBlackGrid._simd_layout[d] ==FourDimGrid._simd_layout[d]);
|
assert(FourDimRedBlackGrid._simd_layout[d] ==FourDimGrid._simd_layout[d]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( p.dirichlet.size() ) {
|
if ( p.dirichlet.size() == Nd+1) {
|
||||||
Coordinate block = p.dirichlet;
|
Coordinate block = p.dirichlet;
|
||||||
assert(block.size()==Nd+1);
|
|
||||||
if ( block[0] || block[1] || block[2] || block[3] || block[4] ){
|
if ( block[0] || block[1] || block[2] || block[3] || block[4] ){
|
||||||
Dirichlet = 1;
|
Dirichlet = 1;
|
||||||
Block = block;
|
Block = block;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
Coordinate block(Nd+1,0);
|
||||||
|
Block = block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ZeroCounters();
|
||||||
|
|
||||||
if (Impl::LsVectorised) {
|
if (Impl::LsVectorised) {
|
||||||
|
|
||||||
int nsimd = Simd::Nsimd();
|
int nsimd = Simd::Nsimd();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user