Remove FIXME

This commit is contained in:
Gunther H. Weber 2020-11-10 17:47:36 -08:00
parent 9b1acb8a4a
commit c8b11f4dcc

@ -141,9 +141,7 @@ public:
nbrSortIndex = this->SortIndicesPortal.Get(meshIndex - strides[1]);
break; // [1] - 1, [0]
default:
//throw vtkm::cont::ErrorBadValue("Bad edgeNo case"); // std::abort(); CUDA does not allow abort or exceptions
nbrSortIndex =
-1; // Just here to keep the compiler happy // TODO FIXME How can we abort here on the device?
VTKM_ASSERT(false); // Should not occur, edgeNo < N_INCIDENT_EDGES_2D = 6
break;
}
@ -230,14 +228,12 @@ public:
VTKM_ASSERT(pos[1] != 0 && pos[1] != this->MeshStructure.MeshSize[1]);
return CountLinkComponentsIn2DSlice(meshIndex,
vtkm::Id2(this->MeshStructure.MeshSize[0], 1)) != 2;
// == 1; // FIXME: or != 2;
}
else if (pos[1] == 0 || pos[1] == this->MeshStructure.MeshSize[1] - 1)
{ // On [1]-perpendicular face
VTKM_ASSERT(pos[0] != 0 && pos[0] != this->MeshStructure.MeshSize[0]);
VTKM_ASSERT(pos[2] != 0 && pos[2] != this->MeshStructure.MeshSize[2]);
return CountLinkComponentsIn2DSlice(meshIndex, vtkm::Id2(nPerSlice, 1)) != 2;
// == 1; // FIXME: or != 2;
}
else
{ // On [0]-perpendicular face
@ -246,7 +242,6 @@ public:
VTKM_ASSERT(pos[2] != 0 && pos[2] != this->MeshStructure.MeshSize[2]);
return CountLinkComponentsIn2DSlice(
meshIndex, vtkm::Id2(this->MeshStructure.MeshSize[0], nPerSlice)) != 2;
// == 1; // FIXME: or != 2;
}
}
}