tfix vtk output for particles - 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 69ca3d1d16dafe98bc5c455ce2f8a72840b7c0fa
 (DIR) parent fda5e848418333e8fe5008de4ce0c530c837195d
 (HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
       Date:   Wed, 13 Aug 2014 13:32:33 +0200
       
       fix vtk output for particles
       
       Diffstat:
         M python/sphere.py                    |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git a/python/sphere.py b/python/sphere.py
       t@@ -1263,7 +1263,7 @@ class sim:
                    fh.write('<VTKFile type="UnstructuredGrid" version="0.1" '
                            + 'byte_order="LittleEndian">\n') # VTK header
                    fh.write('  <UnstructuredGrid>\n')
       -            fh.write('    <Piece NumberOfPoints="{}" %d NumberOfCells="0">\n' \
       +            fh.write('    <Piece NumberOfPoints="%d" NumberOfCells="0">\n' \
                             % (self.np[0]))
        
                    # Coordinates for each point (positions)