Skip to content

Commit

Permalink
including dd in the move() of color spinor field, copying dd params w…
Browse files Browse the repository at this point in the history
…hen color spinor field is instantiated with a given parity
  • Loading branch information
pittlerf committed Jan 31, 2025
1 parent 2ddf31d commit 1ac37d6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/color_spinor_field.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ namespace quda
ghostFace = std::exchange(src.ghostFace, {});
ghostFaceCB = std::exchange(src.ghostFaceCB, {});
ghost_buf = std::exchange(src.ghost_buf, {});
dd = std::exchange(src.dd, {});
dslash_constant = std::exchange(src.dslash_constant, nullptr);
bytes = std::exchange(src.bytes, 0);
bytes_raw = std::exchange(src.bytes_raw, 0);
Expand Down Expand Up @@ -719,27 +720,31 @@ namespace quda
{
if (siteSubset != QUDA_FULL_SITE_SUBSET) errorQuda("Cannot return even subset of %d subset", siteSubset);
if (fieldOrder == QUDA_QDPJIT_FIELD_ORDER) errorQuda("Cannot return even subset of QDPJIT field");
even->dd=dd;
return *even;
}

const ColorSpinorField &ColorSpinorField::Odd() const
{
if (siteSubset != QUDA_FULL_SITE_SUBSET) errorQuda("Cannot return odd subset of %d subset", siteSubset);
if (fieldOrder == QUDA_QDPJIT_FIELD_ORDER) errorQuda("Cannot return even subset of QDPJIT field");
odd->dd=dd;
return *odd;
}

ColorSpinorField &ColorSpinorField::Even()
{
if (siteSubset != QUDA_FULL_SITE_SUBSET) errorQuda("Cannot return even subset of %d subset", siteSubset);
if (fieldOrder == QUDA_QDPJIT_FIELD_ORDER) errorQuda("Cannot return even subset of QDPJIT field");
even->dd=dd;
return *even;
}

ColorSpinorField &ColorSpinorField::Odd()
{
if (siteSubset != QUDA_FULL_SITE_SUBSET) errorQuda("Cannot return odd subset of %d subset", siteSubset);
if (fieldOrder == QUDA_QDPJIT_FIELD_ORDER) errorQuda("Cannot return even subset of QDPJIT field");
odd->dd=dd;
return *odd;
}

Expand Down

0 comments on commit 1ac37d6

Please sign in to comment.