Skip to content

Commit 6bfb21a

Browse files
committed
Benchmark fix
1 parent ededa6b commit 6bfb21a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

benchmarks/benchmarks.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -598,19 +598,19 @@ namespace
598598
else
599599
nDepthActual = 6;
600600
}
601-
vTask.push_back(MeasurementTask<BoundingBoxND<N>>{ szName, aSizeNonLog[iSize], aRepeatNonLog[iSize], nDepthActual, fPar, aBox_.subspan(0, aSizeNonLog[iSize]), [](depth_t nDepth, span<BoundingBoxND<N> const> const& aBox, bool fPar)
601+
vTask.push_back(MeasurementTask<BoundingBoxND<N>>{ szName, aSizeNonLog[iSize], aRepeatNonLog[iSize], nDepthActual, fPar, aBox_.subspan(0, aSizeNonLog[iSize]), [](depth_t nDepth_, span<BoundingBoxND<N> const> const& aBox, bool fPar)
602602
{
603603
autoce nSplit = 2;
604604
auto nt = TreeBoxND<N, nSplit>{};
605605
if (fPar)
606606
{
607-
TreeBoxND<N, nSplit>::template Create<std::execution::parallel_unsequenced_policy>(nt, aBox, nDepth, boxMax);
607+
TreeBoxND<N, nSplit>::template Create<std::execution::parallel_unsequenced_policy>(nt, aBox, nDepth_, boxMax);
608608
autoc vPair = nt.template CollisionDetection<std::execution::parallel_unsequenced_policy>(aBox);
609-
return nt.GetNodes().size();
609+
return vPair.size();
610610
}
611611
else
612612
{
613-
TreeBoxND<N, nSplit>::Create(nt, aBox, nDepth, boxMax);
613+
TreeBoxND<N, nSplit>::Create(nt, aBox, nDepth_, boxMax);
614614
autoc vPair = nt.CollisionDetection(aBox);
615615
return vPair.size();
616616
}

0 commit comments

Comments
 (0)