tfix compatibility with VTK 6 - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
 (HTM) git clone git://src.adamsgaard.dk/sphere
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit 262ff8c07da82eaf642f972671b276b431d0b259
 (DIR) parent ef7c388262bf4dc16bc1dcfe58a4d5f75f648a70
 (HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
       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(-)
       ---
 (DIR) 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)