Skip to content
Snippets Groups Projects
Commit 4799e65b authored by Andrew Bauer's avatar Andrew Bauer
Browse files

Fix for vtkIOParallelXMLPython-MPI-testParallelMultiBlockWriter test.

It seems like a barrier is needed between when the test files
are deleted and when they're created after that such that the
new files are created after the old files are deleted.
parent cfebbe68
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,6 @@ else:
nranks = contr.GetNumberOfProcesses()
rank = contr.GetLocalProcessId()
# Let's create a simple multiblock with non-empty blocks as indicated below.
# <MB> is a multiblock dataset.
# [<num>] is a leaf node where the number indicates the ranks on which it is
......@@ -85,6 +84,11 @@ if rank == 0:
except OSError: pass
print("Output: %s" % fname)
# put a barrier here to make sure that the files are deleted by process 0
# before going further with the test
if contr:
contr.Barrier()
writer.SetFileName(fname)
writer.SetInputDataObject(createMB(rank, nranks))
writer.Write()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment