Commit 0ca613af authored by Cory Quammen's avatar Cory Quammen
Browse files

Fix compiler warnings

parent 0502cdf4
......@@ -353,8 +353,6 @@ int vtkConnectivityFilter::RequestData(
// if coloring regions; send down new scalar data
if ( this->ColorRegions )
{
auto pointRegionIds = vtkIdTypeArray::SafeDownCast(outputPD->GetArray("RegionId"));
auto cellRegionIds = vtkIdTypeArray::SafeDownCast(outputCD->GetArray("RegionId"));
this->OrderRegionIds(this->NewScalars, this->NewCellScalars);
int idx = outputPD->AddArray(this->NewScalars);
......
......@@ -122,7 +122,8 @@ int RunParallelConnectivity(const char* fname, vtkAlgorithm::DesiredOutputPrecis
// Sum up region counts across processes
std::vector<vtkIdType> globalRegionCounts(regionCounts.size(), 0);
contr->AllReduce(regionCounts.data(), globalRegionCounts.data(), regionCounts.size(), vtkCommunicator::SUM_OP);
contr->AllReduce(regionCounts.data(), globalRegionCounts.data(),
static_cast<vtkIdType>(regionCounts.size()), vtkCommunicator::SUM_OP);
if (me == 0)
{
bool printCounts = false;
......@@ -159,7 +160,8 @@ int RunParallelConnectivity(const char* fname, vtkAlgorithm::DesiredOutputPrecis
// Sum up region counts across processes
globalRegionCounts = std::vector<vtkIdType>(regionCounts.size(), 0);
contr->AllReduce(regionCounts.data(), globalRegionCounts.data(), regionCounts.size(), vtkCommunicator::SUM_OP);
contr->AllReduce(regionCounts.data(), globalRegionCounts.data(),
static_cast<vtkIdType>(regionCounts.size()), vtkCommunicator::SUM_OP);
if (me == 0)
{
bool printCounts = false;
......
Supports Markdown
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