Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Ben Boeckel
ParaView
Commits
86d42b50
Commit
86d42b50
authored
Mar 15, 2015
by
Utkarsh Ayachit
⛰
Committed by
Kitware Robot
Mar 15, 2015
Browse files
Options
Browse Files
Download
Plain Diff
Merge topic 'fix-blight-test-failures'
c4a5d2d9
Changed to int datatype so MPI reduce will understand ops
parents
4c64e089
c4a5d2d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ParaViewCore/VTKExtensions/CosmoTools/vtkPGenericIOMultiBlockWriter.cxx
...TKExtensions/CosmoTools/vtkPGenericIOMultiBlockWriter.cxx
+3
-3
No files found.
ParaViewCore/VTKExtensions/CosmoTools/vtkPGenericIOMultiBlockWriter.cxx
View file @
86d42b50
...
...
@@ -366,7 +366,7 @@ void vtkPGenericIOMultiBlockWriter::WriteData()
}
if
(
this
->
Controller
->
GetNumberOfProcesses
()
>
1
)
{
std
::
vector
<
char
>
hasBlock
,
duplicates
;
std
::
vector
<
int
>
hasBlock
,
duplicates
;
hasBlock
.
resize
(
input
->
GetNumberOfBlocks
(),
0
);
duplicates
.
resize
(
hasBlock
.
size
());
for
(
unsigned
i
=
0
;
i
<
input
->
GetNumberOfBlocks
();
++
i
)
...
...
@@ -378,10 +378,10 @@ void vtkPGenericIOMultiBlockWriter::WriteData()
}
}
this
->
Controller
->
AllReduce
(
&
hasBlock
[
0
],
&
duplicates
[
0
],
hasBlock
.
size
(),
vtkCommunicator
::
LOGICAL_AND
_OP
);
vtkCommunicator
::
SUM
_OP
);
for
(
size_t
i
=
0
;
i
<
duplicates
.
size
();
++
i
)
{
if
(
duplicates
[
i
]
!=
0
)
if
(
duplicates
[
i
]
>
1
)
{
vtkErrorMacro
(
<<
"Blocks are duplicated across processes, this writer expects"
" each block to be present on exactly one process. Aborting write operation."
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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