Skip to content
Snippets Groups Projects
Commit 9b56d41f authored by ayenpure's avatar ayenpure
Browse files

Fixing Rectilinear Grid Cell Locator

- Using exec portal in cont environment made the tests to fail
  on the GPUs.
parent 10e9d47d
Branches
Tags
1 merge request!1395Uniform Grid Cell Locator and minor Fixes
......@@ -73,13 +73,19 @@ public:
AxisPortals[1] = Coords.GetSecondPortal();
AxisPortals[2] = Coords.GetThirdPortal();
MinPoint[0] = static_cast<vtkm::Float32>(AxisPortals[0].Get(0));
MinPoint[1] = static_cast<vtkm::Float32>(AxisPortals[1].Get(0));
MinPoint[2] = static_cast<vtkm::Float32>(AxisPortals[2].Get(0));
MaxPoint[0] = static_cast<vtkm::Float32>(AxisPortals[0].Get(PointDimensions[0] - 1));
MaxPoint[1] = static_cast<vtkm::Float32>(AxisPortals[1].Get(PointDimensions[1] - 1));
MaxPoint[2] = static_cast<vtkm::Float32>(AxisPortals[2].Get(PointDimensions[2] - 1));
MinPoint[0] =
static_cast<vtkm::Float32>(coords.GetPortalConstControl().GetFirstPortal().Get(0));
MinPoint[1] =
static_cast<vtkm::Float32>(coords.GetPortalConstControl().GetSecondPortal().Get(0));
MinPoint[2] =
static_cast<vtkm::Float32>(coords.GetPortalConstControl().GetThirdPortal().Get(0));
MaxPoint[0] = static_cast<vtkm::Float32>(
coords.GetPortalConstControl().GetFirstPortal().Get(PointDimensions[0] - 1));
MaxPoint[1] = static_cast<vtkm::Float32>(
coords.GetPortalConstControl().GetSecondPortal().Get(PointDimensions[1] - 1));
MaxPoint[2] = static_cast<vtkm::Float32>(
coords.GetPortalConstControl().GetThirdPortal().Get(PointDimensions[2] - 1));
}
VTKM_EXEC
......@@ -108,7 +114,6 @@ public:
}
// Get the Cell Id from the point.
vtkm::Vec<vtkm::Id, 3> logicalCell(0, 0, 0);
for (vtkm::Int32 dim = 0; dim < 3; ++dim)
{
//
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment