tset default values for c_phi and c_grad_p for old files - sphere - GPU-based 3… | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit d7d0946e7d1804947c0bde50899be9407d14d561 | |
parent 79e28b7527bd5c6a83c125ac9eca1efaaa457069 | |
Author: Anders Damsgaard <[email protected]> | |
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(-) | |
--- | |
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… | |
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 =\ |