treturn as scalar - 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 fb19e2f8cd6c9b146d4a04d34d756b985028ae1a
 (DIR) parent 34ab7bd1bad4128a30abe9fb1df555cab482dc8a
 (HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
       Date:   Mon,  2 Feb 2015 15:02:40 +0100
       
       return as scalar
       
       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@@ -2886,7 +2886,7 @@ class sim:
                if self.cfd_solver[0] == 1:
                    k = self.k_c * phi**3/(1.0 - phi**2)
                    self.K_c = k*self.rho_f*numpy.abs(self.g[2])/self.mu
       -            return self.K_c
       +            return self.K_c[0]
                else:
                    raise Exception('This function only works for the Darcy solver')