tfix compatibility with VTK 6 - sphere - GPU-based 3D discrete element method a… | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 262ff8c07da82eaf642f972671b276b431d0b259 | |
parent ef7c388262bf4dc16bc1dcfe58a4d5f75f648a70 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Wed, 23 Sep 2015 10:10:54 +0200 | |
fix compatibility with VTK 6 | |
Diffstat: | |
M python/sphere.py | 3 ++- | |
1 file changed, 2 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/python/sphere.py b/python/sphere.py | |
t@@ -2060,7 +2060,8 @@ class sim: | |
# write VTK XML image data file | |
writer = vtk.vtkXMLImageDataWriter() | |
writer.SetFileName(filename) | |
- writer.SetInput(grid) | |
+ #writer.SetInput(grid) # deprecated from VTK 6 | |
+ writer.SetInputData(grid) | |
writer.Update() | |
if verbose: | |
print('Output file: ' + filename) |