mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 21:50:45 +01:00
Merge pull request #399 from fjosw/fix/Nc_neq_3
fix: assert for dimensions of compact Wilson clover moved to constructor
This commit is contained in:
commit
d16427b837
@ -47,8 +47,6 @@ class CompactWilsonCloverTypes {
|
|||||||
public:
|
public:
|
||||||
INHERIT_IMPL_TYPES(Impl);
|
INHERIT_IMPL_TYPES(Impl);
|
||||||
|
|
||||||
static_assert(Nd == 4 && Nc == 3 && Ns == 4 && Impl::Dimension == 3, "Wrong dimensions");
|
|
||||||
|
|
||||||
static constexpr int Nred = Nc * Nhs; // 6
|
static constexpr int Nred = Nc * Nhs; // 6
|
||||||
static constexpr int Nblock = Nhs; // 2
|
static constexpr int Nblock = Nhs; // 2
|
||||||
static constexpr int Ndiagonal = Nred; // 6
|
static constexpr int Ndiagonal = Nred; // 6
|
||||||
|
@ -59,6 +59,8 @@ CompactWilsonCloverFermion<Impl, CloverHelpers>::CompactWilsonCloverFermion(Gaug
|
|||||||
, BoundaryMask(&Fgrid)
|
, BoundaryMask(&Fgrid)
|
||||||
, BoundaryMaskEven(&Hgrid), BoundaryMaskOdd(&Hgrid)
|
, BoundaryMaskEven(&Hgrid), BoundaryMaskOdd(&Hgrid)
|
||||||
{
|
{
|
||||||
|
assert(Nd == 4 && Nc == 3 && Ns == 4 && Impl::Dimension == 3);
|
||||||
|
|
||||||
csw_r *= 0.5;
|
csw_r *= 0.5;
|
||||||
csw_t *= 0.5;
|
csw_t *= 0.5;
|
||||||
if (clover_anisotropy.isAnisotropic)
|
if (clover_anisotropy.isAnisotropic)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user