Skip to content

Commit

Permalink
Remove test code in lib/restrictor.in.cpp and `lib/prolongator.in.c…
Browse files Browse the repository at this point in the history
…pp`.
  • Loading branch information
hummingtree committed Nov 12, 2024
1 parent cd3bbad commit 1be04f5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 36 deletions.
18 changes: 0 additions & 18 deletions lib/prolongator.in.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,24 +60,6 @@ namespace quda

bool to_non_rel = (out.Nspin() == 4) && (out[0].GammaBasis() == QUDA_UKQCD_GAMMA_BASIS);
BlockTransposeBackward(v_out, out, to_non_rel);
#if 0
std::vector<ColorSpinorField> v_cmp(out.size());
for (size_t i = 0; i < out.size(); i++) {
ColorSpinorParam param(out[i]);
param.create = QUDA_NULL_FIELD_CREATE;
v_cmp[i] = ColorSpinorField(param);
}
auto vv_cmp = make_set(v_cmp);
Prolongate<fineColor, coarseColor>(vv_cmp, in, v, fine_to_coarse, spin_map, parity);

blas::mxpy(out, v_cmp);
auto vn = blas::max(vv_cmp);
printf("prolongator %d->%d = ", coarseColor, fineColor);
for (size_t i = 0; i < vn.size(); i++) {
printf("%4.2e ", vn[i]);
}
printf("\n");
#endif
} else {
Prolongate<fineColor, coarseColor>(out, in, v, fine_to_coarse, spin_map, parity);
}
Expand Down
18 changes: 0 additions & 18 deletions lib/restrictor.in.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,24 +59,6 @@ namespace quda
RestrictMma2<fineColor, coarseColor>(v_out, v_in, V, fine_to_coarse, coarse_to_fine, spin_map, parity, nvecs);

BlockTransposeBackward(v_out, out);
#if 0
std::vector<ColorSpinorField> v_cmp(out.size());
for (size_t i = 0; i < out.size(); i++) {
ColorSpinorParam param(out[i]);
param.create = QUDA_NULL_FIELD_CREATE;
v_cmp[i] = ColorSpinorField(param);
}
auto vv_cmp = make_set(v_cmp);
Restrict<fineColor, coarseColor>(vv_cmp, in, v, fine_to_coarse, coarse_to_fine, spin_map, parity);

blas::mxpy(out, v_cmp);
auto vn = blas::max(vv_cmp);
printf("restrictor %d->%d = ", fineColor, coarseColor);
for (size_t i = 0; i < vn.size(); i++) {
printf("%4.2e ", vn[i]);
}
printf("\n");
#endif
} else {
Restrict<fineColor, coarseColor>(out, in, v, fine_to_coarse, coarse_to_fine, spin_map, parity);
}
Expand Down

0 comments on commit 1be04f5

Please sign in to comment.