tadd function to input/output current simulation time - 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 1de4c1866e675e10e411edd96e5cebbc16317fb8
 (DIR) parent 3fb2ebf739fa4636a0bc1986655b561732551cbc
 (HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
       Date:   Wed, 18 Feb 2015 09:48:32 +0100
       
       add function to input/output current simulation time
       
       Diffstat:
         M python/sphere.py                    |      17 +++++++++++++++++
       
       1 file changed, 17 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/python/sphere.py b/python/sphere.py
       t@@ -3107,6 +3107,23 @@ class sim:
                    raise Exception('Value of cfd_solver not understood (' + \
                            str(self.cfd_solver[0]) + ')')
        
       +    def currentTime(self, value=-1):
       +        '''
       +        Get or set the current time. If called without arguments the current
       +        time is returned. If a new time is passed in the 'value' argument, the
       +        time is written to the object.
       +
       +        :param value: The new current time
       +        :type value: float
       +
       +        :returns: The current time
       +        :return type: float
       +        '''
       +        if value != -1:
       +            self.time_current[0] = value
       +        else:
       +            return self.time_current[0]
       +
            def setFluidBottomNoFlow(self):
                '''
                Set the lower boundary of the fluid domain to follow the no-flow