Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ecpcitest
vtk-m
Commits
0ca613af
Commit
0ca613af
authored
Oct 23, 2018
by
Cory Quammen
Browse files
Fix compiler warnings
parent
0502cdf4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Filters/Core/vtkConnectivityFilter.cxx
View file @
0ca613af
...
...
@@ -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
);
...
...
Filters/ParallelGeometry/Testing/Cxx/ParallelConnectivity.cxx
View file @
0ca613af
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment