// For kernels with precision conversion built in void ColorSpinorField::checkField(const ColorSpinorField &a, const ColorSpinorField &b) { if (a.Length() != b.Length()) { errorQuda("checkSpinor: lengths do not match: %d %d", a.Length(), b.Length()); } if (a.Ncolor() != b.Ncolor()) { errorQuda("checkSpinor: colors do not match: %d %d", a.Ncolor(), b.Ncolor()); } if (a.Nspin() != b.Nspin()) { errorQuda("checkSpinor: spins do not match: %d %d", a.Nspin(), b.Nspin()); } if (a.TwistFlavor() != b.TwistFlavor()) { errorQuda("checkSpinor: twist flavors do not match: %d %d", a.TwistFlavor(), b.TwistFlavor()); } }