tfix vtk output for particles - sphere - GPU-based 3D discrete element method a… | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 69ca3d1d16dafe98bc5c455ce2f8a72840b7c0fa | |
parent fda5e848418333e8fe5008de4ce0c530c837195d | |
Author: Anders Damsgaard <[email protected]> | |
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(-) | |
--- | |
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) |