tset default values for c_phi and c_grad_p for old files - 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 d7d0946e7d1804947c0bde50899be9407d14d561
 (DIR) parent 79e28b7527bd5c6a83c125ac9eca1efaaa457069
 (HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
       Date:   Mon, 28 Jul 2014 15:51:19 +0200
       
       set default values for c_phi and c_grad_p for old files
       
       Diffstat:
         M python/sphere.py                    |       3 +++
       
       1 file changed, 3 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/python/sphere.py b/python/sphere.py
       t@@ -972,6 +972,9 @@ class sim:
                            self.c_phi = numpy.fromfile(fh, dtype=numpy.float64, count=1)
                            self.c_grad_p =\
                              numpy.fromfile(fh, dtype=numpy.float64, count=1)
       +                else:
       +                    self.c_phi = numpy.array(1.0)
       +                    self.c_grad_p = numpy.array(1.0)
        
                    if (self.version >= 1.02):
                        self.color =\