Commit adde6491 authored by Abhishek Yenpure's avatar Abhishek Yenpure
Browse files

SplitProperties and TreeNode -Wmissing-field-initializers fixes

parent 72d4556f
...@@ -75,6 +75,13 @@ struct TreeNode ...@@ -75,6 +75,13 @@ struct TreeNode
vtkm::Float64 LMax; vtkm::Float64 LMax;
vtkm::Float64 RMin; vtkm::Float64 RMin;
vtkm::IdComponent Dimension; vtkm::IdComponent Dimension;
TreeNode()
: LMax()
, RMin()
, Dimension()
{
}
}; // struct TreeNode }; // struct TreeNode
template <typename S> template <typename S>
...@@ -93,6 +100,7 @@ void OutputArray(const vtkm::cont::ArrayHandle<TreeNode, S>& outputArray, const ...@@ -93,6 +100,7 @@ void OutputArray(const vtkm::cont::ArrayHandle<TreeNode, S>& outputArray, const
} }
std::cout << "]\n"; std::cout << "]\n";
} }
template <typename S> template <typename S>
void OutputArray(const vtkm::cont::ArrayHandle<BoundingIntervalHierarchyNode, S>& outputArray, void OutputArray(const vtkm::cont::ArrayHandle<BoundingIntervalHierarchyNode, S>& outputArray,
const char* name = "") const char* name = "")
...@@ -127,6 +135,16 @@ struct SplitProperties ...@@ -127,6 +135,16 @@ struct SplitProperties
vtkm::Float64 LMax; vtkm::Float64 LMax;
vtkm::Float64 RMin; vtkm::Float64 RMin;
vtkm::Float64 Cost; vtkm::Float64 Cost;
SplitProperties()
: Plane()
, NumLeftPoints()
, NumRightPoints()
, LMax()
, RMin()
, Cost()
{
}
}; // struct SplitProperties }; // struct SplitProperties
struct CellRangesExtracter : public vtkm::worklet::WorkletMapPointToCell struct CellRangesExtracter : public vtkm::worklet::WorkletMapPointToCell
...@@ -1095,6 +1113,8 @@ public: ...@@ -1095,6 +1113,8 @@ public:
BoundingIntervalHierarchy(vtkm::IdComponent numPlanes = 4, vtkm::IdComponent maxLeafSize = 5) BoundingIntervalHierarchy(vtkm::IdComponent numPlanes = 4, vtkm::IdComponent maxLeafSize = 5)
: NumPlanes(numPlanes) : NumPlanes(numPlanes)
, MaxLeafSize(maxLeafSize) , MaxLeafSize(maxLeafSize)
, Nodes()
, ProcessedCellIds()
{ {
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment