Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VTK
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alex W.
VTK
Commits
68e58a5c
Commit
68e58a5c
authored
3 years ago
by
Andrew Bauer
Browse files
Options
Downloads
Patches
Plain Diff
Fix writers to work in parallel
Need only the root node to write the meta-file in parallel
parent
3ec8dede
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
IO/ParallelXML/vtkXMLPartitionedDataSetCollectionWriter.cxx
+5
-1
5 additions, 1 deletion
IO/ParallelXML/vtkXMLPartitionedDataSetCollectionWriter.cxx
IO/ParallelXML/vtkXMLPartitionedDataSetWriter.cxx
+5
-1
5 additions, 1 deletion
IO/ParallelXML/vtkXMLPartitionedDataSetWriter.cxx
with
10 additions
and
2 deletions
IO/ParallelXML/vtkXMLPartitionedDataSetCollectionWriter.cxx
+
5
−
1
View file @
68e58a5c
...
...
@@ -142,7 +142,11 @@ int vtkXMLPartitionedDataSetCollectionWriter::RequestData(
}
// Now write the summary XML on the root node.
bool
success
=
this
->
WriteSummaryXML
(
inputPDC
,
allFilenames
);
bool
success
=
true
;
if
(
controller
==
nullptr
||
controller
->
GetLocalProcessId
()
==
0
)
{
success
=
this
->
WriteSummaryXML
(
inputPDC
,
allFilenames
);
}
if
(
controller
!=
nullptr
&&
controller
->
GetNumberOfProcesses
()
>
1
)
{
int
message
[
2
]
=
{
success
?
1
:
0
,
static_cast
<
int
>
(
this
->
GetErrorCode
())
};
...
...
This diff is collapsed.
Click to expand it.
IO/ParallelXML/vtkXMLPartitionedDataSetWriter.cxx
+
5
−
1
View file @
68e58a5c
...
...
@@ -129,7 +129,11 @@ int vtkXMLPartitionedDataSetWriter::RequestData(
std
::
vector
<
std
::
string
>
allFilenames
=
vtkXMLWriter2
::
Gather
(
controller
,
localFilenames
,
0
);
// Now write the summary XML on the root node.
bool
success
=
this
->
WriteSummaryXML
(
inputPDS
,
allFilenames
);
bool
success
=
true
;
if
(
controller
==
nullptr
||
controller
->
GetLocalProcessId
()
==
0
)
{
success
=
this
->
WriteSummaryXML
(
inputPDS
,
allFilenames
);
}
if
(
controller
!=
nullptr
&&
controller
->
GetNumberOfProcesses
()
>
1
)
{
int
message
[
2
]
=
{
success
?
1
:
0
,
static_cast
<
int
>
(
this
->
GetErrorCode
())
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment