Merge branch 'fix-parallel-vtk-out' into 'development'
Fix parallel vtk out See merge request damask/DAMASK!196
This commit is contained in:
commit
b93078d910
|
@ -190,9 +190,13 @@ class VTK:
|
||||||
writer.SetCompressorTypeToZLib()
|
writer.SetCompressorTypeToZLib()
|
||||||
writer.SetDataModeToBinary()
|
writer.SetDataModeToBinary()
|
||||||
writer.SetInputData(self.geom)
|
writer.SetInputData(self.geom)
|
||||||
|
|
||||||
if parallel:
|
if parallel:
|
||||||
|
try:
|
||||||
mp_writer = mp.Process(target=self._write,args=(writer,))
|
mp_writer = mp.Process(target=self._write,args=(writer,))
|
||||||
mp_writer.start()
|
mp_writer.start()
|
||||||
|
except TypeError:
|
||||||
|
writer.Write()
|
||||||
else:
|
else:
|
||||||
writer.Write()
|
writer.Write()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue