Remove useless function print_slices
This commit is contained in:
parent
0a861618fd
commit
7c3a7bbc1e
16
atrip.org
16
atrip.org
@ -2300,23 +2300,7 @@ Atrip::Output Atrip::run(Atrip::Input const& in) {
|
|||||||
|
|
||||||
energy += tupleEnergy;
|
energy += tupleEnergy;
|
||||||
|
|
||||||
#ifdef HAVE_OCD
|
|
||||||
auto const print_slices
|
|
||||||
= [](ABCTuple const& abc, ABCTuple const& want, SliceUnion& u) {
|
|
||||||
if (abc != want) return;
|
|
||||||
|
|
||||||
for (auto type: u.sliceTypes) {
|
|
||||||
auto const& ptr = u.unwrapSlice(type, abc);
|
|
||||||
auto const& slice = Slice::findByTypeAbc(u.slices, type, abc);
|
|
||||||
WITH_RANK << "__print_slice__:n" << u.name << " "
|
|
||||||
<< pretty_print(abc) << " "
|
|
||||||
<< pretty_print(slice.info)
|
|
||||||
;
|
|
||||||
for (size_t i = 0; i < 20; i++) std::cout << ptr[i] << ", ";
|
|
||||||
std::cout << std::endl;
|
|
||||||
}
|
}
|
||||||
};
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (isFakeTuple(i)) {
|
if (isFakeTuple(i)) {
|
||||||
// fake iterations should also unwrap whatever they got
|
// fake iterations should also unwrap whatever they got
|
||||||
|
|||||||
@ -426,23 +426,7 @@ Atrip::Output Atrip::run(Atrip::Input const& in) {
|
|||||||
|
|
||||||
energy += tupleEnergy;
|
energy += tupleEnergy;
|
||||||
|
|
||||||
#ifdef HAVE_OCD
|
|
||||||
auto const print_slices
|
|
||||||
= [](ABCTuple const& abc, ABCTuple const& want, SliceUnion& u) {
|
|
||||||
if (abc != want) return;
|
|
||||||
|
|
||||||
for (auto type: u.sliceTypes) {
|
|
||||||
auto const& ptr = u.unwrapSlice(type, abc);
|
|
||||||
auto const& slice = Slice::findByTypeAbc(u.slices, type, abc);
|
|
||||||
WITH_RANK << "__print_slice__:n" << u.name << " "
|
|
||||||
<< pretty_print(abc) << " "
|
|
||||||
<< pretty_print(slice.info)
|
|
||||||
;
|
|
||||||
for (size_t i = 0; i < 20; i++) std::cout << ptr[i] << ", ";
|
|
||||||
std::cout << std::endl;
|
|
||||||
}
|
}
|
||||||
};
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (isFakeTuple(i)) {
|
if (isFakeTuple(i)) {
|
||||||
// fake iterations should also unwrap whatever they got
|
// fake iterations should also unwrap whatever they got
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user