mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-19 18:45:43 +00:00
Make UnitTestArrayHandleCartesianProduct faster
Reduce the number of conditions UnitTestArrayHandleCartesianProduct tries so that it is faster. All the conditions are pretty similar, so it should be OK to reduce some.
This commit is contained in:
parent
427f3cf57d
commit
0b2823ba55
@ -83,11 +83,13 @@ template <typename T>
|
||||
void
|
||||
RunTest()
|
||||
{
|
||||
std::size_t nX = 10, nY = 10, nZ = 10;
|
||||
std::size_t nX = 11, nY = 13, nZ = 11;
|
||||
|
||||
for (std::size_t i = 1; i < nX; i++)
|
||||
for (std::size_t j = 1; j < nY; j++)
|
||||
for (std::size_t k = 1; k < nZ; k++)
|
||||
for (std::size_t i = 1; i < nX; i += 2)
|
||||
{
|
||||
for (std::size_t j = 1; j < nY; j += 4)
|
||||
{
|
||||
for (std::size_t k = 1; k < nZ; k += 5)
|
||||
{
|
||||
std::vector<T> X,Y,Z;
|
||||
createArr(X, nX);
|
||||
@ -98,6 +100,8 @@ RunTest()
|
||||
vtkm::cont::make_ArrayHandle(Y),
|
||||
vtkm::cont::make_ArrayHandle(Z));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user